Class MaildirWorkflowEventSource
java.lang.Object
de.uplanet.lucy.server.workflow.eventsource.AbstractWorkflowEventSource
de.uplanet.lucy.server.workflow.eventsource.AbstractSingleThreadedWorkflowEventSource
de.uplanet.lucy.server.mailservice.workflow.eventsource.MaildirWorkflowEventSource
- All Implemented Interfaces:
IActivatableWorkflowObject
,de.uplanet.lucy.server.workflow.IImpersonateUser
,ILogLevelAware
,INamedWorkflowObject
,de.uplanet.lucy.server.workflow.INeedClusterInfo
,INeedWorkflow
,IRunnableWorkflowObject
,IStartableWorkflowObject
,ISupportAfterStopEvent
,ISupportBeforeStartEvent
,ISupportGlobalSharedState
,IWorkflowEventSource
,IWorkflowObject
,Serializable
public final class MaildirWorkflowEventSource
extends AbstractSingleThreadedWorkflowEventSource
implements de.uplanet.lucy.server.workflow.INeedClusterInfo, ISupportGlobalSharedState, ISupportBeforeStartEvent, ISupportAfterStopEvent
Event source that watches maildirs.
See maildir format.
- 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 TypeMethodDescriptionde.uplanet.lucy.server.workflow.IClusterInfo
long
Get the dispatch delay, i.e.Get the watched directory.boolean
This property determines if a global shared state should be used for all events created by this event source.boolean
This property determines if file system objects whose names start with a dot should be ignored.boolean
This property determines if incoming messages should be loaded immediately and be included in the generated events.boolean
This property determines if anIAfterStopWatchMaildirWorkflowEvent
should be sent.boolean
This property determines if anIBeforeStartWatchMaildirWorkflowEvent
should be sent.void
setClusterInfo
(de.uplanet.lucy.server.workflow.IClusterInfo p_clusterInfo) void
setDispatchDelay
(long p_lDispatchDelay) Set the dispatch delay, i.e.void
setGlobalSharedState
(boolean p_bGlobalSharedState) This property determines if a global shared state should be used for all events created by this event source.void
setIgnoreDottedMaildirObjects
(boolean p_bIgnoreDottedMaildirObjects) This property determines if file system objects whose names start with a dot should be ignored.void
setLoadIncomingMessagesImmediately
(boolean p_bLoadIncomingMessagesImmediately) This property determines if incoming messages should be loaded immediately and be included in the generated events.void
setSendAfterStopEvent
(boolean p_bSendAfterStopEvent) This property determines if anIAfterStopWatchMaildirWorkflowEvent
should be sent.void
setSendBeforeStartEvent
(boolean p_bSendBeforeStartEvent) This property determines if anIBeforeStartWatchMaildirWorkflowEvent
should be sent.void
setWatchedDirectory
(String p_strPath) Set the watched directory.Methods inherited from class de.uplanet.lucy.server.workflow.eventsource.AbstractSingleThreadedWorkflowEventSource
getDatabaseConnectionFactory, getStartDelay, getStopWaitTimeout, isLogVerbose, isRunning, setDatabaseConnectionFactory, setLogVerbose, setStartDelay, setStopWaitTimeout, shouldRun, start, stop
Methods 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
-
MaildirWorkflowEventSource
-
-
Method Details
-
getClusterInfo
public de.uplanet.lucy.server.workflow.IClusterInfo getClusterInfo()- Specified by:
getClusterInfo
in interfacede.uplanet.lucy.server.workflow.INeedClusterInfo
-
setClusterInfo
public void setClusterInfo(de.uplanet.lucy.server.workflow.IClusterInfo p_clusterInfo) - Specified by:
setClusterInfo
in interfacede.uplanet.lucy.server.workflow.INeedClusterInfo
-
getDispatchDelay
public long getDispatchDelay()Get the dispatch delay, i.e. the delay before a file system event is dispatched to the workflows.- Returns:
- The dispatch delay.
-
setDispatchDelay
public void setDispatchDelay(long p_lDispatchDelay) Set the dispatch delay, i.e. the delay before a file system event is dispatched to the workflows.- Parameters:
p_lDispatchDelay
- The dispatch delay.
-
getWatchedDirectory
Get the watched directory.- Returns:
- The watched directory.
-
setWatchedDirectory
Set the watched directory.- Parameters:
p_strPath
- The directory to be watched.
-
isSendBeforeStartEvent
public boolean isSendBeforeStartEvent()This property determines if anIBeforeStartWatchMaildirWorkflowEvent
should be sent.- Specified by:
isSendBeforeStartEvent
in interfaceISupportBeforeStartEvent
- Returns:
true
if the event should be sent before the workflow object's activity is about to being started, orfalse
otherwise.
-
setSendBeforeStartEvent
public void setSendBeforeStartEvent(boolean p_bSendBeforeStartEvent) This property determines if anIBeforeStartWatchMaildirWorkflowEvent
should be sent.- Specified by:
setSendBeforeStartEvent
in interfaceISupportBeforeStartEvent
- Parameters:
p_bSendBeforeStartEvent
-true
if the event should be sent before the workflow object's activity is about to being started, orfalse
otherwise.
-
isSendAfterStopEvent
public boolean isSendAfterStopEvent()This property determines if anIAfterStopWatchMaildirWorkflowEvent
should be sent.- Specified by:
isSendAfterStopEvent
in interfaceISupportAfterStopEvent
- Returns:
true
if the event should be sent after the workflow object's activity has been stopped, orfalse
otherwise.
-
setSendAfterStopEvent
public void setSendAfterStopEvent(boolean p_bSendAfterStopEvent) This property determines if anIAfterStopWatchMaildirWorkflowEvent
should be sent.- Specified by:
setSendAfterStopEvent
in interfaceISupportAfterStopEvent
- Parameters:
p_bSendAfterStopEvent
-true
if the event should be sent after the workflow object's activity has been stopped, orfalse
otherwise.
-
isIgnoreDottedMaildirObjects
public boolean isIgnoreDottedMaildirObjects()This property determines if file system objects whose names start with a dot should be ignored.The default value is
true
.- Returns:
true
if dotted file system objects should be ignored, orfalse
otherwise.
-
setIgnoreDottedMaildirObjects
public void setIgnoreDottedMaildirObjects(boolean p_bIgnoreDottedMaildirObjects) This property determines if file system objects whose names start with a dot should be ignored.The default value is
true
.- Parameters:
p_bIgnoreDottedMaildirObjects
-true
if dotted file system objects should be ignored, orfalse
otherwise.
-
isLoadIncomingMessagesImmediately
public boolean isLoadIncomingMessagesImmediately()This property determines if incoming messages should be loaded immediately and be included in the generated events.If set to
false
loading of the message will be delayed until it is accessed through the event's message property.The default value is
false
.- Returns:
true
if incoming messages should be loaded immediately, orfalse
otherwise.
-
setLoadIncomingMessagesImmediately
public void setLoadIncomingMessagesImmediately(boolean p_bLoadIncomingMessagesImmediately) This property determines if incoming messages should be loaded immediately and be included in the generated events.If set to
false
loading of the message will be delayed until it is accessed through the event's message property.The default value is
false
.- Parameters:
p_bLoadIncomingMessagesImmediately
-true
if incoming messages should be loaded immediately, orfalse
otherwise.
-