public class StreamerMetricsHolder extends Object implements StreamerMetrics
| Constructor and Description |
|---|
StreamerMetricsHolder(StreamerStageMetricsHolder[] stageMetrics,
StreamerWindowMetricsHolder[] windowMetrics,
int execSvcCap) |
| Modifier and Type | Method and Description |
|---|---|
int |
currentActiveSessions()
Gets number of current active sessions.
|
int |
executorServiceCapacity()
Gets maximum number of threads in executor service.
|
int |
failuresCount()
Gets number of failures.
|
int |
maximumActiveSessions()
Gets maximum number of active sessions since last reset.
|
void |
onPipelineCompleted(long execTime,
int execNodes)
Pipeline completed callback.
|
void |
onQueryCompleted(long execTime,
int execNodes)
Query completed callback.
|
void |
onSessionFailed()
Session failed callback.
|
void |
onSessionFinished()
Session finished callback.
|
void |
onSessionStarted()
Session started callback.
|
void |
onStageExecutionFinished(int idx,
long execTime)
Stage execution finished callback.
|
void |
onStageExecutionStarted(int idx,
long waitTime)
Stage execution started callback.
|
void |
onStageFailure(int idx)
Stage failure callback.
|
void |
onStageScheduled()
Stage scheduled callback.
|
int |
pipelineAverageExecutionNodes()
Gets average number of unique nodes participated in pipeline execution.
|
long |
pipelineAverageExecutionTime()
Gets pipeline average execution time, i.e. time between execution start and time when last stage in pipeline
returned empty map.
|
int |
pipelineMaximumExecutionNodes()
Gets maximum number of unique nodes participated in pipeline execution.
|
long |
pipelineMaximumExecutionTime()
Gets pipeline maximum execution time, i.e. time between execution start and time when last stage in pipeline
returned empty map.
|
int |
pipelineMinimumExecutionNodes()
Gets minimum number of unique nodes participated in pipeline execution.
|
long |
pipelineMinimumExecutionTime()
Gets pipeline minimum execution time, i.e. time between execution start and time when last stage in pipeline
returned empty map.
|
int |
queryAverageExecutionNodes()
Gets average number of unique nodes participated in query execution.
|
long |
queryAverageExecutionTime()
Gets query average execution time.
|
int |
queryMaximumExecutionNodes()
Gets maximum number of unique nodes participated in query execution.
|
long |
queryMaximumExecutionTime()
Gets query maximum execution time.
|
int |
queryMinimumExecutionNodes()
Gets minimum number of unique nodes participated in query execution.
|
long |
queryMinimumExecutionTime()
Gets query minimum execution time.
|
void |
sampleCurrentStages()
Samples current sessions.
|
int |
stageActiveExecutionCount()
Gets number of stages currently being executed in streamer pool.
|
Collection<StreamerStageMetrics> |
stageMetrics()
Gets metrics for all stages.
|
StreamerStageMetrics |
stageMetrics(String stageName)
Gets current stage metrics, if stage with given name is not configured
then
IllegalArgumentException will be thrown. |
long |
stageTotalExecutionCount()
Gets total number of stages executed since last reset.
|
int |
stageWaitingExecutionCount()
Gets number of event batches currently waiting to be executed.
|
Collection<StreamerWindowMetrics> |
windowMetrics()
Gets metrics for all windows.
|
StreamerWindowMetrics |
windowMetrics(String winName)
Gets current window metrics, if window with given name is not configured
then
IllegalArgumentException will be thrown. |
public StreamerMetricsHolder(StreamerStageMetricsHolder[] stageMetrics, StreamerWindowMetricsHolder[] windowMetrics, int execSvcCap)
stageMetrics - Array of stage metrics holders.windowMetrics - Array of window metrics holders.execSvcCap - Executor service capacity.public int stageActiveExecutionCount()
stageActiveExecutionCount in interface StreamerMetricspublic int stageWaitingExecutionCount()
stageWaitingExecutionCount in interface StreamerMetricspublic long stageTotalExecutionCount()
stageTotalExecutionCount in interface StreamerMetricspublic long pipelineMaximumExecutionTime()
pipelineMaximumExecutionTime in interface StreamerMetricspublic long pipelineMinimumExecutionTime()
pipelineMinimumExecutionTime in interface StreamerMetricspublic long pipelineAverageExecutionTime()
pipelineAverageExecutionTime in interface StreamerMetricspublic int pipelineMaximumExecutionNodes()
pipelineMaximumExecutionNodes in interface StreamerMetricspublic int pipelineMinimumExecutionNodes()
pipelineMinimumExecutionNodes in interface StreamerMetricspublic int pipelineAverageExecutionNodes()
pipelineAverageExecutionNodes in interface StreamerMetricspublic long queryMaximumExecutionTime()
queryMaximumExecutionTime in interface StreamerMetricspublic long queryMinimumExecutionTime()
queryMinimumExecutionTime in interface StreamerMetricspublic long queryAverageExecutionTime()
queryAverageExecutionTime in interface StreamerMetricspublic int queryMaximumExecutionNodes()
queryMaximumExecutionNodes in interface StreamerMetricspublic int queryMinimumExecutionNodes()
queryMinimumExecutionNodes in interface StreamerMetricspublic int queryAverageExecutionNodes()
queryAverageExecutionNodes in interface StreamerMetricspublic int currentActiveSessions()
atLeastOnce configuration property is set to true, this metric will be collected
only in this case. When atLeastOnce is set to false, this metric will always be zero.currentActiveSessions in interface StreamerMetricspublic int maximumActiveSessions()
atLeastOnce configuration property is set to true, this metric will be collected
only in this case. When atLeastOnce is set to false, this metric will always be zero.maximumActiveSessions in interface StreamerMetricspublic int failuresCount()
atLeastOnce flag is set to steamer configuration, then only root node
failures will be counted. Otherwise each node will count failures independently.failuresCount in interface StreamerMetricspublic int executorServiceCapacity()
executorServiceCapacity in interface StreamerMetricspublic StreamerStageMetrics stageMetrics(String stageName)
IllegalArgumentException will be thrown.stageMetrics in interface StreamerMetricsstageName - Stage name.public Collection<StreamerStageMetrics> stageMetrics()
stageMetrics in interface StreamerMetricspublic StreamerWindowMetrics windowMetrics(String winName)
IllegalArgumentException will be thrown.windowMetrics in interface StreamerMetricswinName - Window name.public Collection<StreamerWindowMetrics> windowMetrics()
windowMetrics in interface StreamerMetricspublic void onStageScheduled()
public void onStageExecutionStarted(int idx,
long waitTime)
idx - Stage index.waitTime - Stage wait time.public void onStageExecutionFinished(int idx,
long execTime)
idx - Stage index.execTime - Stage execution time.public void onPipelineCompleted(long execTime,
int execNodes)
execTime - Pipeline execution time.execNodes - Pipeline execution nodes.public void onQueryCompleted(long execTime,
int execNodes)
execTime - Query execution time.execNodes - Query execution nodes.public void onSessionStarted()
public void onSessionFinished()
public void onSessionFailed()
public void onStageFailure(int idx)
idx - Stage index.public void sampleCurrentStages()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015