Interface MetricsAdmin

All Superinterfaces:
Object

public interface MetricsAdmin extends Object
The metrics administrative facet interface. This interface allows remote administrative clients to access the metrics of an application that enabled the Ice administrative facility and configured one or more metrics views.
  • Method Details

    • getMetricsViewNames

      MetricsAdmin.GetMetricsViewNamesResult getMetricsViewNames(Current current)
      Gets the names of enabled and disabled metrics.
      Parameters:
      current - The Current object of the incoming request.
      Returns:
      An instance of MetricsAdmin.GetMetricsViewNamesResult.
    • enableMetricsView

      void enableMetricsView(String name, Current current) throws UnknownMetricsView
      Enables a metrics view.
      Parameters:
      name - The metrics view name.
      current - The Current object of the incoming request.
      Throws:
      UnknownMetricsView - Thrown when the metrics view cannot be found.
    • disableMetricsView

      void disableMetricsView(String name, Current current) throws UnknownMetricsView
      Disables a metrics view.
      Parameters:
      name - The metrics view name.
      current - The Current object of the incoming request.
      Throws:
      UnknownMetricsView - Thrown when the metrics view cannot be found.
    • getMetricsView

      MetricsAdmin.GetMetricsViewResult getMetricsView(String view, Current current) throws UnknownMetricsView
      Gets the metrics objects for the given metrics view.
      Parameters:
      view - The name of the metrics view.
      current - The Current object of the incoming request.
      Returns:
      An instance of MetricsAdmin.GetMetricsViewResult.
      Throws:
      UnknownMetricsView - Thrown when the metrics view cannot be found.
    • getMapMetricsFailures

      MetricsFailures[] getMapMetricsFailures(String view, String map, Current current) throws UnknownMetricsView
      Gets the metrics failures associated with the given view and map.
      Parameters:
      view - The name of the metrics view.
      map - The name of the metrics map.
      current - The Current object of the incoming request.
      Returns:
      The metrics failures associated with the map.
      Throws:
      UnknownMetricsView - Thrown when the metrics view cannot be found.
    • getMetricsFailures

      MetricsFailures getMetricsFailures(String view, String map, String id, Current current) throws UnknownMetricsView
      Gets the metrics failure associated for the given metrics.
      Parameters:
      view - The name of the metrics view.
      map - The name of the metrics map.
      id - The ID of the metrics.
      current - The Current object of the incoming request.
      Returns:
      The metrics failures associated with the metrics.
      Throws:
      UnknownMetricsView - Thrown when the metrics view cannot be found.
    • ice_staticId

      static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::IceMX::MetricsAdmin"
    • dispatch

      default CompletionStage<OutgoingResponse> dispatch(IncomingRequest request) throws UserException
      Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.
      Specified by:
      dispatch in interface Object
      Parameters:
      request - the incoming request
      Returns:
      the outgoing response
      Throws:
      UserException - if a UserException is thrown, Ice will marshal it as the response payload.