|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.anneck.jcast.channels.ChannelController
The ChannelController is supposed to be the main entrance to all Channel releated
interactions. The controller holds an internal list of existing Channels and can quickly
access them. The Controller is implementend as a Singleton, you have to invoke it
using the static getInstance()
method.
Method Summary | |
java.lang.Object |
createChannel(org.apache.avalon.framework.configuration.Configuration conf)
Will create a new ChannelThread with the Specified name. |
java.lang.Object |
createChannel(java.lang.String nameOfChannelThread)
Will create a new ChannelThread with the Specified name. |
java.lang.Thread |
createChannelThread(org.apache.avalon.framework.configuration.Configuration conf)
Will create a new ChannelThread based on |
java.lang.Thread |
createChannelThread(java.lang.String nameOfChannelThread)
Will create a new ChannelThread with the Specified name. |
boolean |
exists(java.lang.Object obj)
Cheacks if specified object is under my control |
boolean |
exists(java.lang.String channelName)
Checks if a channel with the specified name exists. |
java.lang.Object |
get(java.lang.String name)
Returns one object, specified by key |
java.util.Map |
getAll()
All Channels registered within this controller. |
java.lang.Object |
getChannel(java.lang.String channelName)
Returns the internal Channel object. |
static ChannelController |
getInstance()
Returns a ChannelController. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ChannelController getInstance()
public java.lang.Thread createChannelThread(java.lang.String nameOfChannelThread)
nameOfChannelThread
- The name of the ChannelThread.public java.lang.Thread createChannelThread(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException
nameOfChannelThread
- The name of the ChannelThread.public java.lang.Object createChannel(java.lang.String nameOfChannelThread)
nameOfChannelThread
- The name of the ChannelThread.public java.lang.Object createChannel(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException
nameOfChannelThread
- The name of the ChannelThread.public java.lang.Object getChannel(java.lang.String channelName)
channelName
- The unique name of the channel.public java.util.Map getAll()
getAll
in interface IController
public boolean exists(java.lang.String channelName)
exists
in interface IController
channelName
- The unique name of the Channel.public boolean exists(java.lang.Object obj)
exists
in interface IController
public java.lang.Object get(java.lang.String name)
get
in interface IController
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |