|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.discovery.DiscoveryManager
public class DiscoveryManager
| Field Summary | |
|---|---|
protected HgraphNode |
_node
|
static java.lang.String |
DISCOVERY_VERSION
|
static java.lang.String |
TOPIC
The pub/sub topic to use for discovery. |
| 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 | |
|---|---|
DiscoveryManager(PalcomScheduler scheduler,
PointToPointManager pointToPointManager,
CommunicationManager communicationManager,
PRDDevice localDeviceInfo)
Create a DiscoveryManager. localDeviceinfo is the info about the local device. |
|
| Method Summary | |
|---|---|
int |
addNodeChild(IHgraphNode node,
Path callerPath)
Adds a child to the node's private list of children. |
java.util.Iterator |
getChildIterator()
|
FuncFunc |
getFuncFunc()
|
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. |
void |
removeLocalConnectionInfo(PRDConnection ci)
Remove a local ConnectionInfo from the DiscoveryManager. |
void |
removeLocalSelector(LocalSID localSID)
Remove a local Selector for Service with ID localSID from the DiscoveryManager. |
void |
removeLocalServiceDescription(PRDServiceFMDescription sd)
Remove a local ServiceDescription from the DiscoveryManager. |
void |
removeLocalServiceInstanceID(LocalSID localSID)
Remove a local ServiceInstanceID for Service with ID localSID from the DiscoveryManager. |
void |
removeLocalServiceList(PRDServiceList list)
Remove a local ServiceList from the DiscoveryManager. |
boolean |
removeLocalServiceOrSubList(PRDServiceListItem listItem)
Remove a local Service or SubList from the service list in the DiscoveryManager. |
void |
removeLocalSID(ServiceInstanceID serviceInstanceID)
Remove a LocalSID for Service with ID ServiceInstanceID from the DiscoveryManager. |
int |
removeNodeChild(java.lang.String name,
Path callerPath)
Removes a child based on its name. |
void |
removeServiceStatus(LocalSID localSID)
Remove the status info for Service with ID localSID from the DiscoveryManager. |
int |
setNodeName(java.lang.String name,
Path callerPath)
Sets the name of the node. |
int |
setNodeParent(IHgraphNode newParent,
Path callerPath)
Sets the parent of the HgraphNode. |
void |
start()
Start the DiscoveryManager. |
void |
stop()
Stop the DiscoveryManager. |
java.lang.String |
toXML()
|
java.lang.String |
toXMLFull()
|
java.lang.String |
toXMLFullRecursively()
|
java.lang.String |
toXMLRecursively()
|
void |
updateLocalConnectionInfo(PRDConnection ci)
Add a local ConnectionInfo to the DiscoveryManager. |
void |
updateLocalSelector(LocalSID localSID,
Selector selector)
Add or change a local Selector to the DiscoveryManager. |
void |
updateLocalServiceDescription(PRDServiceFMDescription sd)
Add a local ServiceDescription to the DiscoveryManager. |
void |
updateLocalServiceInstanceID(LocalSID localSID,
ServiceInstanceID serviceInstanceID)
Add or change a local ServiceInstanceID to the DiscoveryManager. |
void |
updateLocalServiceList(PRDServiceList list)
Add a local ServiceList to the DiscoveryManager. |
void |
updateLocalSID(ServiceInstanceID serviceInstanceID,
LocalSID localSID)
Add or change a LocalSID to the DiscoveryManager. |
void |
updatePath()
Updates the path of the H-Graph node along with its offspring recursively. |
void |
updateServiceStatus(LocalSID localSID,
byte status,
java.lang.String helpText)
Add or change the status of a service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HgraphNode _node
public static final java.lang.String TOPIC
public static final java.lang.String DISCOVERY_VERSION
| Constructor Detail |
|---|
public DiscoveryManager(PalcomScheduler scheduler,
PointToPointManager pointToPointManager,
CommunicationManager communicationManager,
PRDDevice localDeviceInfo)
| Method Detail |
|---|
public void start()
The PubSubManager that was passed to the constructor must be started before this call.
public void stop()
The PubSubManager that was passed to the constructor will not be stopped.
public void updateLocalServiceList(PRDServiceList list)
public void removeLocalServiceList(PRDServiceList list)
public boolean removeLocalServiceOrSubList(PRDServiceListItem listItem)
public void updateLocalServiceDescription(PRDServiceFMDescription sd)
public void removeLocalServiceDescription(PRDServiceFMDescription sd)
public void updateLocalConnectionInfo(PRDConnection ci)
public void removeLocalConnectionInfo(PRDConnection ci)
public void updateLocalSelector(LocalSID localSID,
Selector selector)
public void removeLocalSelector(LocalSID localSID)
public void updateLocalServiceInstanceID(LocalSID localSID,
ServiceInstanceID serviceInstanceID)
public void removeLocalServiceInstanceID(LocalSID localSID)
public void updateLocalSID(ServiceInstanceID serviceInstanceID,
LocalSID localSID)
public void removeLocalSID(ServiceInstanceID serviceInstanceID)
public void updateServiceStatus(LocalSID localSID,
byte status,
java.lang.String helpText)
public void removeServiceStatus(LocalSID localSID)
public 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 | ||||||||