public interface TraceManager extends ServiceManager
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 4. |
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
|
getDatabase, getHost, getLogger, getPassword, getPort, getUser, setDatabase, setHost, setLogger, setPassword, setPort, setUser
void 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.SQLException
void stopTraceSession(int traceSessionId) throws java.sql.SQLException
traceSessionId
- The trace session IDjava.sql.SQLException
void suspendTraceSession(int traceSessionId) throws java.sql.SQLException
traceSessionId
- The trace session IDjava.sql.SQLException
void resumeTraceSession(int traceSessionId) throws java.sql.SQLException
traceSessionId
- The trace session IDjava.sql.SQLException
void listTraceSessions() throws java.sql.SQLException
java.sql.SQLException
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 4.fileName
- File namejava.io.IOException
java.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-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.