com.grandcentral.appstats
Interface Counter

All Superinterfaces:
java.lang.Cloneable, java.io.Serializable, Stat
All Known Implementing Classes:
SynchronizedCounterImpl, CounterImpl

public interface Counter
extends Stat

Title:

Description: Process Status/Performance monitoring system

Copyright: Copyright (c) 2002

Company: Grand Central Communications

Version:
1.0
Author:
Taras Shkvarchuk, Adrian Dorsman

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
 
Method Summary
 long decrement()
           
 long getCount()
           
 long increment()
           
 void setCount(long count)
           
 
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
 

Method Detail

getCount

public long getCount()

setCount

public void setCount(long count)

increment

public long increment()
Returns:
Returns counter After it has been incremented

decrement

public long decrement()
Returns:
Returns counter After it has been decremented