Class 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:
  • Constructor Details

    • FileSystemWorkflowEventSource

      public FileSystemWorkflowEventSource(String p_strGuid)
  • Method Details

    • getClusterInfo

      public de.uplanet.lucy.server.workflow.IClusterInfo getClusterInfo()
      Specified by:
      getClusterInfo in interface de.uplanet.lucy.server.workflow.INeedClusterInfo
    • setClusterInfo

      public void setClusterInfo(de.uplanet.lucy.server.workflow.IClusterInfo p_clusterInfo)
      Specified by:
      setClusterInfo in interface de.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 an IBeforeStartWatchDirectoryWorkflowEvent should be sent.
      Specified by:
      isSendBeforeStartEvent in interface ISupportBeforeStartEvent
      Returns:
      true if the event should be sent before the workflow object's activity is about to being started, or false otherwise.
    • setSendBeforeStartEvent

      public void setSendBeforeStartEvent(boolean p_bSendBeforeStartEvent)
      This property determines if an IBeforeStartWatchDirectoryWorkflowEvent should be sent.
      Specified by:
      setSendBeforeStartEvent in interface ISupportBeforeStartEvent
      Parameters:
      p_bSendBeforeStartEvent - true if the event should be sent before the workflow object's activity is about to being started, or false otherwise.
    • isSendAfterStopEvent

      public boolean isSendAfterStopEvent()
      This property determines if an IAfterStopWatchDirectoryWorkflowEvent should be sent.
      Specified by:
      isSendAfterStopEvent in interface ISupportAfterStopEvent
      Returns:
      true if the event should be sent after the workflow object's activity has been stopped, or false otherwise.
    • setSendAfterStopEvent

      public void setSendAfterStopEvent(boolean p_bSendAfterStopEvent)
      This property determines if an IAfterStopWatchDirectoryWorkflowEvent should be sent.
      Specified by:
      setSendAfterStopEvent in interface ISupportAfterStopEvent
      Parameters:
      p_bSendAfterStopEvent - true if the event should be sent after the workflow object's activity has been stopped, or false 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, or false 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, or false 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, or false 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, or false 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, or false 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, or false 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, or false 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, or false 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 interface ISupportGlobalSharedState
      Returns:
      true if a global shared state should be used, or false 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 interface ISupportGlobalSharedState
      Parameters:
      p_bGlobalSharedState - true if a global shared state should be used, or false otherwise.