public class InstrumentationService extends Object implements Service
Instrumentation
instance configured to support samplers. This service depends
on the SchedulerService
.
The CONF_LOGGING_INTERVAL
configuration property indicates how often
snapshots of the instrumentation should be logged.
Modifier and Type | Field and Description |
---|---|
static String |
CONF_LOGGING_INTERVAL |
static String |
CONF_PREFIX |
protected static Instrumentation |
instrumentation |
DEFAULT_LOCK_TIMEOUT, lockTimeout
Constructor and Description |
---|
InstrumentationService() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the instrumentation service.
|
Instrumentation |
get()
Return the instrumentation instance used by the service.
|
Class<? extends Service> |
getInterface()
Return the public interface for instrumentation service.
|
void |
init(Services services)
Initialize the instrumentation service.
|
static boolean |
isEnabled()
Returns if the InstrumentationService is enabled or not.
|
public static final String CONF_PREFIX
public static final String CONF_LOGGING_INTERVAL
protected static Instrumentation instrumentation
public InstrumentationService()
public void init(Services services) throws ServiceException
init
in interface Service
services
- services instance.ServiceException
- thrown if the service could not initialize.public void destroy()
public Class<? extends Service> getInterface()
getInterface
in interface Service
InstrumentationService
.public Instrumentation get()
public static boolean isEnabled()
Copyright © 2018 Apache Software Foundation. All rights reserved.