Class NotifiableTaskMetadata

java.lang.Object
org.sejda.model.task.NotifiableTaskMetadata
All Implemented Interfaces:
Serializable

public class NotifiableTaskMetadata extends Object implements Serializable
An set of metadata related to the task the event is notifying about.
Author:
Andrea Vacondio
See Also:
  • Field Details

  • Constructor Details

    • NotifiableTaskMetadata

      public NotifiableTaskMetadata(Task<?> task)
  • Method Details

    • getTaskIdentifier

      public UUID getTaskIdentifier()
      Returns:
      the identifier of the task the event is notifying about.
    • getQualifiedName

      public String getQualifiedName()
      Returns:
      the qualified name of the task the event is notifying about.
    • addTaskOutput

      public void addTaskOutput(File output)
    • addSkippedOutput

      public void addSkippedOutput(File skipped)
    • setCurrentSource

      public void setCurrentSource(TaskSource<?> source)
    • clearCurrentSource

      public void clearCurrentSource()
    • getCurrentSource

      public String getCurrentSource()
    • taskOutput

      public List<File> taskOutput()
      Returns:
      the list of files generated by the task. This is empty if the task is set to write to an output stream
    • skippedOutput

      public List<File> skippedOutput()
      Returns:
      the list of output files that where skipped because already existing (depending on the ExistingOutputPolicy)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object