Class FileSystemWorkflowEventSource
java.lang.Object
de.uplanet.lucy.server.workflow.eventsource.AbstractWorkflowEventSource
de.uplanet.lucy.server.workflow.eventsource.AbstractSingleThreadedWorkflowEventSource
de.uplanet.lucy.server.workflow.eventsource.FileSystemWorkflowEventSource
- 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 FileSystemWorkflowEventSource
extends AbstractSingleThreadedWorkflowEventSource
implements de.uplanet.lucy.server.workflow.INeedClusterInfo, ISupportGlobalSharedState, ISupportBeforeStartEvent, ISupportAfterStopEvent
- 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.IClusterInfolongGet the dispatch delay, i.e.Get the watched directory.booleanThis property determines if a global shared state should be used for all events created by this event source.booleanThis property determines if directories should be ignored.booleanThis property determines if file system objects whose names start with a dot should be ignored.booleanThis property determines if regular files should be ignored.booleanThis property determines if symbolic links should be ignored.booleanThis property determines if anIAfterStopWatchDirectoryWorkflowEventshould be sent.booleanThis property determines if anIBeforeStartWatchDirectoryWorkflowEventshould be sent.booleanbooleanbooleanvoidsetClusterInfo(de.uplanet.lucy.server.workflow.IClusterInfo p_clusterInfo) voidsetDispatchDelay(long p_lDispatchDelay) Set the dispatch delay, i.e.voidsetGlobalSharedState(boolean p_bGlobalSharedState) This property determines if a global shared state should be used for all events created by this event source.voidsetIgnoreDirectories(boolean p_bIgnoreDirectories) This property determines if directories should be ignored.voidsetIgnoreDottedFileSystemObjects(boolean p_bIgnoreDottedFileSystemObjects) This property determines if file system objects whose names start with a dot should be ignored.voidsetIgnoreRegularFiles(boolean p_bIgnoreRegularFiles) This property determines if regular files should be ignored.voidsetIgnoreSymbolicLinks(boolean p_bIgnoreSymbolicLinks) This property determines if symbolic links should be ignored.voidsetSendAfterStopEvent(boolean p_bSendAfterStopEvent) This property determines if anIAfterStopWatchDirectoryWorkflowEventshould be sent.voidsetSendBeforeStartEvent(boolean p_bSendBeforeStartEvent) This property determines if anIBeforeStartWatchDirectoryWorkflowEventshould be sent.voidsetWatchCreate(boolean p_bWatchCreate) voidsetWatchDelete(boolean p_bWatchDelete) voidsetWatchedDirectory(String p_strPath) Set the watched directory.voidsetWatchModify(boolean p_bWatchModify) Methods inherited from class de.uplanet.lucy.server.workflow.eventsource.AbstractSingleThreadedWorkflowEventSource
getDatabaseConnectionFactory, getStartDelay, getStopWaitTimeout, isLogVerbose, isRunning, setDatabaseConnectionFactory, setLogVerbose, setStartDelay, setStopWaitTimeout, shouldRun, start, stopMethods 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
-
FileSystemWorkflowEventSource
-
-
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
-
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 anIBeforeStartWatchDirectoryWorkflowEventshould be sent.- Specified by:
isSendBeforeStartEventin interfaceISupportBeforeStartEvent- Returns:
trueif the event should be sent before the workflow object's activity is about to being started, orfalseotherwise.
-
setSendBeforeStartEvent
public void setSendBeforeStartEvent(boolean p_bSendBeforeStartEvent) This property determines if anIBeforeStartWatchDirectoryWorkflowEventshould be sent.- Specified by:
setSendBeforeStartEventin interfaceISupportBeforeStartEvent- Parameters:
p_bSendBeforeStartEvent-trueif the event should be sent before the workflow object's activity is about to being started, orfalseotherwise.
-
isSendAfterStopEvent
public boolean isSendAfterStopEvent()This property determines if anIAfterStopWatchDirectoryWorkflowEventshould be sent.- Specified by:
isSendAfterStopEventin interfaceISupportAfterStopEvent- Returns:
trueif the event should be sent after the workflow object's activity has been stopped, orfalseotherwise.
-
setSendAfterStopEvent
public void setSendAfterStopEvent(boolean p_bSendAfterStopEvent) This property determines if anIAfterStopWatchDirectoryWorkflowEventshould be sent.- Specified by:
setSendAfterStopEventin interfaceISupportAfterStopEvent- Parameters:
p_bSendAfterStopEvent-trueif the event should be sent after the workflow object's activity has been stopped, orfalseotherwise.
-
isWatchCreate
public boolean isWatchCreate() -
setWatchCreate
public void setWatchCreate(boolean p_bWatchCreate) -
isWatchModify
public boolean isWatchModify() -
setWatchModify
public void setWatchModify(boolean p_bWatchModify) -
isWatchDelete
public boolean isWatchDelete() -
setWatchDelete
public void setWatchDelete(boolean p_bWatchDelete) -
isIgnoreDottedFileSystemObjects
public boolean isIgnoreDottedFileSystemObjects()This property determines if file system objects whose names start with a dot should be ignored.The default value is
true.- Returns:
trueif dotted file system objects should be ignored, orfalseotherwise.
-
setIgnoreDottedFileSystemObjects
public void setIgnoreDottedFileSystemObjects(boolean p_bIgnoreDottedFileSystemObjects) This property determines if file system objects whose names start with a dot should be ignored.The default value is
true.- Parameters:
p_bIgnoreDottedFileSystemObjects-trueif dotted file system objects should be ignored, orfalseotherwise.
-
isIgnoreRegularFiles
public boolean isIgnoreRegularFiles()This property determines if regular files should be ignored.The default value is
false.- Returns:
trueif regular files should be ignored, orfalseotherwise.
-
setIgnoreRegularFiles
public void setIgnoreRegularFiles(boolean p_bIgnoreRegularFiles) This property determines if regular files should be ignored.The default value is
false.- Parameters:
p_bIgnoreRegularFiles-trueif regular files should be ignored, orfalseotherwise.
-
isIgnoreDirectories
public boolean isIgnoreDirectories()This property determines if directories should be ignored.The default value is
false.- Returns:
trueif directories should be ignored, orfalseotherwise.
-
setIgnoreDirectories
public void setIgnoreDirectories(boolean p_bIgnoreDirectories) This property determines if directories should be ignored.The default value is
.- Parameters:
p_bIgnoreDirectories-trueif directories should be ignored, orfalseotherwise.
-
isIgnoreSymbolicLinks
public boolean isIgnoreSymbolicLinks()This property determines if symbolic links should be ignored.The default value is
true.- Returns:
trueif symbolic links should be ignored, orfalseotherwise.
-
setIgnoreSymbolicLinks
public void setIgnoreSymbolicLinks(boolean p_bIgnoreSymbolicLinks) This property determines if symbolic links should be ignored.The default value is
true.- Parameters:
p_bIgnoreSymbolicLinks-trueif symbolic links should be ignored, orfalseotherwise.
-