|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectconsciouscode.seedling.tree.GenericNode
consciouscode.seedling.webConsole.NodeIndex
public class NodeIndex
Constructor Summary | |
---|---|
NodeIndex()
|
Method Summary | |
---|---|
void |
childInstalled(BranchChangeEvent event)
Notifies this listener that a child has been added to a branch. |
void |
childUninstalled(BranchChangeEvent event)
Removes uninstalled nodes from the index, ignoring events where the node and path don't match what we've indexed. |
int |
getIndexSize()
|
String |
getMapContents()
|
int |
getQueueSize()
|
BranchNode |
getStartingBranch()
|
boolean |
isRunning()
|
String |
lookupNode(Object node)
Finds a potential path in the tree for a requested object. |
void |
setStartingBranch(BranchNode branch)
|
void |
startService()
Starts a Seedling service. |
void |
stopService()
Stops a Seedling service. |
Methods inherited from class consciouscode.seedling.tree.GenericNode |
---|
getLocalRoot, getLog, getNodeLocation, getNodeName, getParentBranch, isLoggingDebug, nodeInstalled, setLog, setLoggingDebug |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeIndex()
Method Detail |
---|
public BranchNode getStartingBranch()
public void setStartingBranch(BranchNode branch)
public String lookupNode(Object node)
node
- must not be null.
public void startService() throws InterruptedException
ServiceNode
RuntimeException
are propagated
to the application, but any other kind of exception is wrapped in a
ServiceException
and rethrown.
startService
in interface ServiceNode
InterruptedException
public void stopService()
ServiceNode
Implementations of this method must not do anything that may change
the state of the parent Seedling. In particular, it cannot call
any overload of the following methods:
BranchNode.getNode(java.lang.String)
,
BranchNode.getChild(java.lang.String)
, GrowingBranch.installChild(java.lang.String, java.lang.Object)
,
GrowingBranch.uninstallChild(java.lang.String)
.
Furthermore, this method may be called from within a JVM shutdown hook, which implies that it must work promptly and carefully.
stopService
in interface ServiceNode
Runtime.addShutdownHook(java.lang.Thread)
public boolean isRunning()
public String getMapContents()
public int getQueueSize()
public int getIndexSize()
public void childInstalled(BranchChangeEvent event)
BranchChangeListener
childInstalled
in interface BranchChangeListener
event
- contains information about the event; not null.public void childUninstalled(BranchChangeEvent event)
childUninstalled
in interface BranchChangeListener
event
- contains information about the event; not null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |