ist.palcom.contingency
Class ResourceDirectory
java.lang.Object
ist.palcom.services.AbstractService
ist.palcom.contingency.ResourceDirectory
- All Implemented Interfaces:
- Service, IHgraphNode
public class ResourceDirectory
- extends AbstractService
| Fields inherited from interface ist.palcom.hgraph.IHgraphNode |
CHILD_NAME_CLASH, CIRCULARITY_CLASH, COMMAND_OR_NODE_MISSING, ERROR, HANDLER_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 |
| Methods inherited from class ist.palcom.services.AbstractService |
addNodeChild, addServiceProxyListener, addSubservice, connectionCreated, connectTo, disconnectFrom, getChildIterator, getConnectionForURN, getConnections, getFuncFunc, getNodeName, getNodeParent, getNumberOfSubservices, getPath, getRemoteServiceProxy, getSelfTester, getSelfTestService, getServiceInfo, getServiceProxy, getSiblingFunc, getSubservice, getValueFunc, hasChildNamed, isAncestorOf, remoteServiceProxyIterator, removeNodeChild, removeServiceProxyListener, sendToAll, setName, setNodeName, setNodeParent, setServiceProxy, setURN, toStringFull, toStringFullRecursively, toStringRecursively, toStringSimple, updatePath, waitUntilNumberOfConnectionsIs |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE_UP_EVENT
public static final java.lang.String SERVICE_UP_EVENT
- See Also:
- Constant Field Values
SERVICE_DOWN_EVENT
public static final java.lang.String SERVICE_DOWN_EVENT
- See Also:
- Constant Field Values
DEVICE_UP_EVENT
public static final java.lang.String DEVICE_UP_EVENT
- See Also:
- Constant Field Values
DEVICE_DOWN_EVENT
public static final java.lang.String DEVICE_DOWN_EVENT
- See Also:
- Constant Field Values
URN_SUFFIX
public static final java.lang.String URN_SUFFIX
- See Also:
- Constant Field Values
SERVICE_NAME
public static final java.lang.String SERVICE_NAME
- See Also:
- Constant Field Values
ResourceDirectory
public ResourceDirectory(DeviceContext context,
java.lang.String urnLeaf,
java.lang.String serviceName)
throws java.io.IOException
- Throws:
java.io.IOException
updateServiceUpReceiver
public void updateServiceUpReceiver(URN urn,
java.lang.String eventType,
PalcomThread thread)
removeServiceUpRecevier
public void removeServiceUpRecevier(URN urn,
java.lang.String eventType,
PalcomThread thread)
updateServiceDownReceiver
public void updateServiceDownReceiver(URN urn,
java.lang.String eventType,
PalcomThread thread)
removeServiceDownRecevier
public void removeServiceDownRecevier(URN urn,
java.lang.String eventType,
PalcomThread thread)
getResourceDirectoryThread
public PalcomThread getResourceDirectoryThread()
start
public void start()
throws java.io.IOException
- Description copied from class:
AbstractService
- Start the service. The URN must be set before calling this method
(through a constructor, or through a call to the setURN method).
If the service is started already, nothing happens.
The DiscoveryManager will be updated with info about the service.
- Overrides:
start in class AbstractService
- Throws:
java.io.IOException
stop
public void stop()
throws java.io.IOException
- Overrides:
stop in class AbstractService
- Throws:
java.io.IOException