cern.cmw.rda.examples
Class SimpleReplyHandler

java.lang.Object
  extended by cern.cmw.rda.client.ReplyAdapter
      extended by cern.cmw.rda.examples.SimpleReplyHandler
All Implemented Interfaces:
ReplyHandler

public class SimpleReplyHandler
extends ReplyAdapter


Constructor Summary
SimpleReplyHandler()
           
 
Method Summary
 void cancelled(SubscriptionRequest request)
          Invoked when a data subscription is cancelled by a 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 handleError(Request request, CmwException exception)
          This method is called by default implementations of the handleException methods.
 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.
 
Methods inherited from class cern.cmw.rda.client.ReplyAdapter
done, handleException, handleException, handleException, handleException, handleException, handleException, handleException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleReplyHandler

public SimpleReplyHandler()
Method Detail

handleReply

public void handleReply(Request request,
                        Data value)
Description copied from class: ReplyAdapter
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.

Implementation: empty.

Specified by:
handleReply in interface ReplyHandler
Overrides:
handleReply in class ReplyAdapter

handleError

public void handleError(Request request,
                        CmwException exception)
Description copied from class: ReplyAdapter
This method is called by default implementations of the handleException methods.

Implementation: empty

Overrides:
handleError in class ReplyAdapter

disconnected

public void disconnected(SubscriptionRequest request)
Description copied from class: ReplyAdapter
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.

Implementation: empty.

Specified by:
disconnected in interface ReplyHandler
Overrides:
disconnected in class ReplyAdapter
See Also:
ReplyHandler.reconnected(cern.cmw.rda.client.SubscriptionRequest)

reconnected

public void reconnected(SubscriptionRequest request)
Description copied from class: ReplyAdapter
Invoked when a suspended subscription has been resumed.

Implementation: empty.

Specified by:
reconnected in interface ReplyHandler
Overrides:
reconnected in class ReplyAdapter
See Also:
ReplyHandler.disconnected(cern.cmw.rda.client.SubscriptionRequest)

cancelled

public void cancelled(SubscriptionRequest request)
Description copied from class: ReplyAdapter
Invoked when a data subscription is cancelled by a monitorOff call.

Implementation: empty.

Specified by:
cancelled in interface ReplyHandler
Overrides:
cancelled in class ReplyAdapter


Copyright © 2007 CERN. All Rights Reserved.