public class GenericStatsDecorator extends java.lang.Object implements IDecorator<GenericStats>
| Constructor and Description |
|---|
GenericStatsDecorator(java.lang.String name)
Constructs an instance of GenericStatsDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCaption(StatCaptionBean captionBean)
Add a caption.
|
void |
addCaption(java.lang.String name,
java.lang.String type)
Add a caption value.
|
int |
compareTo(net.anotheria.util.sorter.IComparable anotherComparable,
int method) |
java.util.List<StatCaptionBean> |
getCaptions()
Returns the captions for the stat table.
|
java.lang.String |
getExplanation(java.lang.String caption)
Returns an explanation for a caption.
|
java.lang.String |
getName()
Returns the name of the decorator.
|
java.util.List<StatValueAO> |
getValues(GenericStats stats,
java.lang.String interval,
TimeUnit unit)
Returns transformed stats for incoming stats object.
|
boolean |
isInitialized()
can be used to determine if decorator was initialized already.
|
java.lang.String |
toString() |
public GenericStatsDecorator(java.lang.String name)
public int compareTo(net.anotheria.util.sorter.IComparable anotherComparable,
int method)
compareTo in interface net.anotheria.util.sorter.IComparablepublic java.util.List<StatCaptionBean> getCaptions()
IDecoratorgetCaptions in interface IDecorator<GenericStats>public boolean isInitialized()
public void addCaption(StatCaptionBean captionBean)
captionBean - caption bean to addpublic void addCaption(java.lang.String name,
java.lang.String type)
name - the captiontype - short descriptionpublic java.lang.String getExplanation(java.lang.String caption)
IDecoratorgetExplanation in interface IDecorator<GenericStats>public java.lang.String getName()
IDecoratorgetName in interface IDecorator<GenericStats>public java.util.List<StatValueAO> getValues(GenericStats stats, java.lang.String interval, TimeUnit unit)
IDecoratorgetValues in interface IDecorator<GenericStats>stats - stats to decorate.interval - the selected interval.unit - the selected time unit.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010-2020 anotheria.net. All Rights Reserved.