|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.service.InstrumentationService
public class InstrumentationService
This service provides an Instrumentation instance configured to support samplers.
SchedulerService. The CONF_LOGGING_INTERVAL configuration property indicates how often
snapshots of the instrumentation should be logged.
| Field Summary | |
|---|---|
static String |
CONF_LOGGING_INTERVAL
|
static String |
CONF_PREFIX
|
protected static Instrumentation |
instrumentation
|
| Fields inherited from interface org.apache.oozie.service.Service |
|---|
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND |
| Constructor Summary | |
|---|---|
InstrumentationService()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONF_PREFIX
public static final String CONF_LOGGING_INTERVAL
protected static Instrumentation instrumentation
| Constructor Detail |
|---|
public InstrumentationService()
| Method Detail |
|---|
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()
destroy in interface Servicepublic Class<? extends Service> getInterface()
getInterface in interface ServiceInstrumentationService.public Instrumentation get()
public static boolean isEnabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||