public class FilterOptions extends Object
FilterOptions provides a method to select various filtering options for doing a scan of the metrics database.
Constructor and Description |
---|
FilterOptions() |
Modifier and Type | Method and Description |
---|---|
void |
addAggLevel(AggLevel level)
Add an aggregation level to search for.
|
Set<AggLevel> |
getAggLevels()
Get the aggregation levels to search for.
|
String |
getComponentId() |
long |
getEndTime()
Returns the end time if set, returns the current time otherwise.
|
String |
getExecutorId() |
String |
getHostId() |
String |
getMetricName() |
Integer |
getPort() |
long |
getStartTime() |
String |
getStreamId() |
String |
getTopologyId() |
void |
setAggLevels(Set<AggLevel> levels)
Set the aggregation levels to search for.
|
void |
setComponentId(String component) |
void |
setEndTime(Long time) |
void |
setExecutorId(String id) |
void |
setHostId(String id) |
void |
setMetricName(String name) |
void |
setPort(Integer p) |
void |
setStartTime(Long time) |
void |
setStreamId(String id) |
void |
setTopologyId(String topoId) |
public String getTopologyId()
public void setTopologyId(String topoId)
public String getComponentId()
public void setComponentId(String component)
public long getStartTime()
public void setStartTime(Long time)
public long getEndTime()
Returns the end time if set, returns the current time otherwise.
public void setEndTime(Long time)
public String getMetricName()
public void setMetricName(String name)
public String getExecutorId()
public void setExecutorId(String id)
public String getHostId()
public void setHostId(String id)
public Integer getPort()
public void setPort(Integer p)
public String getStreamId()
public void setStreamId(String id)
public void addAggLevel(AggLevel level)
Add an aggregation level to search for.
public void setAggLevels(Set<AggLevel> levels) throws MetricException
Set the aggregation levels to search for.
MetricException
Copyright © 2019 The Apache Software Foundation. All rights reserved.