Rice Pastry API

rice.p2p.scribe
Class ScribeImpl.TopicManager

java.lang.Object
  |
  +--rice.p2p.scribe.ScribeImpl.TopicManager
All Implemented Interfaces:
java.util.Observer
Enclosing class:
ScribeImpl

public class ScribeImpl.TopicManager
extends java.lang.Object
implements java.util.Observer

Class which keeps track of a given topic

Version:
$Id: ScribeImpl.java,v 1.14 2003/10/22 03:16:40 amislove Exp $
Author:
amislove

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

topic

protected rice.p2p.scribe.Topic topic
DESCRIBE THE FIELD


pathToRoot

protected rice.p2p.commonapi.Id[] pathToRoot
The current path to the root for this node


clients

protected java.util.Vector clients
DESCRIBE THE FIELD


children

protected java.util.Vector children
DESCRIBE THE FIELD


parent

protected rice.p2p.commonapi.NodeHandle parent
DESCRIBE THE FIELD

Constructor Detail

ScribeImpl.TopicManager

public ScribeImpl.TopicManager(rice.p2p.scribe.Topic topic,
                               rice.p2p.scribe.ScribeClient client)
Constructor for TopicManager.

Parameters:
topic - DESCRIBE THE PARAMETER
client - DESCRIBE THE PARAMETER

ScribeImpl.TopicManager

public ScribeImpl.TopicManager(rice.p2p.scribe.Topic topic,
                               rice.p2p.commonapi.NodeHandle child)
Constructor for TopicManager.

Parameters:
topic - DESCRIBE THE PARAMETER
child - DESCRIBE THE PARAMETER

ScribeImpl.TopicManager

protected ScribeImpl.TopicManager(rice.p2p.scribe.Topic topic)
Constructor for TopicManager.

Parameters:
topic - DESCRIBE THE PARAMETER
Method Detail

getParent

public rice.p2p.commonapi.NodeHandle getParent()
Gets the Parent attribute of the TopicManager object

Returns:
The Parent value

getClients

public rice.p2p.scribe.ScribeClient[] getClients()
Gets the Clients attribute of the TopicManager object

Returns:
The Clients value

getChildren

public rice.p2p.commonapi.NodeHandle[] getChildren()
Gets the Children attribute of the TopicManager object

Returns:
The Children value

getPathToRoot

public rice.p2p.commonapi.Id[] getPathToRoot()
Gets the PathToRoot attribute of the TopicManager object

Returns:
The PathToRoot value

setPathToRoot

public void setPathToRoot(rice.p2p.commonapi.Id[] pathToRoot)
Sets the PathToRoot attribute of the TopicManager object

Parameters:
pathToRoot - The new PathToRoot value

setParent

public void setParent(rice.p2p.commonapi.NodeHandle handle)
Sets the Parent attribute of the TopicManager object

Parameters:
handle - The new Parent value

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
DESCRIBE THE METHOD

Specified by:
update in interface java.util.Observer
Parameters:
o - DESCRIBE THE PARAMETER
arg - DESCRIBE THE PARAMETER

addClient

public void addClient(rice.p2p.scribe.ScribeClient client)
Adds a feature to the Client attribute of the TopicManager object

Parameters:
client - The feature to be added to the Client attribute

removeClient

public boolean removeClient(rice.p2p.scribe.ScribeClient client)
DESCRIBE THE METHOD

Parameters:
client - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

addChild

public void addChild(rice.p2p.commonapi.NodeHandle child)
Adds a feature to the Child attribute of the TopicManager object

Parameters:
child - The feature to be added to the Child attribute

removeChild

public boolean removeChild(rice.p2p.commonapi.NodeHandle child)
DESCRIBE THE METHOD

Parameters:
child - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection