ist.palcom.resource.manager
Class ResourceMonitor

java.lang.Object
  extended by ist.palcom.palcomthreads.Monitor
      extended by ist.palcom.resource.manager.ResourceMonitor

public class ResourceMonitor
extends Monitor

Monitor holding the resources discovered by the ResourceManager.

See Also:
ResourceManager

Nested Class Summary
 
Nested classes/interfaces inherited from class ist.palcom.palcomthreads.Monitor
Monitor.Condition
 
Constructor Summary
ResourceMonitor(ResourceManager resourceManager, PalcomScheduler scheduler)
           
 
Method Summary
 LocalSID getLocalSID(DeviceID deviceID, Selector selector)
          Get the LocalSID of the service using the specified selector at device with deviceID.
 LocalSID getLocalSID(ServiceInstanceID siid, long timeOut, boolean includeInactiveInfos)
          Get the LocalSID corresponding to ServiceInstanceID siid or null if it cannot be discovered/found within the time specified by timeOut.
 PRDDevice getPRDDevice(DeviceID deviceID, long timeOut, boolean includeInactiveInfos)
          Get the PRDDevice with address DeviceID or null if it cannot be discovered/found within the time specified by timeOut.
 PRDService getPRDService(LocalSID localSID, long timeOut, boolean includeInactiveInfos)
          Get the PRDService with address LocalSID or null if it cannot be discovered/found within the time specified by timeOut.
 Selector getSelector(LocalSID localSID, long timeOut)
          Get the selector with address LocalSID or null if it cannot be discovered/found within the time specified by timeOut.
 PRDServiceFMDescription getServiceDescription(LocalSID localSID, long timeOut, boolean includeInactiveInfos)
          Get the PRDServiceFMDescription with address LocalSID or null if it cannot be discovered/found within the time specified by timeOut.
 ServiceInstanceID getServiceInstanceID(LocalSID localSID, long timeOut, boolean includeInactiveInfos)
          Get the ServiceInstanceID corresponding to LocalSID localSID or null if it cannot be discovered/found within the time specified by timeOut.
 void stop()
           
 
Methods inherited from class ist.palcom.palcomthreads.Monitor
enterMonitor, exitMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceMonitor

public ResourceMonitor(ResourceManager resourceManager,
                       PalcomScheduler scheduler)
Method Detail

stop

public void stop()

getPRDDevice

public PRDDevice getPRDDevice(DeviceID deviceID,
                              long timeOut,
                              boolean includeInactiveInfos)
Get the PRDDevice with address DeviceID or null if it cannot be discovered/found within the time specified by timeOut. A negative number for timeOut equals no timeout and the thread may stay in the monitor forever. The flag includeInactiveInfos means that the answer can include infos from seen devices/services that have been removed.


getPRDService

public PRDService getPRDService(LocalSID localSID,
                                long timeOut,
                                boolean includeInactiveInfos)
Get the PRDService with address LocalSID or null if it cannot be discovered/found within the time specified by timeOut. A negative number for timeOut equals no timeout and the thread may stay in the monitor forever. The flag includeInactiveInfos means that the answer can include infos from seen devices/services that have been removed.


getSelector

public Selector getSelector(LocalSID localSID,
                            long timeOut)
Get the selector with address LocalSID or null if it cannot be discovered/found within the time specified by timeOut. A negative number for timeOut equals no timeout and the thread may stay in the monitor forever.


getLocalSID

public LocalSID getLocalSID(DeviceID deviceID,
                            Selector selector)
Get the LocalSID of the service using the specified selector at device with deviceID. Null is returned if no LocalSID is stored in the monitor.


getLocalSID

public LocalSID getLocalSID(ServiceInstanceID siid,
                            long timeOut,
                            boolean includeInactiveInfos)
Get the LocalSID corresponding to ServiceInstanceID siid or null if it cannot be discovered/found within the time specified by timeOut. A negative number for timeOut equals no timeout and the thread may stay in the monitor forever. The flag includeInactiveInfos means that the answer can include infos from seen devices/services that have been removed.


getServiceInstanceID

public ServiceInstanceID getServiceInstanceID(LocalSID localSID,
                                              long timeOut,
                                              boolean includeInactiveInfos)
Get the ServiceInstanceID corresponding to LocalSID localSID or null if it cannot be discovered/found within the time specified by timeOut. A negative number for timeOut equals no timeout and the thread may stay in the monitor forever. The flag includeInactiveInfos means that the answer can include infos from seen devices/services that have been removed.


getServiceDescription

public PRDServiceFMDescription getServiceDescription(LocalSID localSID,
                                                     long timeOut,
                                                     boolean includeInactiveInfos)
Get the PRDServiceFMDescription with address LocalSID or null if it cannot be discovered/found within the time specified by timeOut. A negative number for timeOut equals no timeout and the thread may stay in the monitor forever. The flag includeInactiveInfos means that the answer can include infos from seen devices/services that have been removed.