Class OpsViewManager

java.lang.Object
ecmwf.common.opsview.OpsViewManager

public final class OpsViewManager extends Object
The Class OpsViewManager.
  • Field Details

    • DISSEMINATION_FILTER_NAME

      public static final String DISSEMINATION_FILTER_NAME
      The Constant DISSEMINATION_FILTER_NAME.
    • ACQUISITION_FILTER_NAME

      public static final String ACQUISITION_FILTER_NAME
      The Constant ACQUISITION_FILTER_NAME.
    • OTHER_FILTER_NAME

      public static final String OTHER_FILTER_NAME
      The Constant OTHER_FILTER_NAME.
    • REST_CLIENT

      public static final HttpClient REST_CLIENT
      The Constant REST_CLIENT.
    • filtersList

      protected static final String[] filtersList
      The Constant filtersList.
  • Method Details

    • isActivated

      public static boolean isActivated()
      Checks if is activated.
      Returns:
      true, if is activated
    • detail

      public static void detail(String hostname, String service, int status, String message) throws OpsViewManagerException, IOException
      Detail.
      Parameters:
      hostname - the host name
      service - the service
      status - the status
      message - the message
      Throws:
      OpsViewManagerException - the ops view manager exception
      IOException - Signals that an I/O exception has occurred.
    • sync

      public static void sync(Destination[] destinations) throws OpsViewManagerException, IOException
      Sync.
      Parameters:
      destinations - the destinations
      Throws:
      OpsViewManagerException - the ops view manager exception
      IOException - Signals that an I/O exception has occurred.
    • clearNotes

      public static void clearNotes(String destination, int type) throws OpsViewManagerException, IOException
      Clear notes.
      Parameters:
      destination - the destination
      type - the destination's type (ecmwf.ecpds.master.transfer.DestinationOption)
      Throws:
      OpsViewManagerException - the ops view manager exception
      IOException - Signals that an I/O exception has occurred.
    • addNotes

      public static void addNotes(String destination, int type, String metadata) throws OpsViewManagerException, IOException
      Adds the notes.
      Parameters:
      destination - the destination
      type - the destination's type (ecmwf.ecpds.master.transfer.DestinationOption), used to pick the Acquisition/Dissemination/Other filter Opsview host this Destination's "service" lives under (see getFilter(int))
      metadata - the metadata
      Throws:
      OpsViewManagerException - the ops view manager exception
      IOException - Signals that an I/O exception has occurred.