@DistributeMe(agentsSupport=false,
moskitoSupport=false)
@SupportService
@FailBy(strategyClass=org.distributeme.core.failing.RetryCallOnce.class)
public interface TracerAPI
extends net.anotheria.anoplass.api.API, net.anotheria.anoprise.metafactory.Service
| 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 |
removeTracer(java.lang.String producerId)
Removes a tracer by producer id.
|
java.util.List<TracerAO> getTracers() throws net.anotheria.anoplass.api.APIException
net.anotheria.anoplass.api.APIExceptionTracerAO getTracer(java.lang.String producerId) throws net.anotheria.anoplass.api.APIException
producerId - net.anotheria.anoplass.api.APIExceptionjava.util.List<TraceAO> getTraces(java.lang.String producerId, TimeUnit timeUnit) throws net.anotheria.anoplass.api.APIException
producerId - id of the producer.timeUnit - timeunit for the calculation of duration. The duration is measured in nanoseconds and should be recalculated.net.anotheria.anoplass.api.APIExceptionvoid createTracer(java.lang.String producerId)
throws net.anotheria.anoplass.api.APIException
producerId - id of the producer the tracer should be associated with.net.anotheria.anoplass.api.APIExceptionvoid removeTracer(java.lang.String producerId)
throws net.anotheria.anoplass.api.APIException
producerId - id of the producer the tracer is associated with.net.anotheria.anoplass.api.APIExceptionvoid disableTracer(java.lang.String producerId)
throws net.anotheria.anoplass.api.APIException
producerId - id of the producer the tracer is associated with.net.anotheria.anoplass.api.APIExceptionvoid enableTracer(java.lang.String producerId)
throws net.anotheria.anoplass.api.APIException
producerId - id of the producer the tracer is associated with.net.anotheria.anoplass.api.APIExceptionCopyright © 2010-2020 anotheria.net. All Rights Reserved.