|
ADK CVS | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttryllian.afc.task.AbstractTask
tryllian.afc.task.DefaultTask
tryllian.afc.task.jms.JMSTask
tryllian.afc.task.jms.TopicTask
This class is a generic task for the Topic task. It initializes the session and connection for the topic tasks.
| 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 | |
TopicTask()
Creates a new instance of TopicTask with the default settings. |
|
TopicTask(java.lang.String jndiFactory,
java.lang.String urlProvider,
java.lang.String connectionFactory,
java.lang.String topic)
Create a TopicTask using the specified JMS parameters. |
|
| Method Summary | |
protected javax.jms.TopicConnection |
getConnection()
Get the connection used for this JMS topic. |
protected javax.jms.TopicSession |
getSession()
Get the session used for this JMS topic. |
protected javax.jms.Topic |
getTopic()
Get the JMS topic. |
void |
taskEnded()
Cleans up the JMS resources |
void |
taskStarted()
Creates the connection and session. |
| Methods inherited from class tryllian.afc.task.jms.JMSTask |
getConnectionFactory, getJMSDestination, getJNDIFactory, getURLProvider, setConnectionFactory, setJMSDestination, setJNDIFactory, setURLProvider |
| 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, taskRemoved |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TopicTask()
JMSTask.JMSTask(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public TopicTask(java.lang.String jndiFactory,
java.lang.String urlProvider,
java.lang.String connectionFactory,
java.lang.String topic)
jndiFactory - JNDI factory name.urlProvider - the provider URL of the JMS system.connectionFactory - JMS factory name.topic - name of the JMS topic.| Method Detail |
public void taskStarted()
taskStarted in class AbstractTaskpublic void taskEnded()
taskEnded in class AbstractTaskprotected javax.jms.Topic getTopic()
protected javax.jms.TopicSession getSession()
protected javax.jms.TopicConnection getConnection()
|
Copyright 2005, Tryllian Solutions B.V. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||