Klasse AbstractSingleThreadedWorkflowEventSource
java.lang.Object
de.uplanet.lucy.server.workflow.eventsource.AbstractWorkflowEventSource
de.uplanet.lucy.server.workflow.eventsource.AbstractSingleThreadedWorkflowEventSource
- Alle implementierten Schnittstellen:
IActivatableWorkflowObject,de.uplanet.lucy.server.workflow.IImpersonateUser,ILogLevelAware,INamedWorkflowObject,INeedWorkflow,IRunnableWorkflowObject,IStartableWorkflowObject,IWorkflowEventSource,IWorkflowObject,Serializable
- Bekannte direkte Unterklassen:
AbstractIMAPFolderWorkflowEventSource,AbstractJMSWorkflowEventSource,FileSystemWorkflowEventSource,MaildirWorkflowEventSource,MQTTWorkflowEventSource,UDPWorkflowEventSource
public abstract class AbstractSingleThreadedWorkflowEventSource
extends AbstractWorkflowEventSource
implements IStartableWorkflowObject, IRunnableWorkflowObject, ILogLevelAware
- Siehe auch:
-
Feldübersicht
Von Schnittstelle geerbte Felder de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungde.uplanet.jdbc.IDatabaseConnectionFactoryGet the database connection factory used by this event source.longGet the start delay for this event source, i.e. the number of milliseconds that the worker thread waits until it really starts working by invoking the event source'srun()method.longGet the stop wait timeout.booleanThis flag determines if verbose logging is turned on or off.booleanCheck if the workflow object is running.voidsetDatabaseConnectionFactory(de.uplanet.jdbc.IDatabaseConnectionFactory p_connFactory) Set the database connection factory used by this event source.voidsetLogVerbose(boolean p_bLogVerbose) This flag determines if verbose logging is turned on or off.voidsetStartDelay(long p_lStartDelay) Set start delay for this event source, i.e. the number of milliseconds that the worker thread waits until it really starts working by invoking the event source'srun()method.voidsetStopWaitTimeout(long p_lStopWaitTimeout) Set the stop wait timeout.booleanIndicates if the worker thread should run or not.voidstart()Start the workflow object.voidstop()Stop the workflow object.Von Klasse geerbte Methoden de.uplanet.lucy.server.workflow.eventsource.AbstractWorkflowEventSource
getGuid, getImpersonateUserGuid, getName, getWorkflow, hasImpersonateUserGuid, isActive, isRunWithLocalSystemPrivileges, setActive, setImpersonateUserGuid, setName, setRunWithLocalSystemPrivileges, setWorkflow, toString
-
Konstruktordetails
-
AbstractSingleThreadedWorkflowEventSource
- Parameter:
p_strGuid- The GUID of the event source.
-
-
Methodendetails
-
getStopWaitTimeout
public long getStopWaitTimeout()Get the stop wait timeout.Negative values indicate that the
stop()method should not wait for the worker thread to stop.- Gibt zurück:
- The stop wait timeout in milliseconds.
-
setStopWaitTimeout
public void setStopWaitTimeout(long p_lStopWaitTimeout) Set the stop wait timeout.Negative values indicate that the
stop()method should not wait for the worker thread to stop.- Parameter:
p_lStopWaitTimeout- The stop wait timeout in milliseconds.
-
isLogVerbose
public boolean isLogVerbose()Beschreibung aus Schnittstelle kopiert:ILogLevelAwareThis flag determines if verbose logging is turned on or off.- Angegeben von:
isLogVerbosein SchnittstelleILogLevelAware- Gibt zurück:
trueif logging is verbose, orfalseotherwise.
-
setLogVerbose
public void setLogVerbose(boolean p_bLogVerbose) Beschreibung aus Schnittstelle kopiert:ILogLevelAwareThis flag determines if verbose logging is turned on or off.- Angegeben von:
setLogVerbosein SchnittstelleILogLevelAware- Parameter:
p_bLogVerbose-trueif logging should be verbose, orfalseotherwise.
-
getDatabaseConnectionFactory
public de.uplanet.jdbc.IDatabaseConnectionFactory getDatabaseConnectionFactory()Get the database connection factory used by this event source.- Gibt zurück:
- The database connection factory used by this event source,
or
nullfo the default.
-
setDatabaseConnectionFactory
public void setDatabaseConnectionFactory(de.uplanet.jdbc.IDatabaseConnectionFactory p_connFactory) Set the database connection factory used by this event source.- Parameter:
p_connFactory- The database connection factory used by this event source.
-
getStartDelay
public long getStartDelay()Get the start delay for this event source, i.e. the number of milliseconds that the worker thread waits until it really starts working by invoking the event source'srun()method.- Gibt zurück:
- The start delay for this event source.
-
setStartDelay
public void setStartDelay(long p_lStartDelay) Set start delay for this event source, i.e. the number of milliseconds that the worker thread waits until it really starts working by invoking the event source'srun()method.- Parameter:
p_lStartDelay- The start delay for this event source.
-
shouldRun
public boolean shouldRun()Indicates if the worker thread should run or not.- Angegeben von:
shouldRunin SchnittstelleIRunnableWorkflowObject- Gibt zurück:
trueif the worker thread should run, orfalseotherwise.
-
start
public void start()Beschreibung aus Schnittstelle kopiert:IStartableWorkflowObjectStart the workflow object.A call to this method must not throw an exception if the object is already running.
- Angegeben von:
startin SchnittstelleIStartableWorkflowObject
-
stop
public void stop()Beschreibung aus Schnittstelle kopiert:IStartableWorkflowObjectStop the workflow object.A call to this method must not throw an exception if the object is already stopped.
- Angegeben von:
stopin SchnittstelleIStartableWorkflowObject
-
isRunning
public boolean isRunning()Beschreibung aus Schnittstelle kopiert:IStartableWorkflowObjectCheck if the workflow object is running.- Angegeben von:
isRunningin SchnittstelleIStartableWorkflowObject- Gibt zurück:
trueif the workflow object is running, orfalseotherwise.
-