@MXBean
public interface DiagnosticsMXBean
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorCodeToWatchList(java.lang.String errorCode)
Add the error code to be watched for next occurrence in the
format ORA-XXXXX.
|
void |
clearExceptionKeywords()
Clear the keywords that were previously added by invoking operation
dumpDiagnoseFirstFailureWhenFutureExceptionContains(String). |
void |
clearMetrics()
Clear the metrics of events captured by the JDBC driver
during establishing a connection to database.
|
void |
disableDiagnoseFirstFailure()
Diagnose First Failure is enabled by default.
|
void |
disableDiagnoseFirstFailureByConnectionIdPrefix(java.lang.String connectionIdPrefix)
Diagnose First Failure is enabled by default.
|
void |
disableDiagnoseFirstFailureByLoggerName(java.lang.String loggerName)
Diagnose First Failure is enabled by default.
|
void |
disableDiagnoseFirstFailureByTenantName(java.lang.String tenantName)
Diagnose First Failure is enabled by default.
|
void |
disableLogging()
Logging is disabled by default.
|
void |
disableLoggingByConnectionIdPrefix(java.lang.String connectionIdPrefix)
Logging is disabled by default.
|
void |
disableLoggingByLoggerName(java.lang.String loggerName)
Logging is disabled by default.
|
void |
disableLoggingByTenantName(java.lang.String tenantName)
Logging is disabled by default.
|
void |
disableMetrics()
If disabled, the JDBC driver does not collect metrics of events.
|
void |
disableSensitiveDiagnostics()
Sensitive diagnostics is disabled by default.
|
void |
disableSensitiveDiagnosticsByConnectionIdPrefix(java.lang.String connectionIdPrefix)
Sensitive diagnostics is disabled by default.
|
void |
disableSensitiveDiagnosticsByLoggerName(java.lang.String loggerName)
Sensitive diagnostics is disabled by default.
|
void |
disableSensitiveDiagnosticsByTenantName(java.lang.String tenantName)
Sensitive diagnostics is disabled by default.
|
void |
dumpDiagnoseFirstFailure()
Dump the diagnostics of first failure to the target handler.
|
void |
dumpDiagnoseFirstFailureWhenFutureExceptionContains(java.lang.String commaSeparatedKeywords)
Dump the diagnostics of first failure when the future exception, if any, contains any one
of the keywords given.
|
void |
enableDiagnoseFirstFailure()
Diagnose First Failure is enabled by default.
|
void |
enableDiagnoseFirstFailureByConnectionIdPrefix(java.lang.String connectionIdPrefix)
Diagnose First Failure is enabled by default.
|
void |
enableDiagnoseFirstFailureByLoggerName(java.lang.String loggerName)
Diagnose First Failure is enabled by default.
|
void |
enableDiagnoseFirstFailureByTenantName(java.lang.String tenantName)
Diagnose First Failure is enabled by default.
|
void |
enableLogging()
Logging is disabled by default.
|
void |
enableLoggingByConnectionIdPrefix(java.lang.String connectionIdPrefix)
Logging is disabled by default.
|
void |
enableLoggingByLoggerName(java.lang.String loggerName)
Logging is disabled by default.
|
void |
enableLoggingByTenantName(java.lang.String tenantName)
Logging is disabled by default.
|
void |
enableMetrics()
If enabled, the JDBC driver collects metrics of events.
|
void |
enableSensitiveDiagnostics()
Sensitive diagnostics is disabled by default.
|
void |
enableSensitiveDiagnosticsByConnectionIdPrefix(java.lang.String connectionIdPrefix)
Sensitive diagnostics is disabled by default.
|
void |
enableSensitiveDiagnosticsByLoggerName(java.lang.String loggerName)
Sensitive diagnostics is disabled by default.
|
void |
enableSensitiveDiagnosticsByTenantName(java.lang.String tenantName)
Sensitive diagnostics is disabled by default.
|
void |
enableWriteLogsToDiagnoseFirstFailure(java.lang.Boolean enabled)
Write logs to in-memory diagnostic buffer.
|
boolean |
isLoggingEnabled()
All Oracle JDBC logging code is controlled by this boolean attribute.
|
boolean |
isMetricsEnabled()
All metrics of events captured by the JDBC driver is controlled by this
boolean attribute.
|
boolean |
isWriteLogsToDiagnoseFirstFailure()
By default, logs are written to log handler.
|
void |
readLoggingConfigFile(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.
|
void |
removeErrorCodeFromWatchList(java.lang.String errorCode)
Remove the given error code from the watch list.
|
void |
resetErrorCodeWatchList()
Configure the watch list with the default error codes.
|
java.lang.String |
showErrorCodesWatchList()
Show the error codes being watched.
|
java.lang.String |
showExceptionKeywords()
Show the keywords that were previously added by invoking operation
dumpDiagnoseFirstFailureWhenFutureExceptionContains(String). |
java.lang.String |
showMetrics()
Show the captured timing metrics.
|
java.lang.String |
showRecentOperations()
The most recent operations performed by the user on this MBean.
|
void |
updateBufferSize(java.lang.Integer bufferSize)
Update the in-memory buffer size of Diagnose First Failure.
|
void |
updateBufferSizeByConnectionIdPrefix(java.lang.String connectionIdPrefix,
java.lang.Integer bufferSize)
Update in-memory Diagnose First Failure buffer size by the given connection
id prefix.
|
void |
updateBufferSizeByLoggerName(java.lang.String loggerName,
java.lang.Integer bufferSize)
Update the in-memory buffer size of Diagnose First Failure by the given logger name.
|
void |
updateBufferSizeByTenantName(java.lang.String tenantName,
java.lang.Integer bufferSize)
Update the in-memory buffer size of Diagnose First Failure by the given tenant name.
|
void |
updateDiagnosticLevel(java.lang.String level)
Update the diagnostic level.
|
void |
updateDiagnosticLevelByConnectionIdPrefix(java.lang.String connectionIdPrefix,
java.lang.String level)
Update the diagnostic level by the given connection id prefix.
|
void |
updateDiagnosticLevelByLoggerName(java.lang.String loggerName,
java.lang.String level)
Update the diagnostic level by the given logger name.
|
void |
updateDiagnosticLevelByTenantName(java.lang.String tenantName,
java.lang.String level)
Update the diagnostic level by the given tenant name.
|
void enableDiagnoseFirstFailureByConnectionIdPrefix(java.lang.String connectionIdPrefix)
connectionIdPrefix - void disableDiagnoseFirstFailureByConnectionIdPrefix(java.lang.String connectionIdPrefix)
connectionIdPrefix - void enableDiagnoseFirstFailureByTenantName(java.lang.String tenantName)
tenantName - void disableDiagnoseFirstFailureByTenantName(java.lang.String tenantName)
tenantName - void enableDiagnoseFirstFailureByLoggerName(java.lang.String loggerName)
loggerName - void disableDiagnoseFirstFailureByLoggerName(java.lang.String loggerName)
loggerName - void enableDiagnoseFirstFailure()
void disableDiagnoseFirstFailure()
void enableLoggingByConnectionIdPrefix(java.lang.String connectionIdPrefix)
connectionIdPrefix - void disableLoggingByConnectionIdPrefix(java.lang.String connectionIdPrefix)
connectionIdPrefix - void enableLoggingByTenantName(java.lang.String tenantName)
tenantName - void disableLoggingByTenantName(java.lang.String tenantName)
tenantName - void enableLoggingByLoggerName(java.lang.String loggerName)
loggerName - void disableLoggingByLoggerName(java.lang.String loggerName)
loggerName - void enableLogging()
void disableLogging()
boolean isLoggingEnabled()
void enableSensitiveDiagnosticsByConnectionIdPrefix(java.lang.String connectionIdPrefix)
connectionIdPrefix - void disableSensitiveDiagnosticsByConnectionIdPrefix(java.lang.String connectionIdPrefix)
connectionIdPrefix - void enableSensitiveDiagnosticsByTenantName(java.lang.String tenantName)
tenantName - void disableSensitiveDiagnosticsByTenantName(java.lang.String tenantName)
tenantName - void enableSensitiveDiagnosticsByLoggerName(java.lang.String loggerName)
loggerName - void disableSensitiveDiagnosticsByLoggerName(java.lang.String loggerName)
loggerName - void enableSensitiveDiagnostics()
void disableSensitiveDiagnostics()
void updateDiagnosticLevelByConnectionIdPrefix(java.lang.String connectionIdPrefix,
java.lang.String level)
connectionIdPrefix - level - void updateDiagnosticLevelByTenantName(java.lang.String tenantName,
java.lang.String level)
connectionIdPrefix - level - void updateDiagnosticLevelByLoggerName(java.lang.String loggerName,
java.lang.String level)
connectionIdPrefix - level - void updateDiagnosticLevel(java.lang.String level)
connectionIdPrefix - level - void updateBufferSizeByConnectionIdPrefix(java.lang.String connectionIdPrefix,
java.lang.Integer bufferSize)
connectionIdPrefix - bufferSize - void updateBufferSizeByTenantName(java.lang.String tenantName,
java.lang.Integer bufferSize)
tenantName - bufferSize - void updateBufferSizeByLoggerName(java.lang.String loggerName,
java.lang.Integer bufferSize)
loggerName - bufferSize - void updateBufferSize(java.lang.Integer bufferSize)
bufferSize - void readLoggingConfigFile(java.lang.String configFile)
configFile - void addErrorCodeToWatchList(java.lang.String errorCode)
errorCode - An error code in the format ORA-XXXXX.void removeErrorCodeFromWatchList(java.lang.String errorCode)
errorCode - An error code in the format ORA-XXXXX.java.lang.String showErrorCodesWatchList()
void resetErrorCodeWatchList()
showErrorCodesWatchList().void dumpDiagnoseFirstFailure()
void dumpDiagnoseFirstFailureWhenFutureExceptionContains(java.lang.String commaSeparatedKeywords)
commaSeparatedKeywords - The keywords as comma separated values.java.lang.String showExceptionKeywords()
dumpDiagnoseFirstFailureWhenFutureExceptionContains(String).java.lang.String showRecentOperations()
void clearExceptionKeywords()
dumpDiagnoseFirstFailureWhenFutureExceptionContains(String).void enableWriteLogsToDiagnoseFirstFailure(java.lang.Boolean enabled)
enabled - boolean isWriteLogsToDiagnoseFirstFailure()
void enableMetrics()
void disableMetrics()
java.lang.String showMetrics()
enableMetrics().void clearMetrics()
boolean isMetricsEnabled()