Package step.plugins.measurements
Class MeasurementPlugin
- java.lang.Object
-
- step.core.plugins.AbstractPlugin
-
- step.engine.plugins.AbstractExecutionEnginePlugin
-
- step.plugins.measurements.MeasurementPlugin
-
- All Implemented Interfaces:
ExecutionCallbacks
,step.core.plugins.OptionalPlugin
,ExecutionEnginePlugin
public class MeasurementPlugin extends AbstractExecutionEnginePlugin
-
-
Field Summary
Fields Modifier and Type Field Description static String
AGENT_URL
static String
ATTRIBUTE_EXECUTION_ID
static String
BEGIN
static String
NAME
static String
ORIGIN
static String
PLAN_ID
static String
RN_ID
static String
RN_STATUS
static String
SCHEDULER_TASK_ID
static String
STATUS
static String
TASK_ID
static String
TYPE
static String
TYPE_CUSTOM
static String
VALUE
-
Constructor Summary
Constructors Constructor Description MeasurementPlugin(GaugeCollectorRegistry gaugeCollectorRegistry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterExecutionEnd(ExecutionContext context)
void
afterReportNodeExecution(ExecutionContext executionContext, ReportNode node)
void
beforeReportNodeExecution(ExecutionContext context, ReportNode node)
void
initializeExecutionContext(ExecutionEngineContext executionEngineContext, ExecutionContext executionContext)
protected void
processMeasurements(List<Measurement> measurements, ExecutionContext executionContext)
static void
registerMeasurementHandlers(MeasurementHandler handler)
-
Methods inherited from class step.engine.plugins.AbstractExecutionEnginePlugin
afterFunctionExecution, afterReportNodeExecution, afterReportNodeSkeletonCreation, afterReportNodeSkeletonCreation, associateThread, associateThread, beforeExecutionEnd, beforeFunctionExecution, beforePlanImport, beforeReportNodeExecution, executionStart, initializeExecutionEngineContext, rollbackReportNode, rollbackReportNode, unassociateThread
-
-
-
-
Field Detail
-
ATTRIBUTE_EXECUTION_ID
public static final String ATTRIBUTE_EXECUTION_ID
- See Also:
- Constant Field Values
-
TYPE_CUSTOM
public static final String TYPE_CUSTOM
- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
BEGIN
public static final String BEGIN
- See Also:
- Constant Field Values
-
VALUE
public static final String VALUE
- See Also:
- Constant Field Values
-
RN_ID
public static final String RN_ID
- See Also:
- Constant Field Values
-
STATUS
public static final String STATUS
- See Also:
- Constant Field Values
-
RN_STATUS
public static final String RN_STATUS
- See Also:
- Constant Field Values
-
AGENT_URL
public static final String AGENT_URL
- See Also:
- Constant Field Values
-
ORIGIN
public static final String ORIGIN
- See Also:
- Constant Field Values
-
TASK_ID
public static final String TASK_ID
- See Also:
- Constant Field Values
-
PLAN_ID
public static final String PLAN_ID
- See Also:
- Constant Field Values
-
SCHEDULER_TASK_ID
public static final String SCHEDULER_TASK_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MeasurementPlugin
public MeasurementPlugin(GaugeCollectorRegistry gaugeCollectorRegistry)
-
-
Method Detail
-
registerMeasurementHandlers
public static void registerMeasurementHandlers(MeasurementHandler handler)
-
initializeExecutionContext
public void initializeExecutionContext(ExecutionEngineContext executionEngineContext, ExecutionContext executionContext)
- Specified by:
initializeExecutionContext
in interfaceExecutionEnginePlugin
- Overrides:
initializeExecutionContext
in classAbstractExecutionEnginePlugin
-
afterExecutionEnd
public void afterExecutionEnd(ExecutionContext context)
- Specified by:
afterExecutionEnd
in interfaceExecutionCallbacks
- Overrides:
afterExecutionEnd
in classAbstractExecutionEnginePlugin
-
beforeReportNodeExecution
public void beforeReportNodeExecution(ExecutionContext context, ReportNode node)
- Specified by:
beforeReportNodeExecution
in interfaceExecutionCallbacks
- Overrides:
beforeReportNodeExecution
in classAbstractExecutionEnginePlugin
-
afterReportNodeExecution
public void afterReportNodeExecution(ExecutionContext executionContext, ReportNode node)
- Specified by:
afterReportNodeExecution
in interfaceExecutionCallbacks
- Overrides:
afterReportNodeExecution
in classAbstractExecutionEnginePlugin
-
processMeasurements
protected void processMeasurements(List<Measurement> measurements, ExecutionContext executionContext)
-
-