|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.scribe.ScribeImpl.TopicManager
public class ScribeImpl.TopicManager
Class which keeps track of a given topic
Field Summary | |
---|---|
protected java.util.Vector |
children
DESCRIBE THE FIELD |
protected java.util.Vector |
clients
DESCRIBE THE FIELD |
protected NodeHandle |
parent
DESCRIBE THE FIELD |
protected Id[] |
pathToRoot
The current path to the root for this node |
protected Topic |
topic
DESCRIBE THE FIELD |
Constructor Summary | |
---|---|
protected |
ScribeImpl.TopicManager(Topic topic)
Constructor for TopicManager. |
|
ScribeImpl.TopicManager(Topic topic,
NodeHandle child)
Constructor for TopicManager. |
|
ScribeImpl.TopicManager(Topic topic,
ScribeClient client)
Constructor for TopicManager. |
Method Summary | |
---|---|
void |
addChild(NodeHandle child)
Adds a feature to the Child attribute of the TopicManager object |
void |
addClient(ScribeClient client)
Adds a feature to the Client attribute of the TopicManager object |
boolean |
containsClient(ScribeClient client)
Returns whether or not this topic manager contains the given client. |
void |
destroy()
|
NodeHandle[] |
getChildren()
Gets the Children attribute of the TopicManager object |
ScribeClient[] |
getClients()
Gets the Clients attribute of the TopicManager object |
NodeHandle |
getParent()
Gets the Parent attribute of the TopicManager object |
Id[] |
getPathToRoot()
Gets the PathToRoot attribute of the TopicManager object |
Topic |
getTopic()
Gets the topic of the TopicManager object |
boolean |
removeChild(NodeHandle child)
DESCRIBE THE METHOD |
boolean |
removeClient(ScribeClient client)
DESCRIBE THE METHOD |
void |
setParent(NodeHandle handle)
Sets the Parent attribute of the TopicManager object |
void |
setPathToRoot(Id[] pathToRoot)
Sets the PathToRoot attribute of the TopicManager object |
void |
update(java.util.Observable o,
java.lang.Object arg)
DESCRIBE THE METHOD |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Topic topic
protected Id[] pathToRoot
protected java.util.Vector clients
protected java.util.Vector children
protected NodeHandle parent
Constructor Detail |
---|
public ScribeImpl.TopicManager(Topic topic, ScribeClient client)
topic
- DESCRIBE THE PARAMETERclient
- DESCRIBE THE PARAMETERpublic ScribeImpl.TopicManager(Topic topic, NodeHandle child)
topic
- DESCRIBE THE PARAMETERchild
- DESCRIBE THE PARAMETERprotected ScribeImpl.TopicManager(Topic topic)
topic
- DESCRIBE THE PARAMETERMethod Detail |
---|
public Topic getTopic()
public NodeHandle getParent()
public ScribeClient[] getClients()
public boolean containsClient(ScribeClient client)
client
- The client in question
public NodeHandle[] getChildren()
public Id[] getPathToRoot()
public void setPathToRoot(Id[] pathToRoot)
pathToRoot
- The new PathToRoot valuepublic void setParent(NodeHandle handle)
handle
- The new Parent valuepublic void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
o
- DESCRIBE THE PARAMETERarg
- DESCRIBE THE PARAMETERpublic void addClient(ScribeClient client)
client
- The feature to be added to the Client attributepublic boolean removeClient(ScribeClient client)
client
- DESCRIBE THE PARAMETER
public void addChild(NodeHandle child)
child
- The feature to be added to the Child attributepublic boolean removeChild(NodeHandle child)
child
- DESCRIBE THE PARAMETER
public void destroy()
destroy
in interface Destructable
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |