Interface IncidentHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteIncident​(IncidentContext context)
      Called in situations in which an incident handler may wish to delete existing incidents Example: when a scope is ended or a job is deleted.
      java.lang.String getIncidentHandlerType()
      Returns the incident type this handler activates for.
      Incident handleIncident​(IncidentContext context, java.lang.String message)
      Handle an incident that arose in the context of an execution.
      void resolveIncident​(IncidentContext context)
      Called in situations in which an incident handler may wish to resolve existing incidents The implementation receives this callback to enable it to resolve any open incidents that may exist.
    • Method Detail

      • getIncidentHandlerType

        java.lang.String getIncidentHandlerType()
        Returns the incident type this handler activates for.
      • handleIncident

        Incident handleIncident​(IncidentContext context,
                                java.lang.String message)
        Handle an incident that arose in the context of an execution.
      • resolveIncident

        void resolveIncident​(IncidentContext context)
        Called in situations in which an incident handler may wish to resolve existing incidents The implementation receives this callback to enable it to resolve any open incidents that may exist.
      • deleteIncident

        void deleteIncident​(IncidentContext context)
        Called in situations in which an incident handler may wish to delete existing incidents Example: when a scope is ended or a job is deleted. The implementation receives this callback to enable it to delete any open incidents that may exist.