|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.firebirdsql.management.FBServiceManager
org.firebirdsql.management.FBTraceManager
public class FBTraceManager
Implements the Trace/Audit API available new in Firebird 2.5
Field Summary |
---|
Fields inherited from class org.firebirdsql.management.FBServiceManager |
---|
BUFFER_SIZE |
Constructor Summary | |
---|---|
FBTraceManager()
Create a new instance of FBTraceManager based on
the default GDSType. |
|
FBTraceManager(org.firebirdsql.gds.impl.GDSType gdsType)
Create a new instance of FBTraceManager based on
a given GDSType. |
|
FBTraceManager(java.lang.String gdsType)
Create a new instance of FBTraceManager based on
a given GDSType. |
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)
Loads a configuration from the specified fileName using the default character set |
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 class org.firebirdsql.management.FBServiceManager |
---|
attachServiceManager, createRequestBuffer, detachServiceManager, executeServicesOperation, getDatabase, getGds, getHost, getLogger, getPassword, getPort, getServiceName, getUser, queueService, setDatabase, setHost, setLogger, setPassword, setPort, setUser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.firebirdsql.management.ServiceManager |
---|
getDatabase, getHost, getLogger, getPassword, getPort, getUser, setDatabase, setHost, setLogger, setPassword, setPort, setUser |
Constructor Detail |
---|
public FBTraceManager()
FBTraceManager
based on
the default GDSType.
public FBTraceManager(java.lang.String gdsType)
FBTraceManager
based on
a given GDSType.
gdsType
- type must be PURE_JAVA, EMBEDDED, or NATIVEpublic FBTraceManager(org.firebirdsql.gds.impl.GDSType gdsType)
FBTraceManager
based on
a given GDSType.
gdsType
- type must be PURE_JAVA, EMBEDDED, or NATIVEMethod Detail |
---|
public void startTraceSession(java.lang.String traceSessionName, java.lang.String configuration) throws java.sql.SQLException
startTraceSession
in interface TraceManager
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
public void stopTraceSession(int traceSessionId) throws java.sql.SQLException
stopTraceSession
in interface TraceManager
traceSessionId
- The trace session ID
java.sql.SQLException
public void suspendTraceSession(int traceSessionId) throws java.sql.SQLException
suspendTraceSession
in interface TraceManager
traceSessionId
- The trace session ID
java.sql.SQLException
public void resumeTraceSession(int traceSessionId) throws java.sql.SQLException
resumeTraceSession
in interface TraceManager
traceSessionId
- The trace session ID
java.sql.SQLException
public void listTraceSessions() throws java.sql.SQLException
listTraceSessions
in interface TraceManager
java.sql.SQLException
public 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.
getSessionId
in interface TraceManager
sessionName
- Name of the session
public java.lang.String loadConfigurationFromFile(java.lang.String fileName) throws java.io.IOException
TraceManager
loadConfigurationFromFile
in interface TraceManager
fileName
- File name
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |