edu.indiana.dde.mylead.agent.test
Class NotifTest

java.lang.Object
  extended byedu.indiana.dde.mylead.agent.test.NotifTest

public class NotifTest
extends Object


Constructor Summary
NotifTest(String brokerUrl, String topic)
           
NotifTest(String brokerUrl, String topic, String sender)
          Creates a NotificationSender.
 
Method Summary
static void main(String[] args)
           
 void workflowCompleted()
          Sends a START_COMPLETED notification message.
 void workflowCompleted(String message)
          Sends a START_COMPLETED notification message.
 void workflowIncompleted(String message)
          Sends a START_INCOMPLETED notification message.
 void workflowIncompleted(String message, Throwable t)
          Sends a START_INCOMPLETED notification message.
 void workflowIncompleted(Throwable t)
          Sends a START_INCOMPLETED notification message.
 void workflowStarted()
          Sends a START_WORKFLOW notification message.
 void workflowStarted(String message)
          Sends a START_WORKFLOW notification message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotifTest

public NotifTest(String brokerUrl,
                 String topic)

NotifTest

public NotifTest(String brokerUrl,
                 String topic,
                 String sender)
Creates a NotificationSender.

Parameters:
brokerUrl - The location of notification brokerUrl.
topic - The notification topic.
sender - The sender
Method Detail

workflowStarted

public void workflowStarted()
Sends a START_WORKFLOW notification message.


workflowStarted

public void workflowStarted(String message)
Sends a START_WORKFLOW notification message.

Parameters:
message - The message to send

workflowCompleted

public void workflowCompleted()
Sends a START_COMPLETED notification message.


workflowCompleted

public void workflowCompleted(String message)
Sends a START_COMPLETED notification message.

Parameters:
message - The message to send

workflowIncompleted

public void workflowIncompleted(String message)
Sends a START_INCOMPLETED notification message.

Parameters:
message - The message to send

workflowIncompleted

public void workflowIncompleted(String message,
                                Throwable t)
Sends a START_INCOMPLETED notification message.

Parameters:
message - The message to send
t -

workflowIncompleted

public void workflowIncompleted(Throwable t)
Sends a START_INCOMPLETED notification message.

Parameters:
t -

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception