ADK CVS

tryllian.afc.task.jms
Class JMSTask

java.lang.Object
  extended bytryllian.afc.task.AbstractTask
      extended bytryllian.afc.task.DefaultTask
          extended bytryllian.afc.task.jms.JMSTask
All Implemented Interfaces:
java.util.EventListener, MessageHandler, java.io.Serializable, Task
Direct Known Subclasses:
QueueTask, TopicTask

public class JMSTask
extends DefaultTask

This task is a generic task used to initialize the JMS context.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class tryllian.afc.task.AbstractTask
NL
 
Fields inherited from interface tryllian.afc.task.Task
EMPTY_FINISH_VALUE, FORCED_FINISH_FAILURE, NO_TIME_OUT, TASK_TIMED_OUT
 
Constructor Summary
JMSTask()
          Default constructor.
JMSTask(java.lang.String jndiFactory, java.lang.String urlProvider, java.lang.String connectionFactory, java.lang.String jmsDestination)
          Create a JMSTask using the specified JMS parameters.
 
Method Summary
 java.lang.String getConnectionFactory()
          Get the name of the JMS factory used for the JMS task.
 java.lang.String getJMSDestination()
          Get the JMS destination.
 java.lang.String getJNDIFactory()
          Get the name of the JNDI factory used for the JMS task.
 java.lang.String getURLProvider()
          Get the provider URL of the JMS system.
 void setConnectionFactory(java.lang.String connectionFactory)
          Set the name of the JMS factory to use for this task.
 void setJMSDestination(java.lang.String jmsDestination)
          Set the JMS destination name.
 void setJNDIFactory(java.lang.String jndiFactory)
          Set the name of the JNDI factory.
 void setURLProvider(java.lang.String urlProvider)
          Set the provider URL of the JMS system.
 
Methods inherited from class tryllian.afc.task.DefaultTask
addFinishingTask, addTask, getSubtasks, handleHeartbeat, propagateHeartbeat
 
Methods inherited from class tryllian.afc.task.AbstractTask
addTaskListener, fail, fail, finish, finish, finish, forceFinish, forceFinish, getAgentContext, getFinishValue, getState, getSupertask, getTimeOut, handleMessage, heartbeatReceived, logException, messageReceived, removeTaskListener, setAgentContext, setFinishValue, setTimeOut, succeed, succeed, taskAdded, taskEnded, taskRemoved, taskStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSTask

public JMSTask()
Default constructor. This constructor will initialise the parameters to use the j2ee reference implementation from Sun using localhost as the URL Provider. The JMS destination is empty.
The default settings are :


JMSTask

public JMSTask(java.lang.String jndiFactory,
               java.lang.String urlProvider,
               java.lang.String connectionFactory,
               java.lang.String jmsDestination)
Create a JMSTask using the specified JMS parameters.

Parameters:
jndiFactory - JNDI factory name
urlProvider - the provider URL of the JMS system.
Method Detail

setJNDIFactory

public void setJNDIFactory(java.lang.String jndiFactory)
Set the name of the JNDI factory.

Parameters:
jndiFactory - JNDI factory name (e.g. weblogic.jndi.WLInitialContextFactory)

getJNDIFactory

public java.lang.String getJNDIFactory()
Get the name of the JNDI factory used for the JMS task.

Returns:
the name of the JNDI factory.

setConnectionFactory

public void setConnectionFactory(java.lang.String connectionFactory)
Set the name of the JMS factory to use for this task.

Parameters:
connectionFactory - JMS factory name (e.g. weblogic.examples.jms.QueueConnectionFactory)

getConnectionFactory

public java.lang.String getConnectionFactory()
Get the name of the JMS factory used for the JMS task.

Returns:
the name of the JMS factory.

setJMSDestination

public void setJMSDestination(java.lang.String jmsDestination)
Set the JMS destination name.


getJMSDestination

public java.lang.String getJMSDestination()
Get the JMS destination.

Returns:
the JMS destination JNDI name.

setURLProvider

public void setURLProvider(java.lang.String urlProvider)
Set the provider URL of the JMS system.

Parameters:
urlProvider - the provider URL of the JMS system. (e.g. 192.168.0.224:1050)

getURLProvider

public java.lang.String getURLProvider()
Get the provider URL of the JMS system.

Returns:
the provider URL of the JMS system.

Copyright 2005, Tryllian Solutions B.V.