|
Rice Pastry 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
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 rice.p2p.commonapi.NodeHandle |
parent
DESCRIBE THE FIELD |
protected rice.p2p.commonapi.Id[] |
pathToRoot
The current path to the root for this node |
protected rice.p2p.scribe.Topic |
topic
DESCRIBE THE FIELD |
Constructor Summary | |
protected |
ScribeImpl.TopicManager(rice.p2p.scribe.Topic topic)
Constructor for TopicManager. |
|
ScribeImpl.TopicManager(rice.p2p.scribe.Topic topic,
rice.p2p.commonapi.NodeHandle child)
Constructor for TopicManager. |
|
ScribeImpl.TopicManager(rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeClient client)
Constructor for TopicManager. |
Method Summary | |
void |
addChild(rice.p2p.commonapi.NodeHandle child)
Adds a feature to the Child attribute of the TopicManager object |
void |
addClient(rice.p2p.scribe.ScribeClient client)
Adds a feature to the Client attribute of the TopicManager object |
rice.p2p.commonapi.NodeHandle[] |
getChildren()
Gets the Children attribute of the TopicManager object |
rice.p2p.scribe.ScribeClient[] |
getClients()
Gets the Clients attribute of the TopicManager object |
rice.p2p.commonapi.NodeHandle |
getParent()
Gets the Parent attribute of the TopicManager object |
rice.p2p.commonapi.Id[] |
getPathToRoot()
Gets the PathToRoot attribute of the TopicManager object |
boolean |
removeChild(rice.p2p.commonapi.NodeHandle child)
DESCRIBE THE METHOD |
boolean |
removeClient(rice.p2p.scribe.ScribeClient client)
DESCRIBE THE METHOD |
void |
setParent(rice.p2p.commonapi.NodeHandle handle)
Sets the Parent attribute of the TopicManager object |
void |
setPathToRoot(rice.p2p.commonapi.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 rice.p2p.scribe.Topic topic
protected rice.p2p.commonapi.Id[] pathToRoot
protected java.util.Vector clients
protected java.util.Vector children
protected rice.p2p.commonapi.NodeHandle parent
Constructor Detail |
public ScribeImpl.TopicManager(rice.p2p.scribe.Topic topic, rice.p2p.scribe.ScribeClient client)
topic
- DESCRIBE THE PARAMETERclient
- DESCRIBE THE PARAMETERpublic ScribeImpl.TopicManager(rice.p2p.scribe.Topic topic, rice.p2p.commonapi.NodeHandle child)
topic
- DESCRIBE THE PARAMETERchild
- DESCRIBE THE PARAMETERprotected ScribeImpl.TopicManager(rice.p2p.scribe.Topic topic)
topic
- DESCRIBE THE PARAMETERMethod Detail |
public rice.p2p.commonapi.NodeHandle getParent()
public rice.p2p.scribe.ScribeClient[] getClients()
public rice.p2p.commonapi.NodeHandle[] getChildren()
public rice.p2p.commonapi.Id[] getPathToRoot()
public void setPathToRoot(rice.p2p.commonapi.Id[] pathToRoot)
pathToRoot
- The new PathToRoot valuepublic void setParent(rice.p2p.commonapi.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(rice.p2p.scribe.ScribeClient client)
client
- The feature to be added to the Client attributepublic boolean removeClient(rice.p2p.scribe.ScribeClient client)
client
- DESCRIBE THE PARAMETER
public void addChild(rice.p2p.commonapi.NodeHandle child)
child
- The feature to be added to the Child attributepublic boolean removeChild(rice.p2p.commonapi.NodeHandle child)
child
- DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |