public class AMQPMonitor extends PushMonitor
| Constructor and Description |
|---|
AMQPMonitor() |
AMQPMonitor(MonitorPublisher publisher,
BlockingQueue<MonitorID> runningQueue,
BlockingQueue<MonitorID> finishQueue,
String proxyPath,
String connectionName,
List<String> hosts) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAmqpHosts() |
Map<String,com.rabbitmq.client.Channel> |
getAvailableChannels() |
BlockingQueue<MonitorID> |
getFinishQueue() |
String |
getProxyPath() |
MonitorPublisher |
getPublisher() |
BlockingQueue<MonitorID> |
getRunningQueue() |
void |
initialize(String proxyPath,
String connectionName,
List<String> hosts) |
boolean |
isStartRegister() |
boolean |
registerListener(MonitorID monitorID)
This method can be invoked to register a listener with the
remote monitoring system, ideally inside this method users will be
writing some client listener code for the remote monitoring system,
this will be a simple wrapper around any client for the remote Monitor.
|
void |
run() |
void |
setAmqpHosts(List<String> amqpHosts) |
void |
setAvailableChannels(Map<String,com.rabbitmq.client.Channel> availableChannels) |
void |
setFinishQueue(BlockingQueue<MonitorID> finishQueue) |
void |
setProxyPath(String proxyPath) |
void |
setPublisher(MonitorPublisher publisher) |
void |
setRunningQueue(BlockingQueue<MonitorID> runningQueue) |
void |
setStartRegister(boolean startRegister) |
boolean |
stopRegister()
This can be used to stop the registration thread
|
boolean |
unRegisterListener(MonitorID monitorID)
This method can be invoked to unregister a listener with the
remote monitoring system, ideally inside this method users will be
writing some client listener code for the remote monitoring system,
this will be a simple wrapper around any client for the remote Monitor.
|
public AMQPMonitor()
public AMQPMonitor(MonitorPublisher publisher, BlockingQueue<MonitorID> runningQueue, BlockingQueue<MonitorID> finishQueue, String proxyPath, String connectionName, List<String> hosts)
public boolean registerListener(MonitorID monitorID) throws AiravataMonitorException
PushMonitorregisterListener in class PushMonitorAiravataMonitorExceptionpublic void run()
public boolean unRegisterListener(MonitorID monitorID) throws AiravataMonitorException
PushMonitorunRegisterListener in class PushMonitorAiravataMonitorExceptionpublic boolean stopRegister()
throws AiravataMonitorException
PushMonitorstopRegister in class PushMonitorAiravataMonitorExceptionpublic void setAvailableChannels(Map<String,com.rabbitmq.client.Channel> availableChannels)
public MonitorPublisher getPublisher()
getPublisher in class AiravataAbstractMonitorpublic void setPublisher(MonitorPublisher publisher)
setPublisher in class AiravataAbstractMonitorpublic BlockingQueue<MonitorID> getRunningQueue()
public void setRunningQueue(BlockingQueue<MonitorID> runningQueue)
public BlockingQueue<MonitorID> getFinishQueue()
public void setFinishQueue(BlockingQueue<MonitorID> finishQueue)
public String getProxyPath()
public void setProxyPath(String proxyPath)
public boolean isStartRegister()
public void setStartRegister(boolean startRegister)
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.