Package com.zeroc.IceMX
Interface MetricsAdmin
- All Superinterfaces:
Object
The metrics administrative facet interface. This interface allows
remote administrative clients to access metrics of an application
that enabled the Ice administrative facility and configured some
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) Disable a metrics view.void
enableMetricsView
(String name, Current current) Enables a metrics view.getMapMetricsFailures
(String view, String map, Current current) Get the metrics failures associated with the given view and map.getMetricsFailures
(String view, String map, String id, Current current) Get the metrics failure associated for the given metrics.getMetricsView
(String view, Current current) Get the metrics objects for the given metrics view.getMetricsViewNames
(Current current) Get the names of enabled and disabled metrics.default String
Returns the Slice type ID of the most-derived interface supported by this object.default String[]
Returns the Slice type IDs of the interfaces supported by this object.static String
Returns the Slice type ID of the interface supported by this object.Methods inherited from interface com.zeroc.Ice.Object
ice_dispatch, ice_isA, ice_ping
-
Method Details
-
getMetricsViewNames
Get the names of enabled and disabled metrics.- Parameters:
current
- The Current object for the invocation.- Returns:
- An instance of MetricsAdmin.GetMetricsViewNamesResult.
-
enableMetricsView
Enables a metrics view.- Parameters:
name
- The metrics view name.current
- The Current object for the invocation.- Throws:
UnknownMetricsView
- Raised if the metrics view cannot be found.
-
disableMetricsView
Disable a metrics view.- Parameters:
name
- The metrics view name.current
- The Current object for the invocation.- Throws:
UnknownMetricsView
- Raised if the metrics view cannot be found.
-
getMetricsView
MetricsAdmin.GetMetricsViewResult getMetricsView(String view, Current current) throws UnknownMetricsView Get the metrics objects for the given metrics view. This returns a dictionnary of metric maps for each metrics class configured with the view. The timestamp allows the client to compute averages which are not dependent of the invocation latency for this operation.- Parameters:
view
- The name of the metrics view.current
- The Current object for the invocation.- Returns:
- An instance of MetricsAdmin.GetMetricsViewResult.
- Throws:
UnknownMetricsView
- Raised if the metrics view cannot be found.
-
getMapMetricsFailures
MetricsFailures[] getMapMetricsFailures(String view, String map, Current current) throws UnknownMetricsView Get 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 for the invocation.- Returns:
- The metrics failures associated with the map.
- Throws:
UnknownMetricsView
- Raised if the metrics view cannot be found.
-
getMetricsFailures
MetricsFailures getMetricsFailures(String view, String map, String id, Current current) throws UnknownMetricsView Get 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 for the invocation.- Returns:
- The metrics failures associated with the metrics.
- Throws:
UnknownMetricsView
- Raised if the metrics view cannot be found.
-
ice_ids
Description copied from interface:Object
Returns the Slice type IDs of the interfaces supported by this object. -
ice_id
Description copied from interface:Object
Returns the Slice type ID of the most-derived interface supported by this object. -
ice_staticId
Description copied from interface:Object
Returns the Slice type ID of the interface supported by this object.- Returns:
- The return value is always ::Ice::Object.
-