ist.palcom.contingency.manager
Interface IContingencyMonitor

All Known Implementing Classes:
ContingencyMonitor

public interface IContingencyMonitor


Field Summary
static java.lang.String SERVICE_NAME
           
static java.lang.String URN_SUFFIX
           
 
Method Summary
 PalcomThread getContingencyMonitorThread()
          Return a thread responsible for dealing requests to monitor contingencies.
 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()
           
 void stop()
           
 void unregisterResourceDirectoryThread()
          Unregisters the resource directory's thread to query for resources.
 

Field Detail

URN_SUFFIX

static final java.lang.String URN_SUFFIX
See Also:
Constant Field Values

SERVICE_NAME

static final java.lang.String SERVICE_NAME
See Also:
Constant Field Values
Method Detail

registerResourceDirectoryThread

void registerResourceDirectoryThread(PalcomThread t)
Registers the resource directory's thread to query for resources.


unregisterResourceDirectoryThread

void unregisterResourceDirectoryThread()
Unregisters the resource directory's thread to query for resources.


getContingencyMonitorThread

PalcomThread getContingencyMonitorThread()
Return a thread responsible for dealing requests to monitor contingencies.

Returns:
The contingency monitor thread.

start

void start()
           throws java.io.IOException
Throws:
java.io.IOException

stop

void stop()
          throws java.io.IOException
Throws:
java.io.IOException

handleResourceQuery

void handleResourceQuery(ResourceQuery query)
Handles ResourceDirectory's answer to the resource query. In case the resource is not available, the corresponding contingency event will be fired to ContingencyManager, otherwise it is informed that the contingency is ok and the contingency monitor further registers listeners in order to monitor the event's occurence in the future.


queryResource

void queryResource(ResourceQuery query)
Query for an available resource.