public class TracerAPIImpl extends AbstractMoskitoAPIImpl implements TracerAPI
| Constructor and Description |
|---|
TracerAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
createTracer(java.lang.String producerId)
Creates a new tracer for given producer id.
|
void |
disableTracer(java.lang.String producerId)
Temporarly disables a tracer.
|
void |
enableTracer(java.lang.String producerId)
Reenables a previously disabled tracer or creates a new tracer, if there were no tracer for this producer id.
|
TracerAO |
getTracer(java.lang.String producerId)
Returns a tracer by a producer id of the associated producer if such a tracer exists.
|
java.util.List<TracerAO> |
getTracers()
Returns registered tracers.
|
java.util.List<TraceAO> |
getTraces(java.lang.String producerId,
TimeUnit timeUnit)
Returns traces that have been recorded by the tracer associated with the producer id.
|
void |
init() |
void |
removeTracer(java.lang.String producerId)
Removes a tracer by producer id.
|
getConfigurationaddValidationError, addValidationError, checkValidationAndThrowException, deInit, getApiConfig, getAttributeFromSession, getCallContext, getCurrentLocale, getCurrentUserId, getDefaultExpirePeriodForAttribute, getExpirePeriodForAttribute, getLoggedInUserId, getPrivateAttributeName, getSession, removeAttributeFromSession, setAttributeInSession, setAttributeInSession, setAttributeInSession, setAttributeInSessionpublic void init()
throws net.anotheria.anoplass.api.APIInitException
init in interface net.anotheria.anoplass.api.APIinit in class net.anotheria.anoplass.api.AbstractAPIImplnet.anotheria.anoplass.api.APIInitExceptionpublic void createTracer(java.lang.String producerId)
throws net.anotheria.anoplass.api.APIException
TracerAPIcreateTracer in interface TracerAPIproducerId - id of the producer the tracer should be associated with.net.anotheria.anoplass.api.APIExceptionpublic java.util.List<TracerAO> getTracers() throws net.anotheria.anoplass.api.APIException
TracerAPIgetTracers in interface TracerAPInet.anotheria.anoplass.api.APIExceptionpublic TracerAO getTracer(java.lang.String producerId) throws net.anotheria.anoplass.api.APIException
TracerAPIpublic java.util.List<TraceAO> getTraces(java.lang.String producerId, TimeUnit timeUnit) throws net.anotheria.anoplass.api.APIException
TracerAPIpublic void removeTracer(java.lang.String producerId)
throws net.anotheria.anoplass.api.APIException
TracerAPIremoveTracer in interface TracerAPIproducerId - id of the producer the tracer is associated with.net.anotheria.anoplass.api.APIExceptionpublic void disableTracer(java.lang.String producerId)
throws net.anotheria.anoplass.api.APIException
TracerAPIdisableTracer in interface TracerAPIproducerId - id of the producer the tracer is associated with.net.anotheria.anoplass.api.APIExceptionpublic void enableTracer(java.lang.String producerId)
throws net.anotheria.anoplass.api.APIException
TracerAPIenableTracer in interface TracerAPIproducerId - id of the producer the tracer is associated with.net.anotheria.anoplass.api.APIExceptionCopyright © 2010-2020 anotheria.net. All Rights Reserved.