|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.hgraph.manager.HgraphManager
public class HgraphManager
The HgraphManager provides a single point of entry to the whole Hgraph. It provides both a synchronous (via regular method invokation) as well as an (potentially) asynchronous (via Hgraph invokations) interface
| Field Summary | |
|---|---|
protected HgraphNode |
_node
hgraph impl |
static java.lang.String |
VAL_LIVEVIEWCLOCK
|
static java.lang.String |
VAL_LIVEVIEWINTERVAL
|
| Fields inherited from interface ist.palcom.hgraph.IHgraphNode |
|---|
CHILD_NAME_CLASH, CIRCULARITY_CLASH, COMMAND_OR_NODE_MISSING, ERROR, HANDLER_MISSING, INVOKATOR_MISSING, LISTENER_MISSING, NODE_NOT_CHILD, PATH_MISSING, SIBLING_ALREADY_EXISTS, SIBLING_NONEXISTENT, SIBLING_REFERENCE_ALREADY_EXISTS, SIBLING_REFERENCE_NONEXISTENT, STATUS_OK, VALUE_ALREADY_EXISTS, VALUE_NOT_PRESENT |
| Constructor Summary | |
|---|---|
HgraphManager(PalcomScheduler scheduler)
|
|
| Method Summary | |
|---|---|
int |
addNodeChild(IHgraphNode node,
Path callerPath)
Adds a child to the node's private list of children. |
boolean |
cd(java.lang.String path)
Checks whether a given path exists |
java.lang.String |
dir(java.lang.String path)
Returns the info for some given dir |
java.lang.String |
dirFull(java.lang.String path)
Returns the full info for some given dir |
java.lang.String |
dirRecursively(java.lang.String path)
Returns the recursive account of some given dir and its subdirs |
java.util.Iterator |
getChildIterator()
|
FuncFunc |
getFuncFunc()
|
ist.palcom.hgraph.manager.HgraphManager.LiveViewClock |
getLiveViewClock()
|
int |
getLiveViewInterval()
|
java.lang.String |
getNodeName()
hgraph impl below |
IHgraphNode |
getNodeParent()
|
Path |
getPath()
|
SiblingFunc |
getSiblingFunc()
|
ValueFunc |
getValueFunc()
|
boolean |
hasChildNamed(java.lang.String name)
Checks whether the node has a child with a given name |
boolean |
isAncestorOf(IHgraphNode node)
Checks whether this node is an ancestor of the parameter node. |
int |
newNode(java.lang.String path,
java.lang.String name)
Creates a new node |
void |
queryEvent(HgraphEvent event)
Callback function for use by HgraphManager QueryHandler. |
int |
removeNode(java.lang.String path,
java.lang.String name)
Removes a given node |
int |
removeNodeChild(java.lang.String name,
Path callerPath)
Removes a child based on its name. |
void |
returnEvent(HgraphEvent event)
Callback function for use by HgraphManager ReturnHandler Used for either returning reposts to the original recipient through hgraphs or for returning regular blocking calls |
void |
setLiveView(Path whichPath,
Path returnPath)
|
void |
setLiveViewClock(ist.palcom.hgraph.manager.HgraphManager.LiveViewClock clock)
|
void |
setLiveViewInterval(java.lang.String input)
|
int |
setNodeName(java.lang.String name,
Path callerPath)
Sets the name of the node. |
int |
setNodeName(java.lang.String path,
java.lang.String oldName,
java.lang.String newName)
Sets the name of a node |
int |
setNodeParent(IHgraphNode newParent,
Path callerPath)
Sets the parent of the HgraphNode. |
void |
stop()
|
java.lang.String |
toXML()
|
java.lang.String |
toXMLFull()
|
java.lang.String |
toXMLFullRecursively()
|
java.lang.String |
toXMLRecursively()
|
void |
unsetLiveView(Path whichPath,
Path returnPath)
|
void |
updatePath()
Updates the path of the H-Graph node along with its offspring recursively. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VAL_LIVEVIEWCLOCK
public static final java.lang.String VAL_LIVEVIEWINTERVAL
protected HgraphNode _node
| Constructor Detail |
|---|
public HgraphManager(PalcomScheduler scheduler)
| Method Detail |
|---|
public ist.palcom.hgraph.manager.HgraphManager.LiveViewClock getLiveViewClock()
public void setLiveViewClock(ist.palcom.hgraph.manager.HgraphManager.LiveViewClock clock)
public void setLiveViewInterval(java.lang.String input)
public int getLiveViewInterval()
public void stop()
public boolean cd(java.lang.String path)
path - the path
public void setLiveView(Path whichPath,
Path returnPath)
public void unsetLiveView(Path whichPath,
Path returnPath)
public java.lang.String dir(java.lang.String path)
path - the path of the node to dir
public java.lang.String dirRecursively(java.lang.String path)
path - the path of the node to dir
public java.lang.String dirFull(java.lang.String path)
path - the path of the node to dir
public int newNode(java.lang.String path,
java.lang.String name)
path - the path on which to install the nodename - the name of the new node
public int removeNode(java.lang.String path,
java.lang.String name)
path - parent the path of the nodename - the name of the node to be removed
public int setNodeName(java.lang.String path,
java.lang.String oldName,
java.lang.String newName)
path - The path of the node whose name is to be setoldName - the old namenewName - the new name
public void returnEvent(HgraphEvent event)
event - The event holding the return informationpublic void queryEvent(HgraphEvent event)
event - The caught event holding reposting informationpublic java.lang.String getNodeName()
getNodeName in interface IHgraphNode
public int setNodeName(java.lang.String name,
Path callerPath)
IHgraphNode
setNodeName in interface IHgraphNodename - The new name
public Path getPath()
getPath in interface IHgraphNodepublic void updatePath()
IHgraphNode
updatePath in interface IHgraphNodepublic boolean hasChildNamed(java.lang.String name)
IHgraphNode
hasChildNamed in interface IHgraphNodename - The name to check
public boolean isAncestorOf(IHgraphNode node)
IHgraphNode
isAncestorOf in interface IHgraphNode
public int removeNodeChild(java.lang.String name,
Path callerPath)
IHgraphNode
removeNodeChild in interface IHgraphNodename - The name of the child to be removed
public java.lang.String toXML()
toXML in interface IHgraphNodepublic java.lang.String toXMLFull()
toXMLFull in interface IHgraphNodepublic java.lang.String toXMLRecursively()
toXMLRecursively in interface IHgraphNodepublic java.lang.String toXMLFullRecursively()
toXMLFullRecursively in interface IHgraphNode
public int setNodeParent(IHgraphNode newParent,
Path callerPath)
IHgraphNode
setNodeParent in interface IHgraphNodenewParent - the new parent
public int addNodeChild(IHgraphNode node,
Path callerPath)
IHgraphNode
addNodeChild in interface IHgraphNodenode - The new child to be added
public SiblingFunc getSiblingFunc()
getSiblingFunc in interface IHgraphNodepublic ValueFunc getValueFunc()
getValueFunc in interface IHgraphNodepublic FuncFunc getFuncFunc()
getFuncFunc in interface IHgraphNodepublic IHgraphNode getNodeParent()
getNodeParent in interface IHgraphNodepublic java.util.Iterator getChildIterator()
getChildIterator in interface IHgraphNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||