rice.p2p.scribe.maintenance
Interface MaintainableScribe

All Superinterfaces:
BaseScribe, Destructable
All Known Implementing Classes:
ScribeImpl

public interface MaintainableScribe
extends BaseScribe

This is an interface to scribe so that the MaintenacePolicy can have additional access to Scribe, that most users will not need.

Author:
Jeff Hoye

Field Summary
static int MAINTENANCE_ID
           
 
Method Summary
 Endpoint getEndpoint()
           
 List<Id> getPathToRoot(Topic topic)
           
 Collection<Topic> getTopics()
           
 Collection<Topic> getTopicsByChild(NodeHandle child)
          This returns the topics for which the parameter 'child' is a Scribe tree child of the local node
 Collection<Topic> getTopicsByParent(NodeHandle parent)
          This returns the topics for which the parameter 'parent' is a Scribe tree parent of the local node
 void setParent(Topic topic, NodeHandle parent, List<Id> pathToRoot)
           
 void subscribe(Collection<Topic> nodeWasParent, ScribeMultiClient client, RawScribeContent content, NodeHandle hint)
           
 
Methods inherited from interface rice.p2p.scribe.BaseScribe
addChild, containsChild, containsTopic, getChildren, getChildrenOfTopic, getClients, getClientsByTopic, getEnvironment, getParent, getPolicy, getRoot, getTopics, getTopicsByClient, getTopicsByClient, isRoot, numChildren, removeChild, setPolicy, subscribe, unsubscribe, unsubscribe, unsubscribe
 
Methods inherited from interface rice.Destructable
destroy
 

Field Detail

MAINTENANCE_ID

static final int MAINTENANCE_ID
See Also:
Constant Field Values
Method Detail

getTopics

Collection<Topic> getTopics()

getEndpoint

Endpoint getEndpoint()

getTopicsByParent

Collection<Topic> getTopicsByParent(NodeHandle parent)
This returns the topics for which the parameter 'parent' is a Scribe tree parent of the local node

Parameters:
parent - null/localHandle for topics rooted by us

getTopicsByChild

Collection<Topic> getTopicsByChild(NodeHandle child)
This returns the topics for which the parameter 'child' is a Scribe tree child of the local node


subscribe

void subscribe(Collection<Topic> nodeWasParent,
               ScribeMultiClient client,
               RawScribeContent content,
               NodeHandle hint)

setParent

void setParent(Topic topic,
               NodeHandle parent,
               List<Id> pathToRoot)

getPathToRoot

List<Id> getPathToRoot(Topic topic)


Copyright © 2010. All Rights Reserved.