com.plumtree.uiinfrastructure.web
Class PerfCounters

java.lang.Object
  extended by com.plumtree.uiinfrastructure.web.PerfCounters
All Implemented Interfaces:
IPerfCounterHelper

public final class PerfCounters
extends java.lang.Object
implements IPerfCounterHelper

Performance counter core, calls derived perf counters set at init

Author:
DavidP

Field Summary
static PerfCounters INSTANCE
          Use this class static to access the one and only instance of LoginHelper.
 
Constructor Summary
PerfCounters()
           
 
Method Summary
 void DecrementCounter(int counterVal)
          Decrement the performance counter.
 int GetOpenSessions()
          Gets the number of open sessions
 int GetSessionCounterID()
          Gets the integer for the counter for session total
 void IncrementCounter(int counterVal)
          Increment the performance counter.
 void Init()
          Used only by the derived class
 boolean IsDisabled()
          Checks that the perf counter interface is not disabled This occurs if an exception is thrown
 boolean IsInitialized()
          Checks that the perf counter interface is initialized
static void StaticInit(IPerfCounterHelper perfCounter)
          Static initialization method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final PerfCounters INSTANCE
Use this class static to access the one and only instance of LoginHelper.

Constructor Detail

PerfCounters

public PerfCounters()
Method Detail

StaticInit

public static final void StaticInit(IPerfCounterHelper perfCounter)
Static initialization method. Use this method to add custom performance handling code. This method does not need to be called.

Parameters:
IPerfCounterHelper - custom perf counter code

Init

public void Init()
Used only by the derived class

Specified by:
Init in interface IPerfCounterHelper

IncrementCounter

public void IncrementCounter(int counterVal)
Increment the performance counter. If there is an exception, shuts down all future logging for this instance. The passed integer must be of the enum PORTALPAGESPERF_COUNTERS.

Specified by:
IncrementCounter in interface IPerfCounterHelper
Parameters:
counterVal -

DecrementCounter

public void DecrementCounter(int counterVal)
Decrement the performance counter. If there is an exception, shuts down all future logging for this instance. The passed integer must be of the enum PORTALPAGESPERF_COUNTERS.

Specified by:
DecrementCounter in interface IPerfCounterHelper
Parameters:
counterVal -

IsInitialized

public boolean IsInitialized()
Checks that the perf counter interface is initialized

Specified by:
IsInitialized in interface IPerfCounterHelper

IsDisabled

public boolean IsDisabled()
Checks that the perf counter interface is not disabled This occurs if an exception is thrown

Specified by:
IsDisabled in interface IPerfCounterHelper

GetSessionCounterID

public int GetSessionCounterID()
Gets the integer for the counter for session total

Specified by:
GetSessionCounterID in interface IPerfCounterHelper

GetOpenSessions

public int GetOpenSessions()
Gets the number of open sessions

Specified by:
GetOpenSessions in interface IPerfCounterHelper



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.