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 TypeMethodDescriptionvoid
addAggLevel
(AggLevel level) Add an aggregation level to search for.Get the aggregation levels to search for.long
Returns the end time if set, returns the current time otherwise.getPort()
long
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
void
setMetricName
(String name) void
void
setStartTime
(Long time) void
setStreamId
(String id) void
setTopologyId
(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
-