S
- the type of stateE
- the type of eventpublic class BootStateMachineMonitor<S,E> extends AbstractStateMachineMonitor<S,E>
StateMachineMonitor
which converts monitoring
events and bridges those into supported format handled by Spring Boot's
tracing and metrics frameworks.Constructor and Description |
---|
BootStateMachineMonitor(org.springframework.boot.actuate.metrics.CounterService counterService,
org.springframework.boot.actuate.metrics.GaugeService gaugeService,
org.springframework.boot.actuate.trace.TraceRepository traceRepository)
Instantiates a new boot state machine monitor.
|
Modifier and Type | Method and Description |
---|---|
void |
action(StateMachine<S,E> stateMachine,
Action<S,E> action,
long duration)
Notified duration of a particular action.
|
void |
transition(StateMachine<S,E> stateMachine,
Transition<S,E> transition,
long duration)
Notified duration of a particular transition.
|
public BootStateMachineMonitor(org.springframework.boot.actuate.metrics.CounterService counterService, org.springframework.boot.actuate.metrics.GaugeService gaugeService, org.springframework.boot.actuate.trace.TraceRepository traceRepository)
counterService
- the counter servicegaugeService
- the gauge servicetraceRepository
- the trace repositorypublic void transition(StateMachine<S,E> stateMachine, Transition<S,E> transition, long duration)
StateMachineMonitor
transition
in interface StateMachineMonitor<S,E>
transition
in class AbstractStateMachineMonitor<S,E>
stateMachine
- the state machinetransition
- the transitionduration
- the transition durationpublic void action(StateMachine<S,E> stateMachine, Action<S,E> action, long duration)
StateMachineMonitor
action
in interface StateMachineMonitor<S,E>
action
in class AbstractStateMachineMonitor<S,E>
stateMachine
- the state machineaction
- the actionduration
- the transition duration