com.grandcentral.appstats.impl
Class CounterImpl

java.lang.Object
  |
  +--com.grandcentral.appstats.impl.StatImpl
        |
        +--com.grandcentral.appstats.impl.CounterImpl
All Implemented Interfaces:
java.lang.Cloneable, Counter, java.io.Serializable, Stat

public class CounterImpl
extends StatImpl
implements Counter

Title:

Description:

Copyright: Copyright (c) 2002

Company: Grand Central Communications

Version:
1.0
Author:
Taras Shkvarchuk
See Also:
Serialized Form

Fields inherited from class com.grandcentral.appstats.impl.StatImpl
m_aDouble, m_aggr, m_aLong, m_name, m_obj, m_type
 
Fields inherited from interface com.grandcentral.appstats.Stat
AGGREGATE_AVG, AGGREGATE_EXPAVG, AGGREGATE_MAX, AGGREGATE_MIN, AGGREGATE_REPLACE, AGGREGATE_SUM, DELIM_STATNAME, DELIM_STATPREFIX, DELIM_TASKPARENT, DONT_AGGREGATE, TYPE_DOUBLE, TYPE_HEIRARCH, TYPE_HIDDEN, TYPE_LONG, TYPE_OBJECT, TYPE_UNDEFINED
 
Constructor Summary
CounterImpl()
           
 
Method Summary
 long decrement()
           
 long getCount()
           
 long increment()
           
 void setCount(long count)
           
 
Methods inherited from class com.grandcentral.appstats.impl.StatImpl
addAggregationMethod, addType, clone, containsAggregationMethod, containsType, createFullName, createFullName, createStatName, fromStringAbbr, getAggregationMethod, getDouble, getFullName, getLong, getObject, getStatName, getStatName, getStatPrefix, getStatPrefix, getStatSuffix, getStatSuffix, getTaskHierarchy, getTaskHierarchy, getType, isValidPrefix, isValidStatName, isValidSuffix, isValidTaskName, prependTaskName, prependTaskName, removeAggregationMethod, removeType, setAggregationMethod, setDouble, setFullName, setLong, setObject, setStatName, setStatPrefix, setStatSuffix, setTaskHierarchy, setType, toString, toStringAbbr, toStringAbbr
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.grandcentral.appstats.Stat
addAggregationMethod, addType, clone, containsAggregationMethod, containsType, fromStringAbbr, getAggregationMethod, getDouble, getFullName, getLong, getObject, getStatName, getStatPrefix, getStatSuffix, getTaskHierarchy, getType, prependTaskName, removeAggregationMethod, removeType, setAggregationMethod, setDouble, setFullName, setLong, setObject, setStatName, setStatPrefix, setStatSuffix, setTaskHierarchy, setType, toStringAbbr, toStringAbbr
 

Constructor Detail

CounterImpl

public CounterImpl()
Method Detail

getCount

public long getCount()
Specified by:
getCount in interface Counter

setCount

public void setCount(long count)
Specified by:
setCount in interface Counter

increment

public long increment()
Specified by:
increment in interface Counter
Following copied from interface: com.grandcentral.appstats.Counter
Returns:
Returns counter After it has been incremented

decrement

public long decrement()
Specified by:
decrement in interface Counter
Following copied from interface: com.grandcentral.appstats.Counter
Returns:
Returns counter After it has been decremented