com.plumtree.portaluiinfrastructure.statichelpers
Class PTPerfCounters

java.lang.Object
  extended by com.plumtree.portaluiinfrastructure.statichelpers.PTPerfCounters
All Implemented Interfaces:
IPerfCounterHelper

public class PTPerfCounters
extends java.lang.Object
implements IPerfCounterHelper

Updates the performance counters available through PortalPagesPerf. Also handles the case when the DLL is not present and disables future requests. See com.plumtree.server.portalpagesperf.PORTALPAGESPERF_COUNTERS for a list of available counters.

Author:
DavidP

Constructor Summary
PTPerfCounters()
           
 
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()
          Initialize the performance counter object.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PTPerfCounters

public PTPerfCounters()
Method Detail

Init

public void Init()
Initialize the performance counter object. If there is an exception, shuts down all future logging for this instance.

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()
Description copied from interface: IPerfCounterHelper
Gets the number of open sessions

Specified by:
GetOpenSessions in interface IPerfCounterHelper



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