com.martiansoftware.nailgun
Class NailStats
- Cloneable
public class NailStats
implements Cloneable
Collects and provides statistics on a nail.
Object | clone() - Creates a copy of this
NailStats object.
|
boolean | equals(Object o) - Returns true iff the specified
NailStats object
is tracking the same class.
|
Class | getNailClass() - Returns the class for which we're tracking statistics
|
long | 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 this
NailStats
object, in the form "classname: runcount/refcount".
|
clone
public Object clone()
Creates a copy of this NailStats
object.
- a copy of this
NailStats
object.
equals
public boolean equals(Object o)
Returns true iff the specified NailStats
object
is tracking the same class.
o
- the NailStats object to check
- true iff the specified
NailStats
object
is tracking the same class.
getNailClass
public Class getNailClass()
Returns the class for which we're tracking statistics
- the class for which we're tracking statistics
getRefCount
public long getRefCount()
Returns the number of sessions currently running this nail.
- the number of sessions currently running this nail.
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.
- the number of times this nail has been run.
hashCode
public int hashCode()
toString
public String toString()
Returns a String representation of this NailStats
object, in the form "classname: runcount/refcount".
*return a String representation of this NailStats
object.
© 2004, Martian Software, Inc.