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.
|
protected void |
initLogging(Services services,
Instrumentation instr,
int interval) |
static boolean |
isEnabled()
Returns if the InstrumentationService is enabled or not.
|
protected String |
mapToString(Map<String,String> map) |
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 Serviceservices - services instance.ServiceException - thrown if the service could not initialize.protected void initLogging(Services services, Instrumentation instr, int interval) throws ServiceException
ServiceExceptionprotected String mapToString(Map<String,String> map)
public void destroy()
public Class<? extends Service> getInterface()
getInterface in interface ServiceInstrumentationService.public Instrumentation get()
public static boolean isEnabled()
Copyright © 2015 Apache Software Foundation. All Rights Reserved.