|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.agent.events.AgentMessageSource
public class AgentMessageSource
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
AgentMessageSource()
|
Method Summary | |
---|---|
java.lang.String |
getDefaultPortName()
|
MessageSourceContext |
getMessageSourceContext()
|
javax.transaction.TransactionManager |
getTransactionManager()
|
void |
sendAgentEventMessage(AgentEvent pAgentEvent,
java.lang.String pJmsType)
Sends an agent message using the port defined by the defaultPortName |
void |
sendAgentEventMessage(AgentEvent pAgentEvent,
java.lang.String pPortName,
java.lang.String pJmsType)
Sends an agent message using the specified port. |
protected void |
sendMessage(java.io.Serializable pMessageBean,
java.lang.String pPortName,
java.lang.String pJmsType)
Sends the message bean using the specified port name and jms type |
void |
setDefaultPortName(java.lang.String pDefaultPortName)
property DefaultPortName |
void |
setMessageSourceContext(MessageSourceContext pContext)
property messageSourceContext |
void |
setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
property transactionManager |
void |
startMessageSource()
Instructs this message source to begin distributing messages. |
void |
stopMessageSource()
Instructs this message source to begin distributing messages. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
Constructor Detail |
---|
public AgentMessageSource()
Method Detail |
---|
public void setDefaultPortName(java.lang.String pDefaultPortName)
The port name used by default for sending message through dms.
public java.lang.String getDefaultPortName()
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
The Transaction Manager instance used when sending messages.
public javax.transaction.TransactionManager getTransactionManager()
public void setMessageSourceContext(MessageSourceContext pContext)
setMessageSourceContext
in interface MessageSource
public MessageSourceContext getMessageSourceContext()
public void startMessageSource()
startMessageSource
in interface MessageSource
public void stopMessageSource()
stopMessageSource
in interface MessageSource
public void sendAgentEventMessage(AgentEvent pAgentEvent, java.lang.String pJmsType)
pAgentEvent
- the event objectpJmsType
- the jms type for sending the eventpublic void sendAgentEventMessage(AgentEvent pAgentEvent, java.lang.String pPortName, java.lang.String pJmsType)
pAgentEvent
- the event objectpPortName
- the port name used to send the messagepJmsType
- the jms type for sending the eventsendMessage(Serializable, String, String)
protected void sendMessage(java.io.Serializable pMessageBean, java.lang.String pPortName, java.lang.String pJmsType)
If the port name is not provided, the defaultPortName
is used.
pMessageBean
- the message objectpPortName
- the port name to use. This will default to the defaultPortName
if one is not supplied.pJmsType
- the jms type used for sending the event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |