- 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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Holds the result of operation getMetricsViewNames.static class
Holds the result of operation getMetricsView.Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disableMetricsView
(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.void
enableMetricsView
(String name, Current current) Enables a metrics view.getMapMetricsFailures
(String view, String map, Current current) Gets the metrics failures associated with the givenview
andmap
.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 String
Gets 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 givenview
andmap
.- 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:
dispatch
in interfaceObject
- Parameters:
request
- the incoming request- Returns:
- the outgoing response
- Throws:
UserException
- if aUserException
is thrown, Ice will marshal it as the response payload.
-