Top Description Methods
org.osgi.service.clusterinfo

public Interface NodeStatus

Known Direct Subinterfaces
org.osgi.service.clusterinfo.FrameworkNodeStatus
Imports
java.util.Map

The NodeStatus service represents a node in the cluster.

A node could represent an entity available in the network that is not necessarily running an OSGi framework, such as a database or a load balancer.

Method Summary

Modifier and TypeMethod and Description
public Map<String, Object>

Returns:

Map with the current node metrics
getMetrics
(String...
a set of metric names that have to be obtained from the node. Of no names are specified all available metrics will be obtained. If a metric is requested that is not available by the node this metric is ignored and not present in the returned map.
names
)

Get the current metrics or other dynamic data from the node.

Method Detail

getMetricsback to summary
public Map<String, Object> getMetrics(String... names)

Get the current metrics or other dynamic data from the node. Nodes may support custom metrics and as such the caller can request those metrics by name. The caller can specify the metric names to avoid having to compute and send all metrics over, if the caller is only interested in a subset of the available metrics.

Parameters
names:String[]

a set of metric names that have to be obtained from the node. Of no names are specified all available metrics will be obtained. If a metric is requested that is not available by the node this metric is ignored and not present in the returned map.

Returns:Map<String, Object>

Map with the current node metrics