Class AbstractJMSWorkflowEventSource
java.lang.Object
de.uplanet.lucy.server.workflow.eventsource.AbstractWorkflowEventSource
de.uplanet.lucy.server.workflow.eventsource.AbstractSingleThreadedWorkflowEventSource
de.uplanet.lucy.server.jms.workflow.eventsource.AbstractJMSWorkflowEventSource
- All Implemented Interfaces:
de.uplanet.lucy.server.workflow.authentication.INeedCredentialSupplier,de.uplanet.lucy.server.workflow.authentication.INeedPasswordSupplier,IActivatableWorkflowObject,de.uplanet.lucy.server.workflow.IImpersonateUser,ILogLevelAware,INamedWorkflowObject,de.uplanet.lucy.server.workflow.INeedClusterInfo,INeedWorkflow,IRunnableWorkflowObject,IStartableWorkflowObject,ISupportAfterStopEvent,ISupportBeforeStartEvent,ISupportGlobalSharedState,IWorkflowEventSource,IWorkflowObject,Serializable
- Direct Known Subclasses:
JMSQueueWorkflowEventSource,JMSTopicWorkflowEventSource
public abstract class AbstractJMSWorkflowEventSource
extends AbstractSingleThreadedWorkflowEventSource
implements de.uplanet.lucy.server.workflow.INeedClusterInfo, de.uplanet.lucy.server.workflow.authentication.INeedPasswordSupplier, ISupportGlobalSharedState, ISupportBeforeStartEvent, ISupportAfterStopEvent
- Since:
- Intrexx 7.0.
- See Also:
-
Field Summary
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the broker URL.Get the client identifier for the JMS connection.de.uplanet.lucy.server.workflow.IClusterInfoGet the message selector.longGet the time in milliseconds the event source will wait before it tries to restart after an error occurred that prevented it to running the source loop.Get the password that is used when creating the JMS connection.Get the user identity that used when creating the JMS connection.voidinternalSetPasswordSupplier(de.uplanet.lucy.server.workflow.authentication.IPasswordSupplier p_passwordSupplier) booleanThis property determines if a global shared state should be used for all events created by this event source.booleanThis property determines if an after-stop event should be sent.booleanThis property determines if an before-start event should be sent.booleanDetermine if this event source uses transacted JMS sessions.voidsetBrokerUrl(String p_strBrokerURL) Set the broker URL.voidsetBrokerUrlParamRef(String p_strParamRef) voidsetClientId(String p_strClientId) Set the client identifier for the JMS connection.voidsetClusterInfo(de.uplanet.lucy.server.workflow.IClusterInfo p_clusterInfo) voidsetGlobalSharedState(boolean p_bGlobalSharedState) This property determines if a global shared state should be used for all events created by this event source.voidsetMessageSelector(String p_strMessageSelector) Set the message selector.voidsetOnErrorRestartWaitTimeout(long p_lOnErrorRestartWaitTimeout) Set the time in milliseconds the event source will wait before it tries to restart after an error occurred that prevented it to running the source loop.voidsetPassword(String p_strPassword) Set the password that is used when creating the JMS connection.voidsetSendAfterStopEvent(boolean p_bSendAfterStopEvent) This property determines if an after-stop event should be sent.voidsetSendBeforeStartEvent(boolean p_bSendBeforeStartEvent) This property determines if an before-start event should be sent.voidsetUserName(String p_strUserName) Set the user identity that used when creating the JMS connection.voidsetUserNameParamRef(String p_strParamRef) voidsetUseTransactedSession(boolean p_bUseTransactedSession) Determine if this event source uses transacted JMS sessions.voidstop()Stop the workflow object.Methods inherited from class de.uplanet.lucy.server.workflow.eventsource.AbstractSingleThreadedWorkflowEventSource
getDatabaseConnectionFactory, getStartDelay, getStopWaitTimeout, isLogVerbose, isRunning, setDatabaseConnectionFactory, setLogVerbose, setStartDelay, setStopWaitTimeout, shouldRun, startMethods inherited from class de.uplanet.lucy.server.workflow.eventsource.AbstractWorkflowEventSource
getGuid, getImpersonateUserGuid, getName, getWorkflow, hasImpersonateUserGuid, isActive, isRunWithLocalSystemPrivileges, setActive, setImpersonateUserGuid, setName, setRunWithLocalSystemPrivileges, setWorkflow, toString
-
Constructor Details
-
AbstractJMSWorkflowEventSource
-
-
Method Details
-
getClusterInfo
public de.uplanet.lucy.server.workflow.IClusterInfo getClusterInfo()- Specified by:
getClusterInfoin interfacede.uplanet.lucy.server.workflow.INeedClusterInfo
-
setClusterInfo
public void setClusterInfo(de.uplanet.lucy.server.workflow.IClusterInfo p_clusterInfo) - Specified by:
setClusterInfoin interfacede.uplanet.lucy.server.workflow.INeedClusterInfo
-
getOnErrorRestartWaitTimeout
public long getOnErrorRestartWaitTimeout()Get the time in milliseconds the event source will wait before it tries to restart after an error occurred that prevented it to running the source loop.The default value is 60000 milliseconds (one minute).
- Returns:
- The timeout in milliseconds.
-
setOnErrorRestartWaitTimeout
public void setOnErrorRestartWaitTimeout(long p_lOnErrorRestartWaitTimeout) Set the time in milliseconds the event source will wait before it tries to restart after an error occurred that prevented it to running the source loop.- Parameters:
p_lOnErrorRestartWaitTimeout- The timeout in milliseconds.
-
isSendBeforeStartEvent
public boolean isSendBeforeStartEvent()Description copied from interface:ISupportBeforeStartEventThis property determines if an before-start event should be sent.- Specified by:
isSendBeforeStartEventin interfaceISupportBeforeStartEvent- Returns:
trueif an event should be sent before the workflow object's activity is about to being started, orfalseotherwise.
-
setSendBeforeStartEvent
public void setSendBeforeStartEvent(boolean p_bSendBeforeStartEvent) Description copied from interface:ISupportBeforeStartEventThis property determines if an before-start event should be sent.- Specified by:
setSendBeforeStartEventin interfaceISupportBeforeStartEvent- Parameters:
p_bSendBeforeStartEvent-trueif an event should be sent before the workflow object's activity is about to being started, orfalseotherwise.
-
isSendAfterStopEvent
public boolean isSendAfterStopEvent()Description copied from interface:ISupportAfterStopEventThis property determines if an after-stop event should be sent.- Specified by:
isSendAfterStopEventin interfaceISupportAfterStopEvent- Returns:
trueif an event should be sent after the workflow object's activity has been stopped, orfalseotherwise.
-
setSendAfterStopEvent
public void setSendAfterStopEvent(boolean p_bSendAfterStopEvent) Description copied from interface:ISupportAfterStopEventThis property determines if an after-stop event should be sent.- Specified by:
setSendAfterStopEventin interfaceISupportAfterStopEvent- Parameters:
p_bSendAfterStopEvent-trueif an event should be sent after the workflow object's activity has been stopped, orfalseotherwise.
-
getBrokerUrl
Get the broker URL.- Returns:
- The broker URL.
-
setBrokerUrl
Set the broker URL.- Parameters:
p_strBrokerURL- The broker URL.
-
getBrokerUrlParamRef
-
setBrokerUrlParamRef
-
getUserName
Get the user identity that used when creating the JMS connection.- Returns:
- The user identity.
-
setUserName
Set the user identity that used when creating the JMS connection.If this property is
null(default) the default user identity will be used.- Parameters:
p_strUserName- The user identity.
-
getUserNameParamRef
-
setUserNameParamRef
-
getPassword
Get the password that is used when creating the JMS connection.- Returns:
- The password.
-
setPassword
Set the password that is used when creating the JMS connection.- Parameters:
p_strPassword- The password.
-
internalSetPasswordSupplier
public void internalSetPasswordSupplier(de.uplanet.lucy.server.workflow.authentication.IPasswordSupplier p_passwordSupplier) - Specified by:
internalSetPasswordSupplierin interfacede.uplanet.lucy.server.workflow.authentication.INeedPasswordSupplier
-
internalGetPassword
- Specified by:
internalGetPasswordin interfacede.uplanet.lucy.server.workflow.authentication.INeedPasswordSupplier
-
getClientId
Get the client identifier for the JMS connection.- Returns:
- The client identifier for the JMS connection.
-
setClientId
Set the client identifier for the JMS connection.- Parameters:
p_strClientId- The client identifier for the JMS connection.
-
isUseTransactedSession
public boolean isUseTransactedSession()Determine if this event source uses transacted JMS sessions.Default is
true.- Returns:
trueif this event source uses transacted JMS sessions, orfalseotherwise.
-
setUseTransactedSession
public void setUseTransactedSession(boolean p_bUseTransactedSession) Determine if this event source uses transacted JMS sessions.Default is
true.- Parameters:
p_bUseTransactedSession-trueif this event source should use transacted JMS sessions, orfalseotherwise.
-
getMessageSelector
Get the message selector.- Returns:
- The message selector.
-
setMessageSelector
Set the message selector.- Parameters:
p_strMessageSelector- The message selector.
-
stop
public void stop()Description copied from interface:IStartableWorkflowObjectStop the workflow object.A call to this method must not throw an exception if the object is already stopped.
- Specified by:
stopin interfaceIStartableWorkflowObject- Overrides:
stopin classAbstractSingleThreadedWorkflowEventSource
-