|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TraceManager
Implements the Trace/Audit API availabe new in Firebird 2.5. This functionality includes:
Method Summary | |
---|---|
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 |
Methods inherited from interface org.firebirdsql.management.ServiceManager |
---|
getDatabase, getHost, getLogger, getPassword, getPort, getUser, setDatabase, setHost, setLogger, setPassword, setPort, setUser |
Method Detail |
---|
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 installation
java.sql.SQLException
void stopTraceSession(int traceSessionId) throws java.sql.SQLException
traceSessionId
- The trace session ID
java.sql.SQLException
void suspendTraceSession(int traceSessionId) throws java.sql.SQLException
traceSessionId
- The trace session ID
java.sql.SQLException
void resumeTraceSession(int traceSessionId) throws java.sql.SQLException
traceSessionId
- The trace session ID
java.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 name
java.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 session
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |