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