|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.services.AbstractService
ist.palcom.contingency.manager.ContingencyMonitor
public class ContingencyMonitor
Contingency monitor receives requests from the contingency manager to monitor the occurence of a particular contingency event. Upon receiving of the request, the contingency monitor interprets the contingency event and checks whether it did not occur already (e.g. device is missing). In case the event occurred, the contingency manager is informed, otherwise the contingency monitor further monitors its occurrence accordingly.
| Field Summary |
|---|
| Fields inherited from class ist.palcom.services.AbstractService |
|---|
_node, connectionsMonitor, context, info, siid |
| Fields inherited from interface ist.palcom.contingency.manager.IContingencyMonitor |
|---|
SERVICE_NAME, URN_SUFFIX |
| 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 | |
|---|---|
ContingencyMonitor(DeviceContext context,
java.lang.String serviceName)
|
|
| Method Summary | |
|---|---|
PalcomThread |
getContingencyMonitorThread()
Return a thread responsible for dealing requests to monitor contingencies. |
ServiceID |
getServiceID()
|
void |
handleResourceQuery(ResourceQuery query)
Handles ResourceDirectory's answer to the resource query. |
void |
queryResource(ResourceQuery query)
Query for an available resource. |
void |
registerResourceDirectoryThread(PalcomThread t)
Registers the resource directory's thread to query for resources. |
void |
start()
Start the service. |
void |
stop()
|
void |
unregisterResourceDirectoryThread()
Unregisters the resource directory's thread to query for resources. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContingencyMonitor(DeviceContext context,
java.lang.String serviceName)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public ServiceID getServiceID()
getServiceID in class AbstractServicepublic void registerResourceDirectoryThread(PalcomThread t)
IContingencyMonitor
registerResourceDirectoryThread in interface IContingencyMonitorpublic void unregisterResourceDirectoryThread()
IContingencyMonitor
unregisterResourceDirectoryThread in interface IContingencyMonitorpublic PalcomThread getContingencyMonitorThread()
IContingencyMonitor
getContingencyMonitorThread in interface IContingencyMonitor
public void start()
throws java.io.IOException
AbstractService
start in interface IContingencyMonitorstart in class AbstractServicejava.io.IOException
public void stop()
throws java.io.IOException
stop in interface IContingencyMonitorstop in class AbstractServicejava.io.IOExceptionpublic void handleResourceQuery(ResourceQuery query)
IContingencyMonitor
handleResourceQuery in interface IContingencyMonitorpublic void queryResource(ResourceQuery query)
IContingencyMonitor
queryResource in interface IContingencyMonitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||