ist.palcom.contingency.manager.events.query
Class SameResourceQuery

java.lang.Object
  extended by ist.palcom.collections.Link
      extended by ist.palcom.palcomthreads.Event
          extended by ist.palcom.contingency.manager.events.query.Query
              extended by ist.palcom.contingency.manager.events.query.ResourceQuery
                  extended by ist.palcom.contingency.manager.events.query.SameResourceQuery
Direct Known Subclasses:
SameDeviceQuery, SameServiceQuery

public abstract class SameResourceQuery
extends ResourceQuery

Can be used for two purposes. 1. As a query for a alternate resource to the resource specified by its declaration. In that case its inherited isMonitorRequest flag should be set to false. 2. As a request to monitor for alternate resources to the resource specified by its declaration. In that case the isMonitorRequest flag should be set to true.


Field Summary
protected  PRDData decl
          The declaration of the resource used by the assembly manager.
 
Fields inherited from class ist.palcom.contingency.manager.events.query.ResourceQuery
shouldBeKept
 
Fields inherited from class ist.palcom.contingency.manager.events.query.Query
answer, requester
 
Constructor Summary
SameResourceQuery(PalcomThread requester, URN urn, PRDData decl, boolean isMonitorRequest, boolean shouldBeKept)
           
 
Method Summary
 PRDData getDecl()
           
 
Methods inherited from class ist.palcom.contingency.manager.events.query.ResourceQuery
getAnswer, getRequester, getURN, isMonitorRequest, isShouldBeKept, setAnswer, setMonitorRequest, setShouldBeKept
 
Methods inherited from class ist.palcom.contingency.manager.events.query.Query
isAnswer, setAnswer
 
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

decl

protected final PRDData decl
The declaration of the resource used by the assembly manager.

Constructor Detail

SameResourceQuery

public SameResourceQuery(PalcomThread requester,
                         URN urn,
                         PRDData decl,
                         boolean isMonitorRequest,
                         boolean shouldBeKept)
Method Detail

getDecl

public PRDData getDecl()