Class IncidentImpl

java.lang.Object
org.opencastproject.job.api.IncidentImpl
All Implemented Interfaces:
Incident

public final class IncidentImpl extends Object implements Incident
  • Constructor Details

  • Method Details

    • getId

      public long getId()
      Description copied from interface: Incident
      Return the incident id.
      Specified by:
      getId in interface Incident
    • getJobId

      public long getJobId()
      Description copied from interface: Incident
      The job related to this incident.
      Specified by:
      getJobId in interface Incident
      Returns:
      the job id
    • getServiceType

      public String getServiceType()
      Description copied from interface: Incident
      The service type on which the incident was occurring.
      Specified by:
      getServiceType in interface Incident
      Returns:
      the service type
    • getProcessingHost

      public String getProcessingHost()
      Description copied from interface: Incident
      The processing host running the job where the incident was occurring.
      Specified by:
      getProcessingHost in interface Incident
      Returns:
      the processing host
    • getTimestamp

      public Date getTimestamp()
      Description copied from interface: Incident
      The date where the incident was happening.
      Specified by:
      getTimestamp in interface Incident
      Returns:
      the date
    • getSeverity

      public Incident.Severity getSeverity()
      Description copied from interface: Incident
      The severity of this incident.
      Specified by:
      getSeverity in interface Incident
      Returns:
      the severity
    • getCode

      public String getCode()
      Description copied from interface: Incident
      The unique code of this incident. Incident codes may be mapped to plain text, possibly localized. It is recommended to create codes after the schema service_type.number, e.g. org.opencastproject.service.1511
      Specified by:
      getCode in interface Incident
      Returns:
      the incident code
      See Also:
    • getDetails

      public List<Tuple<String,String>> getDetails()
      Description copied from interface: Incident
      List of additional technical information having a name and a text [(name, text)]. This may be an exception, an ffmpeg commandline, memory statistics, etc.
      Specified by:
      getDetails in interface Incident
      Returns:
      a list of technical background information describing the incident in depth [(detail_name, detail)]
    • getDescriptionParameters

      public Map<String,String> getDescriptionParameters()
      Description copied from interface: Incident
      Named parameters describing the incident in more detail. These parameters may be used to construct a description message.
      Specified by:
      getDescriptionParameters in interface Incident
      Returns:
      the message parameters; parameter_name -> parameter_value
    • hashCode

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

      public boolean equals(Object that)
      Overrides:
      equals in class Object