public interface TraceManager extends ServiceManager
This functionality includes:
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getSessionId(java.lang.String sessionName)
Gets the sessionId for the given name.
|
void |
listTraceSessions()
List all currently registered trace sessions
|
java.lang.String |
loadConfigurationFromFile(java.lang.String fileName)
Deprecated.
We suggest you use standard Java functionality instead (eg
new String(Files.readAllBytes(Paths.get(fileName)), Charset.defaultCharset()).
This method will be removed in Jaybird 5. |
void |
resumeTraceSession(int traceSessionId)
Resumes a trace session with the given trace session ID
|
void |
startTraceSession(java.lang.String traceSessionName,
java.lang.String configuration)
Starts a trace session with an optioanl trace session name and configuration
|
void |
stopTraceSession(int traceSessionId)
Stops a trace session with the given trace session ID
|
void |
suspendTraceSession(int traceSessionId)
Suspends a trace session with the given trace session ID
|
getAuthPlugins, getCharSet, getDatabase, getDbCryptConfig, getHost, getLogger, getPassword, getPort, getServerVersion, getUser, getWireCrypt, isWireCompression, setAuthPlugins, setCharSet, setDatabase, setDbCryptConfig, setHost, setLogger, setPassword, setPort, setUser, setWireCompression, setWireCryptvoid startTraceSession(java.lang.String traceSessionName,
java.lang.String configuration)
throws java.sql.SQLException
traceSessionName - The trace session name (optional)configuration - The trace configuration. For an example, look into fbtrace.conf in the root directory of your Firebird
installationjava.sql.SQLExceptionvoid stopTraceSession(int traceSessionId)
throws java.sql.SQLException
traceSessionId - The trace session IDjava.sql.SQLExceptionvoid suspendTraceSession(int traceSessionId)
throws java.sql.SQLException
traceSessionId - The trace session IDjava.sql.SQLExceptionvoid resumeTraceSession(int traceSessionId)
throws java.sql.SQLException
traceSessionId - The trace session IDjava.sql.SQLExceptionvoid listTraceSessions()
throws java.sql.SQLException
java.sql.SQLException@Deprecated
java.lang.String loadConfigurationFromFile(java.lang.String fileName)
throws java.io.IOException
new String(Files.readAllBytes(Paths.get(fileName)), Charset.defaultCharset()).
This method will be removed in Jaybird 5.fileName - File namejava.io.IOExceptionjava.lang.Integer getSessionId(java.lang.String sessionName)
Returns null if the sessionName does not exist or hasn't been initialized yet.
If multiple sessions are started with the same name, the last one is returned.
sessionName - Name of the sessionCopyright © 2001-2023 Jaybird (Firebird JDBC/JCA) team. All rights reserved.