Package io.engineblock.activityapi.core
Class CoreActivityInstrumentation
- java.lang.Object
-
- io.engineblock.activityapi.core.CoreActivityInstrumentation
-
- All Implemented Interfaces:
ActivityInstrumentation
public class CoreActivityInstrumentation extends java.lang.Object implements ActivityInstrumentation
-
-
Constructor Summary
Constructors Constructor Description CoreActivityInstrumentation(Activity activity)
-
Method Summary
Modifier and Type Method Description com.codahale.metrics.TimergetCyclesResponseTimerOrNull()The cycles response timer measures the total response time from the scheduled time an operation should start to when it is completed.com.codahale.metrics.TimergetOrCreateCyclesServiceTimer()The cycles service timer measures how long it takes to complete a cycle of work.com.codahale.metrics.TimergetOrCreateInputTimer()The input timer measures how long it takes to get the cycle value to be used for an operation.com.codahale.metrics.CountergetOrCreatePendingOpCounter()The pending ops counter keeps track of how many ops are submitted or in-flight, but which haven't been completed yet.com.codahale.metrics.TimergetOrCreatePhasesServiceTimer()The phases service timer measures how long it takes to complete a phase of work.com.codahale.metrics.TimergetOrCreateStridesServiceTimer()The strides service timer measures how long it takes to complete a stride of work.com.codahale.metrics.TimergetPhasesResponseTimerOrNull()The phases response timer measures the total response time from the scheduled time a phase should start to when it is completed.com.codahale.metrics.TimergetStridesResponseTimerOrNull()The strides response timer measures the total response time from the scheduled time a stride should start to when it completed.
-
-
-
Constructor Detail
-
CoreActivityInstrumentation
public CoreActivityInstrumentation(Activity activity)
-
-
Method Detail
-
getOrCreateInputTimer
public com.codahale.metrics.Timer getOrCreateInputTimer()
Description copied from interface:ActivityInstrumentationThe input timer measures how long it takes to get the cycle value to be used for an operation.- Specified by:
getOrCreateInputTimerin interfaceActivityInstrumentation- Returns:
- A new or existing Timer
-
getOrCreateStridesServiceTimer
public com.codahale.metrics.Timer getOrCreateStridesServiceTimer()
Description copied from interface:ActivityInstrumentationThe strides service timer measures how long it takes to complete a stride of work.- Specified by:
getOrCreateStridesServiceTimerin interfaceActivityInstrumentation- Returns:
- A new or existing Timer
-
getStridesResponseTimerOrNull
public com.codahale.metrics.Timer getStridesResponseTimerOrNull()
Description copied from interface:ActivityInstrumentationThe strides response timer measures the total response time from the scheduled time a stride should start to when it completed. Stride scheduling is only defined when it is implied by a stride rate limiter, so this method should return null if there is no strides rate limiter.- Specified by:
getStridesResponseTimerOrNullin interfaceActivityInstrumentation- Returns:
- A new or existing Timer if appropriate, else null
-
getOrCreateCyclesServiceTimer
public com.codahale.metrics.Timer getOrCreateCyclesServiceTimer()
Description copied from interface:ActivityInstrumentationThe cycles service timer measures how long it takes to complete a cycle of work.- Specified by:
getOrCreateCyclesServiceTimerin interfaceActivityInstrumentation- Returns:
- A new or existing Timer
-
getCyclesResponseTimerOrNull
public com.codahale.metrics.Timer getCyclesResponseTimerOrNull()
Description copied from interface:ActivityInstrumentationThe cycles response timer measures the total response time from the scheduled time an operation should start to when it is completed. Cycle scheduling is only defined when it is implied by a cycle rate limiter, so this method should return null if there is no cycles rate limiter.- Specified by:
getCyclesResponseTimerOrNullin interfaceActivityInstrumentation- Returns:
- A new or existing Timer if appropriate, else null
-
getOrCreatePhasesServiceTimer
public com.codahale.metrics.Timer getOrCreatePhasesServiceTimer()
Description copied from interface:ActivityInstrumentationThe phases service timer measures how long it takes to complete a phase of work.- Specified by:
getOrCreatePhasesServiceTimerin interfaceActivityInstrumentation- Returns:
- A new or existing Timer
-
getPhasesResponseTimerOrNull
public com.codahale.metrics.Timer getPhasesResponseTimerOrNull()
Description copied from interface:ActivityInstrumentationThe phases response timer measures the total response time from the scheduled time a phase should start to when it is completed. Phase scheduling is only defined when it is implied by a phase rate limiter, so this method should return null if there is no phases rate limiter.- Specified by:
getPhasesResponseTimerOrNullin interfaceActivityInstrumentation- Returns:
- A new or existing Timer if appropriate, else null
-
getOrCreatePendingOpCounter
public com.codahale.metrics.Counter getOrCreatePendingOpCounter()
Description copied from interface:ActivityInstrumentationThe pending ops counter keeps track of how many ops are submitted or in-flight, but which haven't been completed yet.- Specified by:
getOrCreatePendingOpCounterin interfaceActivityInstrumentation- Returns:
- A new or existing Counter
-
-