use of org.firebirdsql.gds.ng.FbService in project jaybird by FirebirdSQL.
the class FBTraceManager method suspendTraceSession.
/**
* Suspends a trace session with the given trace session ID
*
* @param traceSessionId
* The trace session ID
* @throws SQLException
*/
public void suspendTraceSession(int traceSessionId) throws SQLException {
try (FbService service = attachServiceManager()) {
service.startServiceAction(getTraceSPB(service, isc_action_svc_trace_suspend, traceSessionId));
queueService(service);
} catch (IOException ioe) {
throw new SQLException(ioe);
}
}
use of org.firebirdsql.gds.ng.FbService in project jaybird by FirebirdSQL.
the class FBUserManager method userAction.
/**
* Perform the specified action.
*
* @param action
* @param user
* @throws SQLException
* @throws IOException
*/
private void userAction(int action, User user) throws SQLException, IOException {
try (FbService service = attachServiceManager()) {
ServiceRequestBuffer srb = getUserSRB(service, action, user);
setSecurityDatabaseArgument(srb);
executeServicesOperation(service, srb);
}
}
use of org.firebirdsql.gds.ng.FbService in project jaybird by FirebirdSQL.
the class TestJaybirdBlobBackupProblem method attachToServiceManager.
private FbService attachToServiceManager() throws SQLException {
FbService service = dbFactory.serviceConnect(createServiceProperties());
service.attach();
assertTrue("Handle should be attached when isc_service_attach returns normally.", service.isAttached());
return service;
}
use of org.firebirdsql.gds.ng.FbService in project jaybird by FirebirdSQL.
the class FBStatisticsManager method getHeaderPage.
public void getHeaderPage() throws SQLException {
try (FbService service = attachServiceManager()) {
ServiceRequestBuffer srb = createStatsSRB(service, isc_spb_sts_hdr_pages);
executeServicesOperation(service, srb);
}
}
use of org.firebirdsql.gds.ng.FbService in project jaybird by FirebirdSQL.
the class FBStatisticsManager method getDatabaseStatistics.
public void getDatabaseStatistics() throws SQLException {
try (FbService service = attachServiceManager()) {
ServiceRequestBuffer srb = createDefaultStatsSRB(service);
executeServicesOperation(service, srb);
}
}
Aggregations