Package com.martiansoftware.nailgun
Class NailStats
- java.lang.Object
-
- com.martiansoftware.nailgun.NailStats
-
- All Implemented Interfaces:
Cloneable
public class NailStats extends Object implements Cloneable
Collects and provides statistics on a nail.
- Author:
- Marty Lamb
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Creates a copy of thisNailStatsobject.booleanequals(Object o)Returns true iff the specifiedNailStatsobject is tracking the same class.ClassgetNailClass()Returns the class for which we're tracking statisticslonggetRefCount()Returns the number of sessions currently running this nail.longgetRunCount()Returns the number of times this nail has been run.inthashCode()StringtoString()Returns a String representation of thisNailStatsobject, in the form "classname: runcount/refcount".
-
-
-
Method Detail
-
getRunCount
public long getRunCount()
Returns the number of times this nail has been run. Nails that have started but not yet finished are included in this number.- Returns:
- the number of times this nail has been run.
-
getRefCount
public long getRefCount()
Returns the number of sessions currently running this nail.- Returns:
- the number of sessions currently running this nail.
-
getNailClass
public Class getNailClass()
Returns the class for which we're tracking statistics- Returns:
- the class for which we're tracking statistics
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
Returns true iff the specifiedNailStatsobject is tracking the same class.
-
clone
public Object clone()
Creates a copy of thisNailStatsobject.
-
-