ist.palcom.contingency.manager.events
Class ServiceNAEvent

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.ServiceNAEvent
All Implemented Interfaces:
java.lang.Cloneable

public class ServiceNAEvent
extends ContingencyEvent

An event dealing with the disappearance of a service.


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
ServiceNAEvent(PalcomThread requester, URN serviceURN, ServiceDecl service, boolean shouldKeep, ContingencyEvent.ContingencyState state)
           
 
Method Summary
 ServiceDecl getDecl()
           
 java.lang.String getEventType()
           
 PRDService getInfo()
           
 void rebind(URN newURN)
          Rebind the event to another resource.
 void setDecl(URN deviceURN, ServiceDecl service)
           
 
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

ServiceNAEvent

public ServiceNAEvent(PalcomThread requester,
                      URN serviceURN,
                      ServiceDecl service,
                      boolean shouldKeep,
                      ContingencyEvent.ContingencyState state)
Method Detail

getDecl

public ServiceDecl getDecl()
Overrides:
getDecl in class ContingencyEvent

setDecl

public void setDecl(URN deviceURN,
                    ServiceDecl service)

getInfo

public PRDService getInfo()
Overrides:
getInfo in class ContingencyEvent

getEventType

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

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.