cern.cmw.rda.client
Class Request

java.lang.Object
  extended by cern.cmw.rda.client.Request
Direct Known Subclasses:
GetRequest, SetRequest, SubscriptionRequest

public abstract class Request
extends Object

Allows a client to access information from the calling scope while in the scope of the ReplyHandler callback methods. A Request object also allows the caller to examine a call execution state.

A Request object holds values of all the call parameters, including the ReplyHandler to which results of the operation has to be reported. A Request is PENDING if it has been successfully sent to a device server and the RDA client is awaiting the server reply. When a reply arrives, it is matched with the request that originated the transaction and results of the operation are delivered to the caller via the request's ReplyHandler. The exact behaviour in this phase depends on the concrete request class: see GetRequest, SetRequest and SubscriptionRequest for more details.

See Also:
ReplyHandler

Method Summary
 Data getContext()
          Returns the context data or null, as specified in the call that created this request.
 String getCycleSelector()
          Returns the cycle selector string or null, as specified in the call that created this request.
 DeviceHandle getDeviceHandle()
          Returns the DeviceHandle on which this request has been created.
 String getPropertyName()
          Returns the property name specified in the call that created this request.
 boolean isPending()
          Returns true if this Request is PENDING.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isPending

public boolean isPending()
Returns true if this Request is PENDING.


getDeviceHandle

public DeviceHandle getDeviceHandle()
Returns the DeviceHandle on which this request has been created.


getPropertyName

public String getPropertyName()
Returns the property name specified in the call that created this request.


getCycleSelector

public String getCycleSelector()
Returns the cycle selector string or null, as specified in the call that created this request.


getContext

public Data getContext()
Returns the context data or null, as specified in the call that created this request.



Copyright © 2007 CERN. All Rights Reserved.