org.igfay.util
Class Metric

java.lang.Object
  extended byorg.igfay.util.Metric

public class Metric
extends java.lang.Object

Capture metrics Creation date: (12/12/2001 9:35:23 AM)

Author:
bconrad

Field Summary
static java.lang.String ACCEPTANCE_MANAGER
           
static java.lang.String BENCHMARK
           
static java.lang.String DB
           
static java.lang.String DEFAULT
           
static java.lang.String DOWNLOAD
           
static java.lang.String EVENT
           
static java.lang.String LOGIN
           
static java.lang.String NOTIFY_ACTION
           
static java.lang.String QUERY
           
static java.lang.String RULES_ENGINE
           
static java.lang.String UPLOAD
           
 
Constructor Summary
Metric()
          Metric constructor comment.
Metric(boolean isStart)
          Metric constructor comment.
Metric(java.lang.String groupName)
          Metric constructor comment.
Metric(java.lang.String groupName, boolean isStart)
          Metric constructor comment.
Metric(java.lang.String groupName, java.lang.String metricName)
          Metric constructor comment.
Metric(java.lang.String groupName, java.lang.String metricName, boolean isStart)
          Metric constructor comment.
Metric(java.lang.String groupName, java.lang.String metricName, boolean isStart, boolean isDebugEnabled)
           
 
Method Summary
static void addToListForGroup(java.lang.String groupName, Metric metric)
          Insert the method's description here.
 void clear()
          Insert the method's description here.
 void end()
          Insert the method's description here.
 void endAndPrint()
           
 long getElapsedTime()
          Insert the method's description here.
protected  long getEndTime()
          Insert the method's description here.
 java.lang.String getGroupName()
          Insert the method's description here.
static java.util.List getListForGroup(java.lang.String groupName)
          Insert the method's description here.
 java.lang.String getMetricName()
          Insert the method's description here.
protected  long getPauseElapsedTime()
          Insert the method's description here.
protected  long getPauseStartTime()
          Insert the method's description here.
protected  long getStartTime()
          Insert the method's description here.
protected  boolean isDebugEnabled()
          Returns the isDebugEnabled.
static boolean isMetricLoggingEnabled()
          Insert the method's description here.
static void main(java.lang.String[] args)
          Insert the method's description here.
 void pause()
          Insert the method's description here.
 void print()
          Insert the method's description here.
static void printGroup(java.lang.String groupName)
          Insert the method's description here.
 void resume()
          Insert the method's description here.
 void setEndTime(long newEndTime)
          Insert the method's description here.
 void setGroupName(java.lang.String newGroup)
          Insert the method's description here.
 void setIsDebugEnabled(boolean isDebugEnabled)
          Sets the isDebugEnabled.
 void setMetricName(java.lang.String newName)
          Insert the method's description here.
 void setMetricNameFailed()
           
protected  void setPauseElapsedTime(long newPauseElapsedTime)
          Insert the method's description here.
protected  void setPauseStartTime(long newPauseStartTime)
          Insert the method's description here.
 void setStartTime(long newStartTime)
          Insert the method's description here.
 void start()
          Insert the method's description here.
 void stop()
           
static void test()
          Insert the method's description here.
static void testIsDebugEnabled(Metric bruce4)
           
static void testSimple()
           
 java.lang.String toString()
          Insert the method's description here.
 java.lang.StringBuffer toStringBuffer()
          Insert the method's description here.
 java.lang.String toStringLong()
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final java.lang.String DEFAULT
See Also:
Constant Field Values

BENCHMARK

public static final java.lang.String BENCHMARK
See Also:
Constant Field Values

DB

public static final java.lang.String DB
See Also:
Constant Field Values

EVENT

public static final java.lang.String EVENT
See Also:
Constant Field Values

LOGIN

public static final java.lang.String LOGIN
See Also:
Constant Field Values

QUERY

public static final java.lang.String QUERY
See Also:
Constant Field Values

DOWNLOAD

public static final java.lang.String DOWNLOAD
See Also:
Constant Field Values

UPLOAD

public static final java.lang.String UPLOAD
See Also:
Constant Field Values

ACCEPTANCE_MANAGER

public static final java.lang.String ACCEPTANCE_MANAGER
See Also:
Constant Field Values

NOTIFY_ACTION

public static final java.lang.String NOTIFY_ACTION
See Also:
Constant Field Values

RULES_ENGINE

public static final java.lang.String RULES_ENGINE
See Also:
Constant Field Values
Constructor Detail

Metric

public Metric()
Metric constructor comment.


Metric

public Metric(java.lang.String groupName)
Metric constructor comment.

Parameters:
groupName - Description of Parameter

Metric

public Metric(java.lang.String groupName,
              java.lang.String metricName)
Metric constructor comment.

Parameters:
groupName - Description of Parameter
metricName - Description of Parameter

Metric

public Metric(java.lang.String groupName,
              java.lang.String metricName,
              boolean isStart)
Metric constructor comment.

Parameters:
groupName - Description of Parameter
metricName - Description of Parameter
isStart - Description of Parameter

Metric

public Metric(java.lang.String groupName,
              java.lang.String metricName,
              boolean isStart,
              boolean isDebugEnabled)

Metric

public Metric(java.lang.String groupName,
              boolean isStart)
Metric constructor comment.

Parameters:
groupName - Description of Parameter
isStart - Description of Parameter

Metric

public Metric(boolean isStart)
Metric constructor comment.

Parameters:
isStart - Description of Parameter
Method Detail

addToListForGroup

public static void addToListForGroup(java.lang.String groupName,
                                     Metric metric)
Insert the method's description here. Creation date: (12/12/2001 9:38:44 AM)

Parameters:
groupName - The feature to be added to the ToListForGroup attribute
metric - The feature to be added to the ToListForGroup attribute

main

public static void main(java.lang.String[] args)
Insert the method's description here. Creation date: (12/12/2001 11:03:27 AM)

Parameters:
args - java.lang.String[]

printGroup

public static void printGroup(java.lang.String groupName)
Insert the method's description here. Creation date: (12/12/2001 9:46:19 AM)

Parameters:
groupName - Description of Parameter

test

public static void test()
Insert the method's description here. Creation date: (12/12/2001 9:46:19 AM)


testSimple

public static void testSimple()

testIsDebugEnabled

public static void testIsDebugEnabled(Metric bruce4)

getListForGroup

public static java.util.List getListForGroup(java.lang.String groupName)
Insert the method's description here. Creation date: (12/12/2001 9:38:44 AM)

Parameters:
groupName - Description of Parameter
Returns:
int

isMetricLoggingEnabled

public static boolean isMetricLoggingEnabled()
Insert the method's description here. Creation date: (12/12/2001 9:46:19 AM)

Returns:
The MetricLoggingEnabled value

clear

public void clear()
Insert the method's description here. Creation date: (12/12/2001 9:46:19 AM)


end

public void end()
Insert the method's description here. Creation date: (12/12/2001 9:46:19 AM)


stop

public void stop()

endAndPrint

public void endAndPrint()

pause

public void pause()
Insert the method's description here. Creation date: (12/12/2001 9:49:00 AM)


print

public void print()
Insert the method's description here. Creation date: (12/12/2001 9:46:19 AM)


resume

public void resume()
Insert the method's description here. Creation date: (12/12/2001 9:49:00 AM)


start

public void start()
Insert the method's description here. Creation date: (12/12/2001 9:46:19 AM)


toString

public java.lang.String toString()
Insert the method's description here. Creation date: (12/12/2001 9:38:44 AM)

Returns:
int

toStringBuffer

public java.lang.StringBuffer toStringBuffer()
Insert the method's description here. Creation date: (12/12/2001 9:38:44 AM)

Returns:
int

toStringLong

public java.lang.String toStringLong()
Insert the method's description here. Creation date: (12/12/2001 9:38:44 AM)

Returns:
int

getGroupName

public java.lang.String getGroupName()
Insert the method's description here. Creation date: (12/12/2001 10:01:21 AM)

Returns:
java.lang.String

getMetricName

public java.lang.String getMetricName()
Insert the method's description here. Creation date: (12/12/2001 10:01:55 AM)

Returns:
java.lang.String

getElapsedTime

public long getElapsedTime()
Insert the method's description here. Creation date: (12/12/2001 9:38:44 AM)

Returns:
int

getEndTime

protected long getEndTime()
Insert the method's description here. Creation date: (12/12/2001 9:36:34 AM)

Returns:
java.lang.Long

getPauseElapsedTime

protected long getPauseElapsedTime()
Insert the method's description here. Creation date: (12/12/2001 9:50:37 AM)

Returns:
long

getPauseStartTime

protected long getPauseStartTime()
Insert the method's description here. Creation date: (12/12/2001 9:49:46 AM)

Returns:
long

getStartTime

protected long getStartTime()
Insert the method's description here. Creation date: (12/12/2001 9:36:14 AM)

Returns:
java.lang.Long

setEndTime

public void setEndTime(long newEndTime)
Insert the method's description here. Creation date: (12/12/2001 9:36:34 AM)

Parameters:
newEndTime - java.lang.Long

setGroupName

public void setGroupName(java.lang.String newGroup)
Insert the method's description here. Creation date: (12/12/2001 10:01:21 AM)

Parameters:
newGroup - java.lang.String

setMetricName

public void setMetricName(java.lang.String newName)
Insert the method's description here. Creation date: (12/12/2001 10:01:55 AM)

Parameters:
newName - java.lang.String

setMetricNameFailed

public void setMetricNameFailed()

setStartTime

public void setStartTime(long newStartTime)
Insert the method's description here. Creation date: (12/12/2001 9:36:14 AM)

Parameters:
newStartTime - java.lang.Long

setPauseElapsedTime

protected void setPauseElapsedTime(long newPauseElapsedTime)
Insert the method's description here. Creation date: (12/12/2001 9:50:37 AM)

Parameters:
newPauseElapsedTime - long

setPauseStartTime

protected void setPauseStartTime(long newPauseStartTime)
Insert the method's description here. Creation date: (12/12/2001 9:49:46 AM)

Parameters:
newPauseStartTime - long

isDebugEnabled

protected boolean isDebugEnabled()
Returns the isDebugEnabled.

Returns:
boolean

setIsDebugEnabled

public void setIsDebugEnabled(boolean isDebugEnabled)
Sets the isDebugEnabled.

Parameters:
isDebugEnabled - The isDebugEnabled to set