org.fuin.jmsmvc4swing.jms
Class MethodResultSender

java.lang.Object
  extended by org.fuin.jmsmvc4swing.jms.MethodResultSender

public abstract class MethodResultSender
extends Object

Sends results from the controller with a JMS message to the subscribers.


Constructor Summary
MethodResultSender(JmsJndiEnvironment env, String topicName, String methodName, long id)
          Constructor.
 
Method Summary
 void failed(Exception ex)
          Publish a FAILED message.
 void progress(ProgressInfo progressInfo)
          Publish a PROGESS event.
protected  void publishResult(Data data)
          Publish a RESULT message.
 void started()
          Publish a STARTED message.
 void succeded()
          Publish a SUCCEDED message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodResultSender

public MethodResultSender(JmsJndiEnvironment env,
                          String topicName,
                          String methodName,
                          long id)
Constructor.

Parameters:
env - Environment to use.
topicName - Name of the topic (defined by the controller) to send to.
methodName - Name of the method that was called (used for creating the message properties).
id - Unique id of the method call.
Method Detail

publishResult

protected final void publishResult(Data data)
Publish a RESULT message.

Parameters:
data - Result data.

started

public final void started()
Publish a STARTED message.


progress

public final void progress(ProgressInfo progressInfo)
Publish a PROGESS event.

Parameters:
progressInfo - Progress information.

succeded

public final void succeded()
Publish a SUCCEDED message.


failed

public final void failed(Exception ex)
Publish a FAILED message.

Parameters:
ex - Exception.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.