org.apache.airavata.ws.monitor
Class WsmgClient

java.lang.Object
  extended by org.apache.airavata.ws.monitor.WsmgClient
All Implemented Interfaces:
ConsumerNotificationHandler, NotificationHandler

public class WsmgClient
extends Object
implements ConsumerNotificationHandler, NotificationHandler


Constructor Summary
WsmgClient(Monitor monitor)
          Constructs a WsmgClient.
 
Method Summary
 long getInterval()
           
 long getTimeout()
           
 void handleNotification(org.apache.axiom.soap.SOAPEnvelope message)
           
 void handleNotification(String message)
           
 void setInterval(long interval)
           
 void setTimeout(long timeout)
           
 void subscribe()
          Subscribes to the notification.
 void unsubscribe()
          Unsubscribes from the notification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsmgClient

public WsmgClient(Monitor monitor)
Constructs a WsmgClient.

Parameters:
monitor -
Method Detail

subscribe

public void subscribe()
               throws MonitorException
Subscribes to the notification.

Throws:
MonitorException

unsubscribe

public void unsubscribe()
                 throws MonitorException
Unsubscribes from the notification.

Throws:
MonitorException

handleNotification

public void handleNotification(org.apache.axiom.soap.SOAPEnvelope message)
Specified by:
handleNotification in interface ConsumerNotificationHandler
See Also:
NotificationHandler.handleNotification(java.lang.String)

handleNotification

public void handleNotification(String message)
Specified by:
handleNotification in interface NotificationHandler
Parameters:
message -

getTimeout

public long getTimeout()

setTimeout

public void setTimeout(long timeout)

getInterval

public long getInterval()

setInterval

public void setInterval(long interval)


Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.