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 Object
clone()
Creates a copy of thisNailStats
object.boolean
equals(Object o)
Returns true iff the specifiedNailStats
object is tracking the same class.Class
getNailClass()
Returns the class for which we're tracking statisticslong
getRefCount()
Returns the number of sessions currently running this nail.long
getRunCount()
Returns the number of times this nail has been run.int
hashCode()
String
toString()
Returns a String representation of thisNailStats
object, 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:
hashCode
in classObject
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
Returns true iff the specifiedNailStats
object is tracking the same class.
-
clone
public Object clone()
Creates a copy of thisNailStats
object.
-
-