Package alluxio.metrics
Class MetricsFilter
- java.lang.Object
-
- alluxio.metrics.MetricsFilter
-
public class MetricsFilter extends java.lang.Object
A filter that matches the instance-level metrics by the instance type and metric name.
-
-
Constructor Summary
Constructors Constructor Description MetricsFilter(MetricsSystem.InstanceType instanceType, java.lang.String name)
Constructs a newMetricsFilter
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
MetricsSystem.InstanceType
getInstanceType()
java.lang.String
getName()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
MetricsFilter
public MetricsFilter(MetricsSystem.InstanceType instanceType, java.lang.String name)
Constructs a newMetricsFilter
instance.- Parameters:
instanceType
- the instance type of the instance-level metricname
- the metric name
-
-
Method Detail
-
getInstanceType
public MetricsSystem.InstanceType getInstanceType()
- Returns:
- the instance type
-
getName
public java.lang.String getName()
- Returns:
- the metric name
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-