Package org.apache.storm.metricstore
Class FilterOptions
java.lang.Object
org.apache.storm.metricstore.FilterOptions
FilterOptions provides a method to select various filtering options for doing a scan of the metrics database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAggLevel(AggLevel level) Add an aggregation level to search for.Get the aggregation levels to search for.longReturns the end time if set, returns the current time otherwise.getPort()longvoidsetAggLevels(Set<AggLevel> levels) Set the aggregation levels to search for.voidsetComponentId(String component) voidsetEndTime(Long time) voidsetExecutorId(String id) voidvoidsetMetricName(String name) voidvoidsetStartTime(Long time) voidsetStreamId(String id) voidsetTopologyId(String topoId)
-
Constructor Details
-
FilterOptions
public FilterOptions()
-
-
Method Details
-
getTopologyId
-
setTopologyId
-
getComponentId
-
setComponentId
-
getStartTime
public long getStartTime() -
setStartTime
-
getEndTime
public long getEndTime()Returns the end time if set, returns the current time otherwise. -
setEndTime
-
getMetricName
-
setMetricName
-
getExecutorId
-
setExecutorId
-
getHostId
-
setHostId
-
getPort
-
setPort
-
getStreamId
-
setStreamId
-
addAggLevel
Add an aggregation level to search for. -
getAggLevels
Get the aggregation levels to search for. -
setAggLevels
Set the aggregation levels to search for.- Throws:
MetricException
-