public class Monitor extends EventProducer
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_MODEL_KEY |
protected Map<String,EventDataRepository> |
eventDataMap |
protected static org.slf4j.Logger |
logger |
protected org.apache.airavata.messaging.core.Consumer |
messageClient |
protected long |
messagePullTimeout |
protected boolean |
monitoring |
protected boolean |
printRawMessages |
| Constructor and Description |
|---|
Monitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
fireStartMonitoring(String workflowName) |
EventDataRepository |
getEventData()
Deprecated.
- Use
getEventDataRepository() instead |
EventDataRepository |
getEventData(String nodeID)
Deprecated.
- Use
getEventDataRepository(...) instead |
EventDataRepository |
getEventDataRepository()
Return the event data repository containing all the notifications
|
EventDataRepository |
getEventDataRepository(String nodeID)
Return the event data repository containing all the notifications for the node
|
long |
getMessagePullTimeout()
Retrieve the timeout in milliseconds for pulling messages
|
boolean |
isMonitoring()
is the monitoring active
|
void |
printRawMessage(boolean print)
Print the raw notification messages to the console as they arrive
|
void |
resetEventData()
Resets the graph and clear the monitoring table.
|
void |
setMessagePullTimeout(long timeout)
Set the timeout in milliseconds for pulling messages
|
void |
setPrint(boolean print)
Deprecated.
- Use
printRawMessage(...) instead |
void |
start() |
void |
startMonitoring()
Start monitoring asynchronously
|
void |
stop()
Stops monitoring without using a thread.
|
void |
stopMonitoring()
Stop monitoring asynchronously
|
void |
subscribe(String experimentID)
Subscribe to the WS Messenger client to pull notifications from the message box
|
void |
unsubscribe(String experimentId)
Unsubcribe from the ws messager client
|
void |
waitForCompletion()
Wait until the monitoring is completed
|
addEventListener, removeEventListener, sendEvent, sendSafeEventprotected static final org.slf4j.Logger logger
protected static final String DEFAULT_MODEL_KEY
protected Map<String,EventDataRepository> eventDataMap
protected org.apache.airavata.messaging.core.Consumer messageClient
protected boolean printRawMessages
protected long messagePullTimeout
protected boolean monitoring
public EventDataRepository getEventDataRepository()
public EventDataRepository getEventDataRepository(String nodeID)
nodeID - public void start()
throws MonitorException
MonitorExceptionpublic void stop()
throws MonitorException
MonitorExceptionpublic void startMonitoring()
public void stopMonitoring()
public void resetEventData()
public void subscribe(String experimentID) throws MonitorException
MonitorExceptionpublic void unsubscribe(String experimentId)
MonitorExceptionpublic void waitForCompletion()
public void printRawMessage(boolean print)
print - - if true raw notifications are printedpublic long getMessagePullTimeout()
public void setMessagePullTimeout(long timeout)
timeout - public boolean isMonitoring()
public EventDataRepository getEventData()
getEventDataRepository() insteadpublic EventDataRepository getEventData(String nodeID)
getEventDataRepository(...) insteadnodeID - public void setPrint(boolean print)
printRawMessage(...) insteadprint - - if true raw notifications are printedpublic void fireStartMonitoring(String workflowName)
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.