net.sf.infrared.bootstrap
Interface MonitorConfig

All Known Implementing Classes:
ConfigurationProvider, DummyMonitorConfig

public interface MonitorConfig

Interface for acessing / updating configuration parameters


Method Summary
 void enableCallTracing(boolean enable)
           
 void enableJDBCFecthStatisticsCollection(boolean enable)
           
 void enableJDBCMonitoring(boolean enable)
           
 void enableJDBCResourceLeakDetectionEnabled(boolean enable)
           
 void enableJDBCTrackResourceAquisitionLocationEnabled(boolean enable)
           
 void enableMonitoring(boolean enable)
           
 void enableMonitoringForCurrentThread(boolean enable)
           
 String getCollectionStrategy()
           
 int getNoOfLastInvocationsToBeTracked()
           
 String getProperty(String propertyName)
          Retrieve the value for given parameter name This method is make it easier to add new properties without having to modify all the classes.
 long getPruneThreshold()
           
 boolean isCallTracingEnabled()
           
 boolean isDebugLoggingEnabled()
           
 boolean isDefensiveChecksEnabled()
           
 boolean isJDBCFecthStatisticsCollectionEnabled()
           
 boolean isJDBCMonitoringEnabled()
           
 boolean isJDBCResourceLeakDetectionEnabled()
           
 boolean isJDBCTrackResourceAquisitionLocationEnabled()
           
 boolean isMonitoringEnabled()
          Indicates whether the collection of summary statistics at method level is enabled
 boolean isMonitoringEnabledForCurrentThread()
           
 void setDefensiveChecksEnabled(boolean enable)
           
 void setNoOfLastInvocationsToBeTracked(int noOfLastInvocationsToBeTracked)
           
 void setProperty(String propertyName, String value)
           
 void setPruneThreshold(long pruneThreshold)
           
 

Method Detail

isMonitoringEnabled

public boolean isMonitoringEnabled()
Indicates whether the collection of summary statistics at method level is enabled

Returns:

enableMonitoring

public void enableMonitoring(boolean enable)

isMonitoringEnabledForCurrentThread

public boolean isMonitoringEnabledForCurrentThread()

enableMonitoringForCurrentThread

public void enableMonitoringForCurrentThread(boolean enable)

isCallTracingEnabled

public boolean isCallTracingEnabled()

enableCallTracing

public void enableCallTracing(boolean enable)

isJDBCMonitoringEnabled

public boolean isJDBCMonitoringEnabled()

enableJDBCMonitoring

public void enableJDBCMonitoring(boolean enable)

isJDBCFecthStatisticsCollectionEnabled

public boolean isJDBCFecthStatisticsCollectionEnabled()

enableJDBCFecthStatisticsCollection

public void enableJDBCFecthStatisticsCollection(boolean enable)

isJDBCResourceLeakDetectionEnabled

public boolean isJDBCResourceLeakDetectionEnabled()

enableJDBCResourceLeakDetectionEnabled

public void enableJDBCResourceLeakDetectionEnabled(boolean enable)

isJDBCTrackResourceAquisitionLocationEnabled

public boolean isJDBCTrackResourceAquisitionLocationEnabled()

enableJDBCTrackResourceAquisitionLocationEnabled

public void enableJDBCTrackResourceAquisitionLocationEnabled(boolean enable)

getPruneThreshold

public long getPruneThreshold()

setPruneThreshold

public void setPruneThreshold(long pruneThreshold)

getNoOfLastInvocationsToBeTracked

public int getNoOfLastInvocationsToBeTracked()

setNoOfLastInvocationsToBeTracked

public void setNoOfLastInvocationsToBeTracked(int noOfLastInvocationsToBeTracked)

isDefensiveChecksEnabled

public boolean isDefensiveChecksEnabled()

setDefensiveChecksEnabled

public void setDefensiveChecksEnabled(boolean enable)

isDebugLoggingEnabled

public boolean isDebugLoggingEnabled()

getCollectionStrategy

public String getCollectionStrategy()

getProperty

public String getProperty(String propertyName)
Retrieve the value for given parameter name This method is make it easier to add new properties without having to modify all the classes.

Parameters:
propertyName -
Returns:

setProperty

public void setProperty(String propertyName,
                        String value)