ist.palcom.contingency.manager.events
Class DeviceNAEvent

java.lang.Object
  extended by ist.palcom.collections.Link
      extended by ist.palcom.palcomthreads.Event
          extended by ist.palcom.contingency.manager.events.ContingencyEvent
              extended by ist.palcom.contingency.manager.events.DeviceNAEvent
All Implemented Interfaces:
java.lang.Cloneable

public class DeviceNAEvent
extends ContingencyEvent

An event dealing with the disappearance of a device.


Nested Class Summary
 
Nested classes/interfaces inherited from class ist.palcom.contingency.manager.events.ContingencyEvent
ContingencyEvent.ContingencyState
 
Field Summary
static java.lang.String EVENT_TYPE
           
 
Fields inherited from class ist.palcom.contingency.manager.events.ContingencyEvent
decl, info, urn
 
Constructor Summary
DeviceNAEvent(PalcomThread requester, DeviceDecl device, ServiceDeclList hostedServices, boolean shouldKeep, ContingencyEvent.ContingencyState state)
           
 
Method Summary
 DeviceDecl getDecl()
           
 java.lang.String getEventType()
           
 ServiceDeclList getHostedServices()
           
 PRDDevice getInfo()
           
 void rebind(URN newURN)
          Rebind the event to another resource.
 void setDecl(DeviceDecl decl)
           
 
Methods inherited from class ist.palcom.contingency.manager.events.ContingencyEvent
eventShouldBeKept, getRequester, getState, getURN, setDecl, setInfo, setShouldBeKept, setState
 
Methods inherited from class ist.palcom.collections.Link
getNext, getPrev
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_TYPE

public static final java.lang.String EVENT_TYPE
See Also:
Constant Field Values
Constructor Detail

DeviceNAEvent

public DeviceNAEvent(PalcomThread requester,
                     DeviceDecl device,
                     ServiceDeclList hostedServices,
                     boolean shouldKeep,
                     ContingencyEvent.ContingencyState state)
Method Detail

getDecl

public DeviceDecl getDecl()
Overrides:
getDecl in class ContingencyEvent

setDecl

public void setDecl(DeviceDecl decl)

getInfo

public PRDDevice getInfo()
Overrides:
getInfo in class ContingencyEvent

getEventType

public java.lang.String getEventType()
Overrides:
getEventType in class ContingencyEvent

getHostedServices

public ServiceDeclList getHostedServices()

rebind

public void rebind(URN newURN)
Description copied from class: ContingencyEvent
Rebind the event to another resource. (Used when reconnecting the monitored assembly from the former resource to an alternate one specified by the new urn.

Specified by:
rebind in class ContingencyEvent
Parameters:
newURN - - A URN of the new resource this contingency will be monitored on.