com.bea.jvm
Interface ExceptionProfileEntry


public interface ExceptionProfileEntry

Access to throw count for a given exception type and its subtypes. The returned counter values are monotonically growing values representing the total number of exceptions of this type thrown since an arbitrary time less or equal to the time profiling was first requested. For resetable behaviour use the getResetableInstance method to acquire a wrapper object that will keep track or the individual profiling state.

Author:
calle
See Also:
ProfilingSystem.newExceptionProfileEntry(java.lang.Class)

Method Summary
 long getCompositeCount()
           
 java.lang.Class getProfiled()
           
 ExceptionProfileEntry getResetableInstance()
           
 long getSingleCount()
           
 java.util.Map getSingleCounts()
           
 boolean isCompositeEnabled()
           
 boolean isSingleEnabled()
           
 void setCompositeEnabled(boolean on)
          sets counting for the specific type and subtypes to enabled or disabled
 void setSingleEnabled(boolean on)
          sets counting for the specific type to enabled or disabled
 

Method Detail

getProfiled

java.lang.Class getProfiled()
Returns:
the type being profiled

isSingleEnabled

boolean isSingleEnabled()
Returns:
if counting of the specific type is active

setSingleEnabled

void setSingleEnabled(boolean on)
                      throws NotAvailableException
sets counting for the specific type to enabled or disabled

Throws:
NotAvailableException

isCompositeEnabled

boolean isCompositeEnabled()
Returns:
if counting of the type and its subtypes is enabled.

setCompositeEnabled

void setCompositeEnabled(boolean on)
                         throws NotAvailableException
sets counting for the specific type and subtypes to enabled or disabled

Throws:
NotAvailableException

getCompositeCount

long getCompositeCount()
Returns:
total number of exceptions of this type thrown, including its subtypes

getSingleCount

long getSingleCount()
Returns:
total number of exceptions of this exact type thrown

getSingleCounts

java.util.Map getSingleCounts()
Returns:
a java.util.Map of java.lang.Class to java.lang.Long representing the individual exception counts for this type and its subtypes.

getResetableInstance

ExceptionProfileEntry getResetableInstance()
Returns:
A wrapper object to handle pausable and resetable profiling


Copyright © 1999, 2008, Oracle and/or its affiliates. All rights reserved.