- All Superinterfaces:
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.
Remarks:
The Slice compiler generated this skeleton interface from Slice interface ::IceMX::MetricsAdmin.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classHolds the result of operation getMetricsViewNames.static classHolds the result of operation getMetricsView.Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult -
Method Summary
Modifier and TypeMethodDescriptionvoiddisableMetricsView(String name, Current current) Disables a metrics view.default CompletionStage<OutgoingResponse>dispatch(IncomingRequest request) Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.voidenableMetricsView(String name, Current current) Enables a metrics view.getMapMetricsFailures(String view, String map, Current current) Gets the metrics failures associated with the givenviewandmap.getMetricsFailures(String view, String map, String id, Current current) Gets the metrics failure associated for the given metrics.getMetricsView(String view, Current current) Gets the metrics objects for the given metrics view.getMetricsViewNames(Current current) Gets the names of enabled and disabled metrics.static StringGets the type ID of the associated Slice interface.
-
Method Details
-
getMetricsViewNames
Gets the names of enabled and disabled metrics.- Parameters:
current- the Current object of the incoming request- Returns:
- an instance of MetricsAdmin.GetMetricsViewNamesResult
-
enableMetricsView
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
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 givenviewandmap.- 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
Gets the type ID of the associated Slice interface.- Returns:
- the string "::IceMX::MetricsAdmin"
-
dispatch
Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.- Specified by:
dispatchin interfaceObject- Parameters:
request- the incoming request- Returns:
- the outgoing response
- Throws:
UserException- if aUserExceptionis thrown, Ice will marshal it as the response payload.
-