Service, Instrumentation@Private public class InstrumentationService extends BaseService implements Instrumentation
Instrumentation.Variable<T>| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CONF_TIMERS_SIZE |
|
static java.lang.String |
PREFIX |
| Constructor | Description |
|---|---|
InstrumentationService() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addCron(java.lang.String group,
java.lang.String name,
Instrumentation.Cron cron) |
|
void |
addSampler(java.lang.String group,
java.lang.String name,
int samplingSize,
Instrumentation.Variable<java.lang.Long> variable) |
|
void |
addVariable(java.lang.String group,
java.lang.String name,
Instrumentation.Variable<?> variable) |
|
org.apache.hadoop.lib.service.instrumentation.InstrumentationService.Cron |
createCron() |
|
java.lang.Class |
getInterface() |
Returns the interface implemented by this service.
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,?>> |
getSnapshot() |
|
void |
incr(java.lang.String group,
java.lang.String name,
long count) |
|
void |
init() |
Initializes the server.
|
void |
postInit() |
Post initializes the service.
|
destroy, getPrefix, getPrefixedName, getServer, getServiceConfig, getServiceDependencies, init, serverStatusChangepublic static final java.lang.String PREFIX
public static final java.lang.String CONF_TIMERS_SIZE
public void init()
throws ServiceException
BaseService
This method is called by BaseService.init(Server) after all service properties
(properties prefixed with
init in class BaseServiceServiceException - thrown if the service could not be initialized.public void postInit()
throws ServiceException
BaseServiceServer after all services of the server have been initialized.
This method does a NOP.
postInit in interface ServicepostInit in class BaseServiceServiceException - thrown if the service could not be
post-initialized.public java.lang.Class getInterface()
ServiceServer when the Server.get(Class) method is used to
retrieve a service.getInterface in interface Servicepublic org.apache.hadoop.lib.service.instrumentation.InstrumentationService.Cron createCron()
createCron in interface Instrumentationpublic void incr(java.lang.String group,
java.lang.String name,
long count)
incr in interface Instrumentationpublic void addCron(java.lang.String group,
java.lang.String name,
Instrumentation.Cron cron)
addCron in interface Instrumentationpublic void addVariable(java.lang.String group,
java.lang.String name,
Instrumentation.Variable<?> variable)
addVariable in interface Instrumentationpublic void addSampler(java.lang.String group,
java.lang.String name,
int samplingSize,
Instrumentation.Variable<java.lang.Long> variable)
addSampler in interface Instrumentationpublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,?>> getSnapshot()
getSnapshot in interface InstrumentationCopyright © 2008–2025 Apache Software Foundation. All rights reserved.