@@ -129,15 +129,7 @@ private ServiceRequestBuffer getTraceSPB(FbService service, int action, String t
129129 return traceSPB ;
130130 }
131131
132- /**
133- * Starts a trace session with an optional trace session name and configuration
134- *
135- * @param traceSessionName
136- * The trace session name (optional)
137- * @param configuration
138- * The trace configuration. For an example, look into fbtrace.conf in the root directory of your
139- * Firebird installation
140- */
132+ @ Override
141133 public void startTraceSession (@ Nullable String traceSessionName , String configuration ) throws SQLException {
142134 if (isNullOrEmpty (configuration )) {
143135 throw new SQLException ("No configuration provided" );
@@ -160,64 +152,35 @@ public void startTraceSession(@Nullable String traceSessionName, String configur
160152 }
161153 }
162154
163- /**
164- * Stops a trace session with the given trace session ID
165- *
166- * @param traceSessionId
167- * The trace session ID
168- */
155+ @ Override
169156 public void stopTraceSession (int traceSessionId ) throws SQLException {
170157 try (FbService service = attachServiceManager ()) {
171158 executeServicesOperation (service , getTraceSPB (service , isc_action_svc_trace_stop , traceSessionId ));
172159 }
173160 }
174161
175- /**
176- * Suspends a trace session with the given trace session ID
177- *
178- * @param traceSessionId
179- * The trace session ID
180- */
162+ @ Override
181163 public void suspendTraceSession (int traceSessionId ) throws SQLException {
182164 try (FbService service = attachServiceManager ()) {
183165 executeServicesOperation (service , getTraceSPB (service , isc_action_svc_trace_suspend , traceSessionId ));
184166 }
185167 }
186168
187- /**
188- * Resumes a trace session with the given trace session ID
189- *
190- * @param traceSessionId
191- * The trace session ID
192- */
169+ @ Override
193170 public void resumeTraceSession (int traceSessionId ) throws SQLException {
194171 try (FbService service = attachServiceManager ()) {
195172 executeServicesOperation (service , getTraceSPB (service , isc_action_svc_trace_resume , traceSessionId ));
196173 }
197174 }
198175
199- /**
200- * List all currently registered trace sessions
201- */
176+ @ Override
202177 public void listTraceSessions () throws SQLException {
203178 try (FbService service = attachServiceManager ()) {
204179 executeServicesOperation (service , getTraceSPB (service , isc_action_svc_trace_list ));
205180 }
206181 }
207182
208- /**
209- * Gets the sessionId for the given name.
210- * <p>
211- * Returns null if the sessionName does not exist or hasn't been initialized yet.
212- * </p>
213- * <p>
214- * If multiple sessions are started with the same name, the last one is returned.
215- * </p>
216- *
217- * @param sessionName
218- * Name of the session
219- * @return Id of the session or null otherwise
220- */
183+ @ Override
221184 public @ Nullable Integer getSessionId (String sessionName ) {
222185 return traceSessions .get (sessionName );
223186 }
0 commit comments