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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description FileSystemWorkflowEventSource(String p_strGuid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.uplanet.lucy.server.workflow.IClusterInfo
getClusterInfo()
long
getDispatchDelay()
Get the dispatch delay, i.e.String
getWatchedDirectory()
Get the watched directory.boolean
isGlobalSharedState()
This property determines if a global shared state should be used for all events created by this event source.boolean
isIgnoreDirectories()
This property determines if directories should be ignored.boolean
isIgnoreDottedFileSystemObjects()
This property determines if file system objects whose names start with a dot should be ignored.boolean
isIgnoreRegularFiles()
This property determines if regular files should be ignored.boolean
isIgnoreSymbolicLinks()
This property determines if symbolic links should be ignored.boolean
isSendAfterStopEvent()
This property determines if anIAfterStopWatchDirectoryWorkflowEvent
should be sent.boolean
isSendBeforeStartEvent()
This property determines if anIBeforeStartWatchDirectoryWorkflowEvent
should be sent.boolean
isWatchCreate()
boolean
isWatchDelete()
boolean
isWatchModify()
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
setIgnoreDirectories(boolean p_bIgnoreDirectories)
This property determines if directories should be ignored.void
setIgnoreDottedFileSystemObjects(boolean p_bIgnoreDottedFileSystemObjects)
This property determines if file system objects whose names start with a dot should be ignored.void
setIgnoreRegularFiles(boolean p_bIgnoreRegularFiles)
This property determines if regular files should be ignored.void
setIgnoreSymbolicLinks(boolean p_bIgnoreSymbolicLinks)
This property determines if symbolic links should be ignored.void
setSendAfterStopEvent(boolean p_bSendAfterStopEvent)
This property determines if anIAfterStopWatchDirectoryWorkflowEvent
should be sent.void
setSendBeforeStartEvent(boolean p_bSendBeforeStartEvent)
This property determines if anIBeforeStartWatchDirectoryWorkflowEvent
should be sent.void
setWatchCreate(boolean p_bWatchCreate)
void
setWatchDelete(boolean p_bWatchDelete)
void
setWatchedDirectory(String p_strPath)
Set the watched directory.void
setWatchModify(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, 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 Detail
-
FileSystemWorkflowEventSource
public FileSystemWorkflowEventSource(String p_strGuid)
-
-
Method Detail
-
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
public String getWatchedDirectory()
Get the watched directory.- Returns:
- The watched directory.
-
setWatchedDirectory
public void setWatchedDirectory(String p_strPath)
Set the watched directory.- Parameters:
p_strPath
- The directory to be watched.
-
isSendBeforeStartEvent
public boolean isSendBeforeStartEvent()
This property determines if anIBeforeStartWatchDirectoryWorkflowEvent
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 anIBeforeStartWatchDirectoryWorkflowEvent
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 anIAfterStopWatchDirectoryWorkflowEvent
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 anIAfterStopWatchDirectoryWorkflowEvent
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.
-
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:
true
if dotted file system objects should be ignored, orfalse
otherwise.
-
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
-true
if dotted file system objects should be ignored, orfalse
otherwise.
-
isIgnoreRegularFiles
public boolean isIgnoreRegularFiles()
This property determines if regular files should be ignored.The default value is
false
.- Returns:
true
if regular files should be ignored, orfalse
otherwise.
-
setIgnoreRegularFiles
public void setIgnoreRegularFiles(boolean p_bIgnoreRegularFiles)
This property determines if regular files should be ignored.The default value is
false
.- Parameters:
p_bIgnoreRegularFiles
-true
if regular files should be ignored, orfalse
otherwise.
-
isIgnoreDirectories
public boolean isIgnoreDirectories()
This property determines if directories should be ignored.The default value is
false
.- Returns:
true
if directories should be ignored, orfalse
otherwise.
-
setIgnoreDirectories
public void setIgnoreDirectories(boolean p_bIgnoreDirectories)
This property determines if directories should be ignored.The default value is
.
- Parameters:
p_bIgnoreDirectories
-true
if directories should be ignored, orfalse
otherwise.
-
isIgnoreSymbolicLinks
public boolean isIgnoreSymbolicLinks()
This property determines if symbolic links should be ignored.The default value is
true
.- Returns:
true
if symbolic links should be ignored, orfalse
otherwise.
-
setIgnoreSymbolicLinks
public void setIgnoreSymbolicLinks(boolean p_bIgnoreSymbolicLinks)
This property determines if symbolic links should be ignored.The default value is
true
.- Parameters:
p_bIgnoreSymbolicLinks
-true
if symbolic links should be ignored, orfalse
otherwise.
-
isGlobalSharedState
public boolean isGlobalSharedState()
Description copied from interface:ISupportGlobalSharedState
This property determines if a global shared state should be used for all events created by this event source.- Specified by:
isGlobalSharedState
in interfaceISupportGlobalSharedState
- Returns:
true
if a global shared state should be used, orfalse
otherwise.
-
setGlobalSharedState
public void setGlobalSharedState(boolean p_bGlobalSharedState)
Description copied from interface:ISupportGlobalSharedState
This property determines if a global shared state should be used for all events created by this event source.- Specified by:
setGlobalSharedState
in interfaceISupportGlobalSharedState
- Parameters:
p_bGlobalSharedState
-true
if a global shared state should be used, orfalse
otherwise.
-
-