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 |
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND
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.
|
public static final String CONF_PREFIX
public static final String CONF_LOGGING_INTERVAL
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()
Copyright © 2015 Apache Software Foundation. All Rights Reserved.