Interface FileEvent

  • All Superinterfaces:
    Detail, EventSource, Readable, SchedulerEntity, SchedulerEntityComp

    public interface FileEvent
    extends EventSource, Readable
    Information about the file that triggered the parent Event. This class contains no reference to the FileEventDefinition which caused it to be created; instead the relevant information is copied across. (This prevents foreign-key violations and confusion when the FileEventDefinition is changed or deleted.)
    • Method Detail

      • getDirectory

        String getDirectory()
        Get the value for Directory. (Original directory that contained the file for this FileEvent.) This value is mandatory, and therefore will not be null if this object has been retrieved from the database.
        Returns:
        the field
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getFinalPath

        String getFinalPath()
        Get the value for FinalPath. (Path of the file after the file was detected.) This value is mandatory, and therefore will not be null if this object has been retrieved from the database.
        Returns:
        the field
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getPattern

        String getPattern()
        Get the value for Pattern. (Pattern matched by the file for this FileEvent.) This value is mandatory, and therefore will not be null if this object has been retrieved from the database.
        Returns:
        the field
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getMoveDirectory

        String getMoveDirectory()
        Get the value for MoveDirectory. (Directory where the file for this FileEvent.)
        Returns:
        the field
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getOriginalPath

        String getOriginalPath()
        Get the value for OriginalPath. (Original path of file that caused this FileEvent.) This value is mandatory, and therefore will not be null if this object has been retrieved from the database.
        Returns:
        the field
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getPollInterval

        Long getPollInterval()
        Get the value for PollInterval. (Polling interval in use when the file for this FileEvent was detected.) This value is mandatory, and therefore will not be null if this object has been retrieved from the database.
        Returns:
        the field
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • isCheckLock

        boolean isCheckLock()
        Get the value for CheckLock. ( Whether a check was made for if the file for this FileEvent was in use when the event was raised. )
        Returns:
        the field
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setFinalPath

        void setFinalPath​(String newFinalPath)
        Set the value for FinalPath. (Path of the file after the file was detected.) This value is mandatory.
        Parameters:
        newFinalPath - the new value for FinalPath. If this is null, then the object cannot be persisted.
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setOriginalPath

        void setOriginalPath​(String newOriginalPath)
        Set the value for OriginalPath. (Original path of file that caused this FileEvent.) This value is mandatory.
        Parameters:
        newOriginalPath - the new value for OriginalPath. If this is null, then the object cannot be persisted.
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setProcessServer

        void setProcessServer​(ProcessServer newProcessServer)
        Set the value for ProcessServer. This value is mandatory.
        Parameters:
        newProcessServer - is the object to set ProcessServer to. Which process server generated this file event. If this is null, then the object cannot be persisted.