public class NotificationSender extends Object implements WorkflowNotifiable
| Modifier and Type | Field and Description |
|---|---|
protected String |
brokerURL |
protected org.apache.airavata.workflow.tracking.common.WorkflowTrackingContext |
context |
protected org.apache.axis2.addressing.EndpointReference |
eventSink |
protected org.apache.airavata.workflow.tracking.common.InvocationEntity |
initiator |
protected org.apache.airavata.workflow.tracking.common.InvocationContext |
invocationContext |
protected static org.slf4j.Logger |
logger |
protected org.apache.airavata.workflow.tracking.WorkflowNotifier |
notifier |
protected org.apache.airavata.workflow.tracking.common.InvocationEntity |
receiver |
protected String |
topic |
protected URI |
workflowID |
| Constructor and Description |
|---|
NotificationSender(String brokerURL,
String topic)
Creates a NotificationSender.
|
NotificationSender(URI brokerURL,
String topic)
Constructs a NotificationSender.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
ServiceNotifiable |
createServiceNotificationSender(String nodeID) |
org.apache.axis2.addressing.EndpointReference |
getEventSink() |
String |
getTopic() |
void |
info(String message) |
void |
sendingPartialResults(Object[] args,
String[] keywords) |
void |
workflowFailed(String message)
Sends a START_INCOMPLETED notification message.
|
void |
workflowFailed(String message,
Throwable e)
Sends a START_INCOMPLETED notification message.
|
void |
workflowFailed(Throwable e)
Sends a START_INCOMPLETED notification message.
|
void |
workflowFinished(Object[] args,
String[] keywords) |
void |
workflowFinished(org.python.core.PyObject[] args,
String[] keywords) |
void |
workflowStarted(Object[] args,
String[] keywords) |
void |
workflowStarted(org.python.core.PyObject[] args,
String[] keywords) |
void |
workflowTerminated() |
protected static final org.slf4j.Logger logger
protected org.apache.airavata.workflow.tracking.WorkflowNotifier notifier
protected String brokerURL
protected String topic
protected URI workflowID
protected org.apache.airavata.workflow.tracking.common.InvocationEntity initiator
protected org.apache.airavata.workflow.tracking.common.InvocationEntity receiver
protected org.apache.airavata.workflow.tracking.common.InvocationContext invocationContext
protected org.apache.axis2.addressing.EndpointReference eventSink
protected org.apache.airavata.workflow.tracking.common.WorkflowTrackingContext context
public NotificationSender(URI brokerURL, String topic)
brokerURL - topic - public org.apache.axis2.addressing.EndpointReference getEventSink()
getEventSink in interface WorkflowNotifiablepublic void workflowStarted(org.python.core.PyObject[] args,
String[] keywords)
workflowStarted in interface WorkflowNotifiablepublic void workflowStarted(Object[] args, String[] keywords)
workflowStarted in interface WorkflowNotifiablepublic void workflowFinished(Object[] args, String[] keywords)
workflowFinished in interface WorkflowNotifiablepublic void sendingPartialResults(Object[] args, String[] keywords)
sendingPartialResults in interface WorkflowNotifiablepublic void workflowFinished(org.python.core.PyObject[] args,
String[] keywords)
workflowFinished in interface WorkflowNotifiablepublic void workflowTerminated()
workflowTerminated in interface WorkflowNotifiablepublic void workflowFailed(String message)
WorkflowNotifiableworkflowFailed in interface WorkflowNotifiablemessage - The message to sendpublic void workflowFailed(Throwable e)
WorkflowNotifiableworkflowFailed in interface WorkflowNotifiablepublic void workflowFailed(String message, Throwable e)
WorkflowNotifiableworkflowFailed in interface WorkflowNotifiablemessage - The message to sendpublic void info(String message)
public ServiceNotifiable createServiceNotificationSender(String nodeID)
createServiceNotificationSender in interface WorkflowNotifiablepublic void cleanup()
cleanup in interface WorkflowNotifiablepublic String getTopic()
getTopic in interface WorkflowNotifiableCopyright © 2011–2014 The Apache Software Foundation. All rights reserved.