@DistributeMe(agentsSupport=false,
moskitoSupport=false)
@SupportService
@FailBy(strategyClass=org.distributeme.core.failing.RetryCallOnce.class)
public interface ProducerAPI
extends net.anotheria.anoplass.api.API, net.anotheria.anoprise.metafactory.Service
| Modifier and Type | Method and Description |
|---|---|
void |
disableLogging(java.lang.String producerId)
Disables logging for a particular producer if the producer supports logging.
|
void |
enableLogging(java.lang.String producerId)
Enables logging for a particular producer if the producer supports it.
|
java.util.List<ProducerAO> |
getAllProducers(java.lang.String intervalName,
TimeUnit timeUnit)
Returns all available producers with stats by intervalname and timeunit.
|
java.util.List<ProducerAO> |
getAllProducers(java.lang.String intervalName,
TimeUnit timeUnit,
boolean createAllStats) |
java.util.List<ProducerAO> |
getAllProducersByCategory(java.lang.String currentCategory,
java.lang.String intervalName,
TimeUnit timeUnit)
Returns all producers in given category.
|
java.util.List<ProducerAO> |
getAllProducersByCategory(java.lang.String currentCategory,
java.lang.String intervalName,
TimeUnit timeUnit,
boolean createAllStats) |
java.util.List<ProducerAO> |
getAllProducersBySubsystem(java.lang.String currentSubsystem,
java.lang.String intervalName,
TimeUnit timeUnit)
Returns all producers in a given subsystem.
|
java.util.List<ProducerAO> |
getAllProducersBySubsystem(java.lang.String currentSubsystem,
java.lang.String intervalName,
TimeUnit timeUnit,
boolean createAllStats) |
java.util.List<UnitCountAO> |
getCategories()
Returns all available categories.
|
java.util.List<ValueResponseAO> |
getMultipleValues(java.util.List<ValueRequestPO> requests)
Return multiple values (or empty objects) for given set of parameters.
|
ProducerAO |
getProducer(java.lang.String producerId,
java.lang.String intervalName,
TimeUnit timeUnit)
Returns performance data for a single producer.
|
java.util.List<ProducerAO> |
getProducers(IProducerFilter[] iProducerFilters,
java.lang.String intervalName,
TimeUnit timeUnit) |
java.util.List<ProducerAO> |
getProducers(java.util.List<java.lang.String> producerIds,
java.lang.String intervalName,
TimeUnit timeUnit) |
java.lang.String |
getSingleValue(java.lang.String producerId,
java.lang.String statName,
java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit)
Returns a single producer value as string.
|
java.util.List<UnitCountAO> |
getSubsystems()
Returns all available subsystems.
|
java.util.List<UnitCountAO> getCategories() throws net.anotheria.anoplass.api.APIException
net.anotheria.anoplass.api.APIExceptionjava.util.List<UnitCountAO> getSubsystems() throws net.anotheria.anoplass.api.APIException
net.anotheria.anoplass.api.APIExceptionjava.util.List<ProducerAO> getAllProducers(java.lang.String intervalName, TimeUnit timeUnit) throws net.anotheria.anoplass.api.APIException
intervalName - timeUnit - time unit for duration calculation.net.anotheria.anoplass.api.APIExceptionjava.util.List<ProducerAO> getAllProducers(java.lang.String intervalName, TimeUnit timeUnit, boolean createAllStats) throws net.anotheria.anoplass.api.APIException
net.anotheria.anoplass.api.APIExceptionjava.util.List<ProducerAO> getAllProducersByCategory(java.lang.String currentCategory, java.lang.String intervalName, TimeUnit timeUnit) throws net.anotheria.anoplass.api.APIException
currentCategory - category filter.intervalName - timeUnit - time unit for duration calculation.net.anotheria.anoplass.api.APIExceptionjava.util.List<ProducerAO> getAllProducersByCategory(java.lang.String currentCategory, java.lang.String intervalName, TimeUnit timeUnit, boolean createAllStats) throws net.anotheria.anoplass.api.APIException
net.anotheria.anoplass.api.APIExceptionjava.util.List<ProducerAO> getProducers(IProducerFilter[] iProducerFilters, java.lang.String intervalName, TimeUnit timeUnit) throws net.anotheria.anoplass.api.APIException
iProducerFilters - intervalName - timeUnit - time unit for duration calculation.net.anotheria.anoplass.api.APIExceptionjava.util.List<ProducerAO> getProducers(java.util.List<java.lang.String> producerIds, java.lang.String intervalName, TimeUnit timeUnit) throws net.anotheria.anoplass.api.APIException
producerIds - intervalName - timeUnit - time unit for duration calculation.net.anotheria.anoplass.api.APIExceptionjava.util.List<ProducerAO> getAllProducersBySubsystem(java.lang.String currentSubsystem, java.lang.String intervalName, TimeUnit timeUnit) throws net.anotheria.anoplass.api.APIException
currentSubsystem - subsystem filter.intervalName - timeUnit - time unit for duration calculation.net.anotheria.anoplass.api.APIExceptionjava.util.List<ProducerAO> getAllProducersBySubsystem(java.lang.String currentSubsystem, java.lang.String intervalName, TimeUnit timeUnit, boolean createAllStats) throws net.anotheria.anoplass.api.APIException
net.anotheria.anoplass.api.APIExceptionProducerAO getProducer(java.lang.String producerId, java.lang.String intervalName, TimeUnit timeUnit) throws net.anotheria.anoplass.api.APIException
producerId - id of the producer.intervalName - name of the interval.timeUnit - timeUnit for the duration calculation.net.anotheria.anoplass.api.APIExceptionjava.lang.String getSingleValue(java.lang.String producerId,
java.lang.String statName,
java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit)
throws net.anotheria.anoplass.api.APIException
producerId - id (name) of the producer.statName - name of the stat (for example method name).valueName - value name, this is stat specific, could be something like req, avg, total etc.intervalName - name of the interval, 1m, 5m, default etc.timeUnit - name of the time unit, only relevant for time specific stats.net.anotheria.anoplass.api.APIExceptionjava.util.List<ValueResponseAO> getMultipleValues(java.util.List<ValueRequestPO> requests) throws net.anotheria.anoplass.api.APIException
requests - net.anotheria.anoplass.api.APIExceptionvoid enableLogging(java.lang.String producerId)
throws net.anotheria.anoplass.api.APIException
producerId - net.anotheria.anoplass.api.APIExceptionvoid disableLogging(java.lang.String producerId)
throws net.anotheria.anoplass.api.APIException
producerId - net.anotheria.anoplass.api.APIExceptionCopyright © 2010-2020 anotheria.net. All Rights Reserved.