|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.airavata.ws.monitor.event.EventProducer
org.apache.airavata.ws.monitor.Monitor
public class Monitor
| Field Summary | |
|---|---|
protected MonitorConfiguration |
configuration
|
protected static String |
DEFAULT_MODEL_KEY
|
protected Map<String,EventDataRepository> |
eventDataMap
|
protected static org.slf4j.Logger |
logger
|
protected long |
messagePullTimeout
|
protected boolean |
monitoring
|
protected boolean |
printRawMessages
|
protected WsmgClient |
wsmgClient
|
| Constructor Summary | |
|---|---|
Monitor(MonitorConfiguration configuration)
|
|
| Method Summary | |
|---|---|
MonitorConfiguration |
getConfiguration()
|
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 |
String |
getExperimentId()
Return the id of the experiment which the monitoring is done |
long |
getMessagePullTimeout()
Retrieve the timeout in milliseconds for pulling messages |
protected void |
handleNotification(org.xmlpull.infoset.XmlElement event)
|
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 |
waitForCompletion()
Wait until the monitoring is completed |
| Methods inherited from class org.apache.airavata.ws.monitor.event.EventProducer |
|---|
addEventListener, removeEventListener, sendEvent, sendSafeEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger logger
protected MonitorConfiguration configuration
protected static final String DEFAULT_MODEL_KEY
protected Map<String,EventDataRepository> eventDataMap
protected WsmgClient wsmgClient
protected boolean printRawMessages
protected long messagePullTimeout
protected boolean monitoring
| Constructor Detail |
|---|
public Monitor(MonitorConfiguration configuration)
| Method Detail |
|---|
public MonitorConfiguration getConfiguration()
public EventDataRepository getEventDataRepository()
public EventDataRepository getEventDataRepository(String nodeID)
nodeID -
public void start()
throws MonitorException
MonitorException
public void stop()
throws MonitorException
MonitorExceptionpublic void startMonitoring()
public void stopMonitoring()
public void resetEventData()
protected void handleNotification(org.xmlpull.infoset.XmlElement event)
event - public 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 String getExperimentId()
public EventDataRepository getEventData()
getEventDataRepository() instead
public EventDataRepository getEventData(String nodeID)
getEventDataRepository(...) instead
nodeID -
public void setPrint(boolean print)
printRawMessage(...) instead
print - - if true raw notifications are printed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||