public class

PerInstanceResourceMonitor

extends Object
implements PerInstanceResourceMonitorMBean
java.lang.Object
   ↳ org.apache.helix.monitoring.mbeans.PerInstanceResourceMonitor

Summary

Nested Classes
class PerInstanceResourceMonitor.BeanName  
Public Constructors
PerInstanceResourceMonitor(String clusterName, String participantName, String resourceName)
Public Methods
String getInstanceName()
long getPartitionGauge()
Get the number of partitions of the resource in best possible ideal state for the instance
String getResourceName()
String getSensorName()
synchronized void update(Map<PartitionString> stateMap, Set<String> tags, StateModelDefinition stateModelDef)
Update per-instance resource bean
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.helix.monitoring.SensorNameProvider
From interface org.apache.helix.monitoring.mbeans.PerInstanceResourceMonitorMBean

Public Constructors

public PerInstanceResourceMonitor (String clusterName, String participantName, String resourceName)

Public Methods

public String getInstanceName ()

public long getPartitionGauge ()

Get the number of partitions of the resource in best possible ideal state for the instance

Returns
  • number of partitions

public String getResourceName ()

public String getSensorName ()

public synchronized void update (Map<PartitionString> stateMap, Set<String> tags, StateModelDefinition stateModelDef)

Update per-instance resource bean

Parameters
stateMap partition->state