public class BlueprintProducer extends java.lang.Object implements IStatsProducer
| Constructor and Description |
|---|
BlueprintProducer(java.lang.String aProducerId,
java.lang.String aCategory,
java.lang.String aSubsystem)
Creates a new BlueprintProducer object with given parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(BlueprintCallExecutor executor,
java.lang.Object... parameters)
Called by the surrounding code whenever the action which we are measuring is actually executed.
|
java.lang.String |
getCategory()
Returns the category of this producer.
|
protected Interval[] |
getMonitoringIntervals() |
java.lang.String |
getProducerId()
Returns the meaningful id of this producer.
|
java.util.List<IStats> |
getStats()
Returns the list of all stats.
|
java.lang.String |
getSubsystem()
Returns the subsystem the current producer is located in.
|
public BlueprintProducer(java.lang.String aProducerId,
java.lang.String aCategory,
java.lang.String aSubsystem)
aProducerId - a producer idaCategory - the name of the category (for presentation needs)aSubsystem - the name of the subsystem (for presentation needs)public java.lang.Object execute(BlueprintCallExecutor executor, java.lang.Object... parameters) throws java.lang.Exception
executor - the object the action is executed onparameters - parameters for the actionjava.lang.Exceptionpublic java.lang.String getCategory()
IStatsProducergetCategory in interface IStatsProducerpublic java.lang.String getProducerId()
IStatsProducergetProducerId in interface IStatsProducerpublic java.util.List<IStats> getStats()
IStatsProducergetStats in interface IStatsProducerpublic java.lang.String getSubsystem()
IStatsProducergetSubsystem in interface IStatsProducerprotected Interval[] getMonitoringIntervals()
Copyright © 2010-2020 anotheria.net. All Rights Reserved.