Package oracle.jdbc.diagnostics
Class OracleDiagnosticsMXBean
- java.lang.Object
-
- javax.management.StandardMBean
-
- oracle.jdbc.diagnostics.OracleDiagnosticsMXBean
-
- All Implemented Interfaces:
javax.management.DynamicMBean,javax.management.MBeanRegistration,DiagnosticsMXBean
public class OracleDiagnosticsMXBean extends javax.management.StandardMBean implements DiagnosticsMXBean
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddErrorCodeToWatchList(java.lang.String errorCode)Add the error code to be watched for next occurrence in the format ORA-XXXXX.static voidaddPropertyChangeListener(PropertyChangeListener propertyChangeListener)voidclearExceptionKeywords()Clear the keywords that were previously added by invoking operationDiagnosticsMXBean.dumpDiagnoseFirstFailureWhenFutureExceptionContains(String).voidclearMetrics()Clear the metrics of events captured by the JDBC driver during establishing a connection to database.voiddisableDiagnoseFirstFailure()Diagnose First Failure is enabled by default.voiddisableDiagnoseFirstFailureByConnectionIdPrefix(java.lang.String connectionIdPrefix)Diagnose First Failure is enabled by default.voiddisableDiagnoseFirstFailureByLoggerName(java.lang.String loggerName)Diagnose First Failure is enabled by default.voiddisableDiagnoseFirstFailureByTenantName(java.lang.String tenantName)Diagnose First Failure is enabled by default.voiddisableLogging()Logging is disabled by default.voiddisableLoggingByConnectionIdPrefix(java.lang.String connectionIdPrefix)Logging is disabled by default.voiddisableLoggingByLoggerName(java.lang.String loggerName)Logging is disabled by default.voiddisableLoggingByTenantName(java.lang.String tenantName)Logging is disabled by default.voiddisableMetrics()If disabled, the JDBC driver does not collect metrics of events.voiddisableSensitiveDiagnostics()Sensitive diagnostics is disabled by default.voiddisableSensitiveDiagnosticsByConnectionIdPrefix(java.lang.String connectionIdPrefix)Sensitive diagnostics is disabled by default.voiddisableSensitiveDiagnosticsByLoggerName(java.lang.String loggerName)Sensitive diagnostics is disabled by default.voiddisableSensitiveDiagnosticsByTenantName(java.lang.String tenantName)Sensitive diagnostics is disabled by default.voiddumpDiagnoseFirstFailure()Dump the diagnostics of first failure to the target handler.voiddumpDiagnoseFirstFailureWhenFutureExceptionContains(java.lang.String commaSeparatedKeywords)Dump the diagnostics of first failure when the future exception, if any, contains any one of the keywords given.voidenableDiagnoseFirstFailure()Diagnose First Failure is enabled by default.voidenableDiagnoseFirstFailureByConnectionIdPrefix(java.lang.String connectionIdPrefix)Diagnose First Failure is enabled by default.voidenableDiagnoseFirstFailureByLoggerName(java.lang.String loggerName)Diagnose First Failure is enabled by default.voidenableDiagnoseFirstFailureByTenantName(java.lang.String tenantName)Diagnose First Failure is enabled by default.voidenableLogging()Logging is disabled by default.voidenableLoggingByConnectionIdPrefix(java.lang.String connectionIdPrefix)Logging is disabled by default.voidenableLoggingByLoggerName(java.lang.String loggerName)Logging is disabled by default.voidenableLoggingByTenantName(java.lang.String tenantName)Logging is disabled by default.voidenableMetrics()If enabled, the JDBC driver collects metrics of events.voidenableSensitiveDiagnostics()Sensitive diagnostics is disabled by default.voidenableSensitiveDiagnosticsByConnectionIdPrefix(java.lang.String connectionIdPrefix)Sensitive diagnostics is disabled by default.voidenableSensitiveDiagnosticsByLoggerName(java.lang.String loggerName)Sensitive diagnostics is disabled by default.voidenableSensitiveDiagnosticsByTenantName(java.lang.String tenantName)Sensitive diagnostics is disabled by default.voidenableWriteLogsToDiagnoseFirstFailure(java.lang.Boolean enabled)Write logs to in-memory diagnostic buffer.static OracleDiagnosticsMXBeangetInstance()javax.management.MBeanInfogetMBeanInfo()booleanisLoggingEnabled()All Oracle JDBC logging code is controlled by this boolean attribute.booleanisMetricsEnabled()All metrics of events captured by the JDBC driver is controlled by this boolean attribute.booleanisWriteLogsToDiagnoseFirstFailure()By default, logs are written to log handler.voidreadLoggingConfigFile(java.lang.String configFile)Reinitialize the logging properties and reread the logging configuration from the given file, which should be in java.util.Properties format.voidremoveErrorCodeFromWatchList(java.lang.String errorCode)Remove the given error code from the watch list.static voidremovePropertyChangeListener(PropertyChangeListener propertyChangeListener)voidresetErrorCodeWatchList()Configure the watch list with the default error codes.java.lang.StringshowErrorCodesWatchList()Show the error codes being watched.java.lang.StringshowExceptionKeywords()Show the keywords that were previously added by invoking operationDiagnosticsMXBean.dumpDiagnoseFirstFailureWhenFutureExceptionContains(String).java.lang.StringshowMetrics()Show the captured timing metrics.java.lang.StringshowRecentOperations()The most recent operations performed by the user on this MBean.voidupdateBufferSize(java.lang.Integer bufferSize)Update the in-memory buffer size of Diagnose First Failure.voidupdateBufferSizeByConnectionIdPrefix(java.lang.String connectionIdPrefix, java.lang.Integer bufferSize)Update in-memory Diagnose First Failure buffer size by the given connection id prefix.voidupdateBufferSizeByLoggerName(java.lang.String loggerName, java.lang.Integer bufferSize)Update the in-memory buffer size of Diagnose First Failure by the given logger name.voidupdateBufferSizeByTenantName(java.lang.String tenantName, java.lang.Integer bufferSize)Update the in-memory buffer size of Diagnose First Failure by the given tenant name.voidupdateDiagnosticLevel(java.lang.String loggingLevel)Update the diagnostic level.voidupdateDiagnosticLevelByConnectionIdPrefix(java.lang.String connectionIdPrefix, java.lang.String loggingLevel)Update the diagnostic level by the given connection id prefix.voidupdateDiagnosticLevelByLoggerName(java.lang.String loggerName, java.lang.String loggingLevel)Update the diagnostic level by the given logger name.voidupdateDiagnosticLevelByTenantName(java.lang.String tenantName, java.lang.String loggingLevel)Update the diagnostic level by the given tenant name.-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
-
-
-
Field Detail
-
EVENT_ENABLE_DIAGNOSE_FIRST_FAILURE_BY_CONN_ID_PREFIX
public static final java.lang.String EVENT_ENABLE_DIAGNOSE_FIRST_FAILURE_BY_CONN_ID_PREFIX
- See Also:
- Constant Field Values
-
EVENT_DISABLE_DIAGNOSE_FIRST_FAILURE_BY_CONN_ID_PREFIX
public static final java.lang.String EVENT_DISABLE_DIAGNOSE_FIRST_FAILURE_BY_CONN_ID_PREFIX
- See Also:
- Constant Field Values
-
EVENT_ENABLE_DIAGNOSE_FIRST_FAILURE_BY_TENANT_NAME
public static final java.lang.String EVENT_ENABLE_DIAGNOSE_FIRST_FAILURE_BY_TENANT_NAME
- See Also:
- Constant Field Values
-
EVENT_DISABLE_DIAGNOSE_FIRST_FAILURE_BY_TENANT_NAME
public static final java.lang.String EVENT_DISABLE_DIAGNOSE_FIRST_FAILURE_BY_TENANT_NAME
- See Also:
- Constant Field Values
-
EVENT_ENABLE_DIAGNOSE_FIRST_FAILURE_BY_LOGGER_NAME
public static final java.lang.String EVENT_ENABLE_DIAGNOSE_FIRST_FAILURE_BY_LOGGER_NAME
- See Also:
- Constant Field Values
-
EVENT_DISABLE_DIAGNOSE_FIRST_FAILURE_BY_LOGGER_NAME
public static final java.lang.String EVENT_DISABLE_DIAGNOSE_FIRST_FAILURE_BY_LOGGER_NAME
- See Also:
- Constant Field Values
-
EVENT_ENABLE_DIAGNOSE_FIRST_FAILURE
public static final java.lang.String EVENT_ENABLE_DIAGNOSE_FIRST_FAILURE
- See Also:
- Constant Field Values
-
EVENT_DISABLE_DIAGNOSE_FIRST_FAILURE
public static final java.lang.String EVENT_DISABLE_DIAGNOSE_FIRST_FAILURE
- See Also:
- Constant Field Values
-
EVENT_ENABLE_LOGGING_BY_CONN_ID_PREFIX
public static final java.lang.String EVENT_ENABLE_LOGGING_BY_CONN_ID_PREFIX
- See Also:
- Constant Field Values
-
EVENT_DISABLE_LOGGING_BY_CONN_ID_PREFIX
public static final java.lang.String EVENT_DISABLE_LOGGING_BY_CONN_ID_PREFIX
- See Also:
- Constant Field Values
-
EVENT_ENABLE_LOGGING_BY_TENANT_NAME
public static final java.lang.String EVENT_ENABLE_LOGGING_BY_TENANT_NAME
- See Also:
- Constant Field Values
-
EVENT_DISABLE_LOGGING_BY_TENANT_NAME
public static final java.lang.String EVENT_DISABLE_LOGGING_BY_TENANT_NAME
- See Also:
- Constant Field Values
-
EVENT_ENABLE_LOGGING_BY_LOGGER_NAME
public static final java.lang.String EVENT_ENABLE_LOGGING_BY_LOGGER_NAME
- See Also:
- Constant Field Values
-
EVENT_DISABLE_LOGGING_BY_LOGGER_NAME
public static final java.lang.String EVENT_DISABLE_LOGGING_BY_LOGGER_NAME
- See Also:
- Constant Field Values
-
EVENT_ENABLE_LOGGING
public static final java.lang.String EVENT_ENABLE_LOGGING
- See Also:
- Constant Field Values
-
EVENT_DISABLE_LOGGING
public static final java.lang.String EVENT_DISABLE_LOGGING
- See Also:
- Constant Field Values
-
EVENT_ENABLE_SENSITIVE_DIAGNOSTICS_BY_CONN_ID_PREFIX
public static final java.lang.String EVENT_ENABLE_SENSITIVE_DIAGNOSTICS_BY_CONN_ID_PREFIX
- See Also:
- Constant Field Values
-
EVENT_DISABLE_SENSITIVE_DIAGNOSTICS_BY_CONN_ID_PREFIX
public static final java.lang.String EVENT_DISABLE_SENSITIVE_DIAGNOSTICS_BY_CONN_ID_PREFIX
- See Also:
- Constant Field Values
-
EVENT_ENABLE_SENSITIVE_DIAGNOSTICS_BY_TENANT_NAME
public static final java.lang.String EVENT_ENABLE_SENSITIVE_DIAGNOSTICS_BY_TENANT_NAME
- See Also:
- Constant Field Values
-
EVENT_DISABLE_SENSITIVE_DIAGNOSTICS_BY_TENANT_NAME
public static final java.lang.String EVENT_DISABLE_SENSITIVE_DIAGNOSTICS_BY_TENANT_NAME
- See Also:
- Constant Field Values
-
EVENT_ENABLE_SENSITIVE_DIAGNOSTICS_BY_LOGGER_NAME
public static final java.lang.String EVENT_ENABLE_SENSITIVE_DIAGNOSTICS_BY_LOGGER_NAME
- See Also:
- Constant Field Values
-
EVENT_DISABLE_SENSITIVE_DIAGNOSTICS_BY_LOGGER_NAME
public static final java.lang.String EVENT_DISABLE_SENSITIVE_DIAGNOSTICS_BY_LOGGER_NAME
- See Also:
- Constant Field Values
-
EVENT_ENABLE_SENSITIVE_DIAGNOSTICS
public static final java.lang.String EVENT_ENABLE_SENSITIVE_DIAGNOSTICS
- See Also:
- Constant Field Values
-
EVENT_DISABLE_SENSITIVE_DIAGNOSTICS
public static final java.lang.String EVENT_DISABLE_SENSITIVE_DIAGNOSTICS
- See Also:
- Constant Field Values
-
EVENT_UPDATE_DIAGNOSTIC_LEVEL_BY_CONN_ID_PREFIX
public static final java.lang.String EVENT_UPDATE_DIAGNOSTIC_LEVEL_BY_CONN_ID_PREFIX
- See Also:
- Constant Field Values
-
EVENT_UPDATE_DIAGNOSTIC_LEVEL_BY_TENANT_NAME
public static final java.lang.String EVENT_UPDATE_DIAGNOSTIC_LEVEL_BY_TENANT_NAME
- See Also:
- Constant Field Values
-
EVENT_UPDATE_DIAGNOSTIC_LEVEL_BY_LOGGER_NAME
public static final java.lang.String EVENT_UPDATE_DIAGNOSTIC_LEVEL_BY_LOGGER_NAME
- See Also:
- Constant Field Values
-
EVENT_UPDATE_DIAGNOSTIC_LEVEL
public static final java.lang.String EVENT_UPDATE_DIAGNOSTIC_LEVEL
- See Also:
- Constant Field Values
-
EVENT_UPDATE_DIAGNOSE_FIRST_FAILURE_SIZE_BY_CONN_ID_PREFIX
public static final java.lang.String EVENT_UPDATE_DIAGNOSE_FIRST_FAILURE_SIZE_BY_CONN_ID_PREFIX
- See Also:
- Constant Field Values
-
EVENT_UPDATE_DIAGNOSE_FIRST_FAILURE_SIZE_BY_TENANT_NAME
public static final java.lang.String EVENT_UPDATE_DIAGNOSE_FIRST_FAILURE_SIZE_BY_TENANT_NAME
- See Also:
- Constant Field Values
-
EVENT_UPDATE_DIAGNOSE_FIRST_FAILURE_SIZE_BY_LOGGER_NAME
public static final java.lang.String EVENT_UPDATE_DIAGNOSE_FIRST_FAILURE_SIZE_BY_LOGGER_NAME
- See Also:
- Constant Field Values
-
EVENT_UPDATE_DIAGNOSE_FIRST_FAILURE_SIZE
public static final java.lang.String EVENT_UPDATE_DIAGNOSE_FIRST_FAILURE_SIZE
- See Also:
- Constant Field Values
-
EVENT_DUMP_DIAGNOSE_FIRST_FAILURE
public static final java.lang.String EVENT_DUMP_DIAGNOSE_FIRST_FAILURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static OracleDiagnosticsMXBean getInstance()
-
addPropertyChangeListener
public static void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
-
removePropertyChangeListener
public static void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
-
enableDiagnoseFirstFailureByConnectionIdPrefix
public void enableDiagnoseFirstFailureByConnectionIdPrefix(java.lang.String connectionIdPrefix)
Description copied from interface:DiagnosticsMXBeanDiagnose First Failure is enabled by default. This operation enables Diagnose First Failure by the given connection id prefix, if it was disabled.- Specified by:
enableDiagnoseFirstFailureByConnectionIdPrefixin interfaceDiagnosticsMXBean
-
disableDiagnoseFirstFailureByConnectionIdPrefix
public void disableDiagnoseFirstFailureByConnectionIdPrefix(java.lang.String connectionIdPrefix)
Description copied from interface:DiagnosticsMXBeanDiagnose First Failure is enabled by default. This operation disables Diagnose First Failure by the given connection id prefix.- Specified by:
disableDiagnoseFirstFailureByConnectionIdPrefixin interfaceDiagnosticsMXBean
-
enableDiagnoseFirstFailureByTenantName
public void enableDiagnoseFirstFailureByTenantName(java.lang.String tenantName)
Description copied from interface:DiagnosticsMXBeanDiagnose First Failure is enabled by default. This operation enables Diagnose First Failure by the given tenant name, if it was disabled.- Specified by:
enableDiagnoseFirstFailureByTenantNamein interfaceDiagnosticsMXBean
-
disableDiagnoseFirstFailureByTenantName
public void disableDiagnoseFirstFailureByTenantName(java.lang.String tenantName)
Description copied from interface:DiagnosticsMXBeanDiagnose First Failure is enabled by default. This operation disables Diagnose First Failure by the given tenant name.- Specified by:
disableDiagnoseFirstFailureByTenantNamein interfaceDiagnosticsMXBean
-
enableDiagnoseFirstFailureByLoggerName
public void enableDiagnoseFirstFailureByLoggerName(java.lang.String loggerName)
Description copied from interface:DiagnosticsMXBeanDiagnose First Failure is enabled by default. This operation enables Diagnose First Failure by the given logger name, if it was disabled.- Specified by:
enableDiagnoseFirstFailureByLoggerNamein interfaceDiagnosticsMXBean
-
disableDiagnoseFirstFailureByLoggerName
public void disableDiagnoseFirstFailureByLoggerName(java.lang.String loggerName)
Description copied from interface:DiagnosticsMXBeanDiagnose First Failure is enabled by default. This operation disables Diagnose First Failure by the given logger name.- Specified by:
disableDiagnoseFirstFailureByLoggerNamein interfaceDiagnosticsMXBean
-
enableDiagnoseFirstFailure
public void enableDiagnoseFirstFailure()
Description copied from interface:DiagnosticsMXBeanDiagnose First Failure is enabled by default. This operation enables Diagnose First Failure, if it was disabled.- Specified by:
enableDiagnoseFirstFailurein interfaceDiagnosticsMXBean
-
disableDiagnoseFirstFailure
public void disableDiagnoseFirstFailure()
Description copied from interface:DiagnosticsMXBeanDiagnose First Failure is enabled by default. This operation disables Diagnose First Failure.- Specified by:
disableDiagnoseFirstFailurein interfaceDiagnosticsMXBean
-
enableLoggingByConnectionIdPrefix
public void enableLoggingByConnectionIdPrefix(java.lang.String connectionIdPrefix)
Description copied from interface:DiagnosticsMXBeanLogging is disabled by default. This operation enables logging by the given connection id prefix.- Specified by:
enableLoggingByConnectionIdPrefixin interfaceDiagnosticsMXBean
-
disableLoggingByConnectionIdPrefix
public void disableLoggingByConnectionIdPrefix(java.lang.String connectionIdPrefix)
Description copied from interface:DiagnosticsMXBeanLogging is disabled by default. This operation disables logging by the given connection id prefix if it was enabled.- Specified by:
disableLoggingByConnectionIdPrefixin interfaceDiagnosticsMXBean
-
enableLoggingByTenantName
public void enableLoggingByTenantName(java.lang.String tenantName)
Description copied from interface:DiagnosticsMXBeanLogging is disabled by default. This operation enables logging by the given tenant name.- Specified by:
enableLoggingByTenantNamein interfaceDiagnosticsMXBean
-
disableLoggingByTenantName
public void disableLoggingByTenantName(java.lang.String tenantName)
Description copied from interface:DiagnosticsMXBeanLogging is disabled by default. This operation disables logging by the given tenant name if it was enabled.- Specified by:
disableLoggingByTenantNamein interfaceDiagnosticsMXBean
-
enableLoggingByLoggerName
public void enableLoggingByLoggerName(java.lang.String loggerName)
Description copied from interface:DiagnosticsMXBeanLogging is disabled by default. This operation enables logging by the given logger name.- Specified by:
enableLoggingByLoggerNamein interfaceDiagnosticsMXBean
-
disableLoggingByLoggerName
public void disableLoggingByLoggerName(java.lang.String loggerName)
Description copied from interface:DiagnosticsMXBeanLogging is disabled by default. This operation disables logging by the given logger name if it was enabled.- Specified by:
disableLoggingByLoggerNamein interfaceDiagnosticsMXBean
-
enableLogging
public void enableLogging()
Description copied from interface:DiagnosticsMXBeanLogging is disabled by default. This operation enables logging.- Specified by:
enableLoggingin interfaceDiagnosticsMXBean
-
disableLogging
public void disableLogging()
Description copied from interface:DiagnosticsMXBeanLogging is disabled by default. This operation disables logging if it was enabled.- Specified by:
disableLoggingin interfaceDiagnosticsMXBean
-
isLoggingEnabled
public boolean isLoggingEnabled()
Description copied from interface:DiagnosticsMXBeanAll Oracle JDBC logging code is controlled by this boolean attribute. Default is false. If turned on, log messages will be controlled by java.util.logging Levels and Filters. If turned off, no log messages will be produced.- Specified by:
isLoggingEnabledin interfaceDiagnosticsMXBean
-
enableSensitiveDiagnosticsByConnectionIdPrefix
public void enableSensitiveDiagnosticsByConnectionIdPrefix(java.lang.String connectionIdPrefix)
Description copied from interface:DiagnosticsMXBeanSensitive diagnostics is disabled by default. This operation enables sensitive diagnostics by the given connection id prefix.- Specified by:
enableSensitiveDiagnosticsByConnectionIdPrefixin interfaceDiagnosticsMXBean
-
disableSensitiveDiagnosticsByConnectionIdPrefix
public void disableSensitiveDiagnosticsByConnectionIdPrefix(java.lang.String connectionIdPrefix)
Description copied from interface:DiagnosticsMXBeanSensitive diagnostics is disabled by default. This operation disables sensitive diagnostics by the given connection id prefix if it was enabled.- Specified by:
disableSensitiveDiagnosticsByConnectionIdPrefixin interfaceDiagnosticsMXBean
-
enableSensitiveDiagnosticsByTenantName
public void enableSensitiveDiagnosticsByTenantName(java.lang.String tenantName)
Description copied from interface:DiagnosticsMXBeanSensitive diagnostics is disabled by default. This operation enables sensitive diagnostics by the given tenant name.- Specified by:
enableSensitiveDiagnosticsByTenantNamein interfaceDiagnosticsMXBean
-
disableSensitiveDiagnosticsByTenantName
public void disableSensitiveDiagnosticsByTenantName(java.lang.String tenantName)
Description copied from interface:DiagnosticsMXBeanSensitive diagnostics is disabled by default. This operation disables sensitive diagnostics by the given tenant name if it was enabled.- Specified by:
disableSensitiveDiagnosticsByTenantNamein interfaceDiagnosticsMXBean
-
enableSensitiveDiagnosticsByLoggerName
public void enableSensitiveDiagnosticsByLoggerName(java.lang.String loggerName)
Description copied from interface:DiagnosticsMXBeanSensitive diagnostics is disabled by default. This operation enables sensitive diagnostics by the given logger name.- Specified by:
enableSensitiveDiagnosticsByLoggerNamein interfaceDiagnosticsMXBean
-
disableSensitiveDiagnosticsByLoggerName
public void disableSensitiveDiagnosticsByLoggerName(java.lang.String loggerName)
Description copied from interface:DiagnosticsMXBeanSensitive diagnostics is disabled by default. This operation disables sensitive diagnostics by the given logger name if it was enabled.- Specified by:
disableSensitiveDiagnosticsByLoggerNamein interfaceDiagnosticsMXBean
-
enableSensitiveDiagnostics
public void enableSensitiveDiagnostics()
Description copied from interface:DiagnosticsMXBeanSensitive diagnostics is disabled by default. This operation enables sensitive diagnostics.- Specified by:
enableSensitiveDiagnosticsin interfaceDiagnosticsMXBean
-
disableSensitiveDiagnostics
public void disableSensitiveDiagnostics()
Description copied from interface:DiagnosticsMXBeanSensitive diagnostics is disabled by default. This operation disables sensitive diagnostics if it was enabled.- Specified by:
disableSensitiveDiagnosticsin interfaceDiagnosticsMXBean
-
updateDiagnosticLevelByConnectionIdPrefix
public void updateDiagnosticLevelByConnectionIdPrefix(java.lang.String connectionIdPrefix, java.lang.String loggingLevel)Description copied from interface:DiagnosticsMXBeanUpdate the diagnostic level by the given connection id prefix. The argument string may consist of either a level name or an integer value. For example: "SEVERE" "1000"- Specified by:
updateDiagnosticLevelByConnectionIdPrefixin interfaceDiagnosticsMXBean
-
updateDiagnosticLevelByTenantName
public void updateDiagnosticLevelByTenantName(java.lang.String tenantName, java.lang.String loggingLevel)Description copied from interface:DiagnosticsMXBeanUpdate the diagnostic level by the given tenant name. The argument string may consist of either a level name or an integer value. For example: "SEVERE" "1000"- Specified by:
updateDiagnosticLevelByTenantNamein interfaceDiagnosticsMXBean
-
updateDiagnosticLevelByLoggerName
public void updateDiagnosticLevelByLoggerName(java.lang.String loggerName, java.lang.String loggingLevel)Description copied from interface:DiagnosticsMXBeanUpdate the diagnostic level by the given logger name. The argument string may consist of either a level name or an integer value. For example: "SEVERE" "1000"- Specified by:
updateDiagnosticLevelByLoggerNamein interfaceDiagnosticsMXBean
-
updateDiagnosticLevel
public void updateDiagnosticLevel(java.lang.String loggingLevel)
Description copied from interface:DiagnosticsMXBeanUpdate the diagnostic level. The argument string may consist of either a level name or an integer value. For example: "SEVERE" "1000"- Specified by:
updateDiagnosticLevelin interfaceDiagnosticsMXBean
-
updateBufferSizeByConnectionIdPrefix
public void updateBufferSizeByConnectionIdPrefix(java.lang.String connectionIdPrefix, java.lang.Integer bufferSize)Description copied from interface:DiagnosticsMXBeanUpdate in-memory Diagnose First Failure buffer size by the given connection id prefix.- Specified by:
updateBufferSizeByConnectionIdPrefixin interfaceDiagnosticsMXBean
-
updateBufferSizeByTenantName
public void updateBufferSizeByTenantName(java.lang.String tenantName, java.lang.Integer bufferSize)Description copied from interface:DiagnosticsMXBeanUpdate the in-memory buffer size of Diagnose First Failure by the given tenant name.- Specified by:
updateBufferSizeByTenantNamein interfaceDiagnosticsMXBean
-
updateBufferSizeByLoggerName
public void updateBufferSizeByLoggerName(java.lang.String loggerName, java.lang.Integer bufferSize)Description copied from interface:DiagnosticsMXBeanUpdate the in-memory buffer size of Diagnose First Failure by the given logger name.- Specified by:
updateBufferSizeByLoggerNamein interfaceDiagnosticsMXBean
-
updateBufferSize
public void updateBufferSize(java.lang.Integer bufferSize)
Description copied from interface:DiagnosticsMXBeanUpdate the in-memory buffer size of Diagnose First Failure.- Specified by:
updateBufferSizein interfaceDiagnosticsMXBean
-
readLoggingConfigFile
public void readLoggingConfigFile(java.lang.String configFile)
Description copied from interface:DiagnosticsMXBeanReinitialize the logging properties and reread the logging configuration from the given file, which should be in java.util.Properties format.- Specified by:
readLoggingConfigFilein interfaceDiagnosticsMXBean
-
addErrorCodeToWatchList
public void addErrorCodeToWatchList(java.lang.String errorCode)
Description copied from interface:DiagnosticsMXBeanAdd the error code to be watched for next occurrence in the format ORA-XXXXX. The JDBC driver writes the diagnostics of first failure in the configured log handler when an error in the watch list occurs.- Specified by:
addErrorCodeToWatchListin interfaceDiagnosticsMXBean- Parameters:
errorCode- An error code in the format ORA-XXXXX.
-
removeErrorCodeFromWatchList
public void removeErrorCodeFromWatchList(java.lang.String errorCode)
Description copied from interface:DiagnosticsMXBeanRemove the given error code from the watch list. The error code should be in the format ORA-XXXXX.- Specified by:
removeErrorCodeFromWatchListin interfaceDiagnosticsMXBean- Parameters:
errorCode- An error code in the format ORA-XXXXX.
-
showErrorCodesWatchList
public java.lang.String showErrorCodesWatchList()
Description copied from interface:DiagnosticsMXBeanShow the error codes being watched.- Specified by:
showErrorCodesWatchListin interfaceDiagnosticsMXBean- Returns:
- the set of error codes being watched are returned as String.
-
resetErrorCodeWatchList
public void resetErrorCodeWatchList()
Description copied from interface:DiagnosticsMXBeanConfigure the watch list with the default error codes. To get the list of error codes being watched, invokeDiagnosticsMXBean.showErrorCodesWatchList().- Specified by:
resetErrorCodeWatchListin interfaceDiagnosticsMXBean
-
dumpDiagnoseFirstFailure
public void dumpDiagnoseFirstFailure()
Description copied from interface:DiagnosticsMXBeanDump the diagnostics of first failure to the target handler.- Specified by:
dumpDiagnoseFirstFailurein interfaceDiagnosticsMXBean
-
dumpDiagnoseFirstFailureWhenFutureExceptionContains
public void dumpDiagnoseFirstFailureWhenFutureExceptionContains(java.lang.String commaSeparatedKeywords)
Description copied from interface:DiagnosticsMXBeanDump the diagnostics of first failure when the future exception, if any, contains any one of the keywords given. The example keywords are "reset", "violation".- Specified by:
dumpDiagnoseFirstFailureWhenFutureExceptionContainsin interfaceDiagnosticsMXBean- Parameters:
commaSeparatedKeywords- The keywords as comma separated values.
-
showExceptionKeywords
public java.lang.String showExceptionKeywords()
Description copied from interface:DiagnosticsMXBeanShow the keywords that were previously added by invoking operationDiagnosticsMXBean.dumpDiagnoseFirstFailureWhenFutureExceptionContains(String).- Specified by:
showExceptionKeywordsin interfaceDiagnosticsMXBean- Returns:
- the keywords
-
showRecentOperations
public java.lang.String showRecentOperations()
Description copied from interface:DiagnosticsMXBeanThe most recent operations performed by the user on this MBean.- Specified by:
showRecentOperationsin interfaceDiagnosticsMXBean- Returns:
- description of operations
-
clearExceptionKeywords
public void clearExceptionKeywords()
Description copied from interface:DiagnosticsMXBeanClear the keywords that were previously added by invoking operationDiagnosticsMXBean.dumpDiagnoseFirstFailureWhenFutureExceptionContains(String).- Specified by:
clearExceptionKeywordsin interfaceDiagnosticsMXBean
-
enableWriteLogsToDiagnoseFirstFailure
public void enableWriteLogsToDiagnoseFirstFailure(java.lang.Boolean enabled)
Description copied from interface:DiagnosticsMXBeanWrite logs to in-memory diagnostic buffer.- Specified by:
enableWriteLogsToDiagnoseFirstFailurein interfaceDiagnosticsMXBean
-
isWriteLogsToDiagnoseFirstFailure
public boolean isWriteLogsToDiagnoseFirstFailure()
Description copied from interface:DiagnosticsMXBeanBy default, logs are written to log handler. This operation can enable / disable logs writes to in-memory diagnostic buffer.- Specified by:
isWriteLogsToDiagnoseFirstFailurein interfaceDiagnosticsMXBean
-
enableMetrics
public void enableMetrics()
Description copied from interface:DiagnosticsMXBeanIf enabled, the JDBC driver collects metrics of events. E.g., metrics of events occur during establishing a connection to the database.- Specified by:
enableMetricsin interfaceDiagnosticsMXBean
-
disableMetrics
public void disableMetrics()
Description copied from interface:DiagnosticsMXBeanIf disabled, the JDBC driver does not collect metrics of events.- Specified by:
disableMetricsin interfaceDiagnosticsMXBean
-
showMetrics
public java.lang.String showMetrics()
Description copied from interface:DiagnosticsMXBeanShow the captured timing metrics. Capturing metrics is disabled by default. To enable, callDiagnosticsMXBean.enableMetrics().- Specified by:
showMetricsin interfaceDiagnosticsMXBean- Returns:
- the captured metrics report
-
clearMetrics
public void clearMetrics()
Description copied from interface:DiagnosticsMXBeanClear the metrics of events captured by the JDBC driver during establishing a connection to database.- Specified by:
clearMetricsin interfaceDiagnosticsMXBean
-
isMetricsEnabled
public boolean isMetricsEnabled()
Description copied from interface:DiagnosticsMXBeanAll metrics of events captured by the JDBC driver is controlled by this boolean attribute. Default is false. If enabled, the metrics of events are captured by the driver until disabled.- Specified by:
isMetricsEnabledin interfaceDiagnosticsMXBean
-
getMBeanInfo
public javax.management.MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfoin interfacejavax.management.DynamicMBean- Overrides:
getMBeanInfoin classjavax.management.StandardMBean
-
-