public interface MessageTaskInfo extends TaskInfo
MessageTaskInfoScheduler.create before the task will be created in the
persistent store.EXECUTION_DELAYEDUPDATE, QOS_ATLEASTONCE, QOS_ONLYONCECANCELLED, COMPLETE, INVALID, RUNNING, SCHEDULED, serialVersionUID, SUSPENDED| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConnectionFactoryJndiName()
Retrieves the set connection factory JNDI name.
|
java.lang.String |
getDestinationJndiName()
Retrieves the set destination JNDI name.
|
int |
getJMSPriority()
Gets the set priority
|
java.lang.Object |
getMessageData()
Retrieves the message data in the form of an Object.
|
java.util.Map |
getMessageHeaders()
This returns the properties associated with the message.
|
java.lang.String |
getUsername()
Deprecated.
use the
com.ibm.websphere.scheduler.TaskInfo.getAuthenticationAlias()
method.
|
void |
initialize(java.lang.String connectionFactoryJndiName,
java.lang.String destinationJndiName,
byte[] msg)
Initializes a MessageTaskInfo using the specified connection factory, destination, and message data.
|
void |
initialize(java.lang.String connectionFactoryJndiName,
java.lang.String destinationJndiName,
java.util.Map msg)
Initializes a MessageTaskInfo using the specified connection factory, destination, and message data.
|
void |
initialize(java.lang.String connectionFactoryJndiName,
java.lang.String destinationJndiName,
java.lang.String msg)
Initializes a MessageTaskInfo using the specified connection factory, destination, and message data.
|
void |
setConnectionFactoryJndiName(java.lang.String connectionFactoryJndiName)
Sets the JNDI name of either a queue connection factory, or a topic connection factory.
|
void |
setDestinationJndiName(java.lang.String destinationJndiName)
Sets the JNDI name of a JMS destination.
|
void |
setJMSPriority(int priority)
Determines the JMS Priority that the message will be sent with.
|
void |
setMessageData(byte[] msg)
Sets the message data.
|
void |
setMessageData(java.util.Map msg)
Sets the message data.
|
void |
setMessageData(java.lang.String msg)
Sets the message data.
|
void |
setMessageHeaders(java.util.Map headers)
This allows message properties to be specified for the message.
|
void |
setPassword(java.lang.String password)
Deprecated.
use the
com.ibm.websphere.scheduler.TaskInfo.setAuthenticationAlias(String alias)
method.
|
void |
setUsername(java.lang.String username)
Deprecated.
use the
com.ibm.websphere.scheduler.TaskInfo.setAuthenticationAlias(String alias)
method.
|
getAuthenticationAlias, getAutoPurge, getExpectedDuration, getName, getNotificationSink, getNotificationSinkJNDIName, getNumberOfRepeats, getQOS, getRepeatInterval, getStartByInterval, getStartTime, getStartTimeInterval, getTaskExecutionOptions, getUserCalendarJNDIName, getUserCalendarSpecifier, setAuthenticationAlias, setAutoPurge, setExpectedDuration, setInitialState, setName, setNotificationSink, setNotificationSink, setNotificationSink, setNotificationSink, setNumberOfRepeats, setQOS, setRepeatInterval, setStartByInterval, setStartTime, setStartTimeInterval, setTaskExecutionOptions, setUserCalendar, validategetNextFireTime, getRepeatsLeft, getStatus, getTaskId, getTimeCreatedvoid initialize(java.lang.String connectionFactoryJndiName,
java.lang.String destinationJndiName,
java.lang.String msg)
connectionFactoryJndiName - the JNDI name of the Queue or Topic connection factory.destinationJndiName - the JNDI name for the destinationmsg - the String Message to send to the destination when the task fires.void initialize(java.lang.String connectionFactoryJndiName,
java.lang.String destinationJndiName,
java.util.Map msg)
throws javax.jms.JMSException
connectionFactoryJndiName - the JNDI name of the Queue or Topic connection factory.destinationJndiName - the JNDI name for the destinationmsg - the MapMessage to send to the destination when the task fires.javax.jms.JMSException - a message key in the supplied map is not a java.lang.String or a value is not
serializable.void initialize(java.lang.String connectionFactoryJndiName,
java.lang.String destinationJndiName,
byte[] msg)
connectionFactoryJndiName - the JNDI name of the Queue or Topic connection factory.destinationJndiName - the JNDI name for the destinationmsg - the array of bytes to send to the destination when the task fires.void setConnectionFactoryJndiName(java.lang.String connectionFactoryJndiName)
connectionFactoryJndiName - the JNDI name of the connection factory.java.lang.String getConnectionFactoryJndiName()
void setDestinationJndiName(java.lang.String destinationJndiName)
destinationJndiName - the destination JNDI name.java.lang.String getDestinationJndiName()
void setMessageData(java.lang.String msg)
javax.jms.StringMessage will be sent when the task fires.
Note: Only one type of message can be sent in a single MessageTaskInfo instance.
msg - any text message.void setMessageData(java.util.Map msg)
javax.jms.MapMessage will be sent when the task fires.msg - any Map of Serializable data.void setMessageData(byte[] msg)
msg - any array of bytes.java.lang.Object getMessageData()
setMessageData methods.void setJMSPriority(int priority)
priority - the JMS priorityint getJMSPriority()
void setUsername(java.lang.String username)
username - the username.TaskInfo.setAuthenticationAlias(java.lang.String)java.lang.String getUsername()
TaskInfo.getAuthenticationAlias()void setMessageHeaders(java.util.Map headers)
throws javax.jms.JMSException
The allowable types are [Boolean, Byte, Short, Integer, Long, Float, Double, String].
headers - the Map holding the properties to be used.javax.jms.JMSException - an illegal value was detected.java.util.Map getMessageHeaders()
void setPassword(java.lang.String password)
password - the password.TaskInfo.setAuthenticationAlias(java.lang.String)