cern.cmw.rda.client
Interface ReplyHandler

All Known Implementing Classes:
ReplyAdapter, SimpleReplyHandler, Subscription

public interface ReplyHandler

Objects implementing this interface provide the client specific functionality for handling results of the asynchronous device calls.

See Also:
DeviceHandle

Method Summary
 void cancelled(SubscriptionRequest request)
          Invoked when a subscription has been cancelled by the monitorOff call.
 void disconnected(SubscriptionRequest request)
          Invoked when a subscription is suspended because of a lost connection to a remote device; for example, because the device server is down.
 void done(SetRequest request)
          Invoked when a set call completes successfully.
 void handleException(Request request, BadParameter exception)
          Invoked on receipt of a reply containing the specified exception.
 void handleException(Request request, InternalException exception)
          Invoked on receipt of a reply containing the specified exception.
 void handleException(Request request, IOError exception)
          Invoked on receipt of a reply containing the specified exception.
 void handleException(Request request, LostUpdates exception)
          Invoked on reception of a reply containing information about lost updates.
 void handleException(Request request, NoConnection exception)
          Invoked if the connection to the device server has been lost while waiting for the reply.
 void handleException(Request request, NoPermission exception)
          Invoked on reception of a reply containing the RBAC exception.
 void handleException(Request request, TimeOut exception)
          Invoked if no reply to the request has been received within a certain time limit.
 void handleReply(Request request, Data value)
          Invoked when a property value is delivered as a result of a successful get or monitorOn call.
 void reconnected(SubscriptionRequest request)
          Invoked when a suspended subscription has been resumed.
 

Method Detail

handleReply

void handleReply(Request request,
                 Data value)
Invoked when a property value is delivered as a result of a successful get or monitorOn call. The value Data may change after the call returns: make a copy of the Data object if you need to store it in your application.


done

void done(SetRequest request)
Invoked when a set call completes successfully.


disconnected

void disconnected(SubscriptionRequest request)
Invoked when a subscription is suspended because of a lost connection to a remote device; for example, because the device server is down. Note that this is not a fatal error: connection will be automatically reestablished when the server is up again.

See Also:
reconnected(cern.cmw.rda.client.SubscriptionRequest)

reconnected

void reconnected(SubscriptionRequest request)
Invoked when a suspended subscription has been resumed.

See Also:
disconnected(cern.cmw.rda.client.SubscriptionRequest)

cancelled

void cancelled(SubscriptionRequest request)
Invoked when a subscription has been cancelled by the monitorOff call.


handleException

void handleException(Request request,
                     BadParameter exception)
Invoked on receipt of a reply containing the specified exception.


handleException

void handleException(Request request,
                     TimeOut exception)
Invoked if no reply to the request has been received within a certain time limit.


handleException

void handleException(Request request,
                     NoConnection exception)
Invoked if the connection to the device server has been lost while waiting for the reply.


handleException

void handleException(Request request,
                     IOError exception)
Invoked on receipt of a reply containing the specified exception.


handleException

void handleException(Request request,
                     InternalException exception)
Invoked on receipt of a reply containing the specified exception.


handleException

void handleException(Request request,
                     NoPermission exception)
Invoked on reception of a reply containing the RBAC exception.


handleException

void handleException(Request request,
                     LostUpdates exception)
Invoked on reception of a reply containing information about lost updates.



Copyright © 2007 CERN. All Rights Reserved.