public void getDatabaseStatistics(int options) throws SQLException { if (options != 0 && (options | possibleStatistics) != possibleStatistics) { throw new IllegalArgumentException("options must be 0 or a " + "combination of DATA_TABLE_STATISTICS, " + "SYSTEM_TABLE_STATISTICS, INDEX_STATISTICS, or 0"); } try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = createStatsSRB(service, options); executeServicesOperation(service, srb); } }
public void getDatabaseStatistics(int options) throws SQLException { if (options != 0 && (options | possibleStatistics) != possibleStatistics) { throw new IllegalArgumentException("options must be 0 or a " + "combination of DATA_TABLE_STATISTICS, " + "SYSTEM_TABLE_STATISTICS, INDEX_STATISTICS, or 0"); } try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = createStatsSRB(service, options); executeServicesOperation(service, srb); } }
public void getTableStatistics(String[] tableNames) throws SQLException { // create space-separated list of tables StringBuilder commandLine = new StringBuilder(); for (int i = 0; i < tableNames.length; i++) { commandLine.append(tableNames[i]); if (i < tableNames.length - 1) commandLine.append(' '); } try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = createStatsSRB(service, isc_spb_sts_table); srb.addArgument(isc_spb_command_line, commandLine.toString()); executeServicesOperation(service, srb); } }
public void getTableStatistics(String[] tableNames) throws SQLException { // create space-separated list of tables StringBuilder commandLine = new StringBuilder(); for (int i = 0; i < tableNames.length; i++) { commandLine.append(tableNames[i]); if (i < tableNames.length - 1) commandLine.append(' '); } try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = createStatsSRB(service, isc_spb_sts_table); srb.addArgument(isc_spb_command_line, commandLine.toString()); executeServicesOperation(service, srb); } }
public void getDatabaseStatistics() throws SQLException { try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = createDefaultStatsSRB(service); executeServicesOperation(service, srb); } }
public void getHeaderPage() throws SQLException { try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = createStatsSRB(service, isc_spb_sts_hdr_pages); executeServicesOperation(service, srb); } }
public void getDatabaseStatistics() throws SQLException { try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = createDefaultStatsSRB(service); executeServicesOperation(service, srb); } }
public void getHeaderPage() throws SQLException { try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = createStatsSRB(service, isc_spb_sts_hdr_pages); executeServicesOperation(service, srb); } }