Interface IJdbcProviderApi
-
- All Superinterfaces:
org.clazzes.util.sched.api.IJobStatusService
- All Known Implementing Classes:
JdbcProviderApiImpl
public interface IJdbcProviderApi extends org.clazzes.util.sched.api.IJobStatusService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Boolean>listDataSources()UUIDrestartDataSource(String datasourceName)Restart a configured datasource.UUIDtestAllDataSources()Test all configured datasources.UUIDtestConnection(String url, Map<String,String> additionalProperties)Test a not yet configured JDBC connection.UUIDtestDataSource(String datasourceName)Test an already configured datasource.
-
-
-
Method Detail
-
testConnection
UUID testConnection(String url, Map<String,String> additionalProperties)
Test a not yet configured JDBC connection.- Parameters:
url- The JDBC URL to test.additionalProperties- Any additional properties likeusername,password, ... as mentioned in the description ofJdbcProvider.- Returns:
- An UUID of a job to query with
IJobStatusService.getJobStatus(UUID). The job will have a result type ofBoolean.
-
testDataSource
UUID testDataSource(String datasourceName)
Test an already configured datasource.- Parameters:
datasourceName- The name of the configured datasource to test.- Returns:
- An UUID of a job to query with
IJobStatusService.getJobStatus(UUID). The job will have a result type ofBoolean.
-
testAllDataSources
UUID testAllDataSources()
Test all configured datasources.- Returns:
- An UUID of a job to query with
IJobStatusService.getJobStatus(UUID). The job will have a result type ofIntegerrepresenting the number of successfully tested datasources.
-
restartDataSource
UUID restartDataSource(String datasourceName)
Restart a configured datasource.- Parameters:
datasourceName- The name of the configured datasource to restart.- Returns:
- An UUID of a job to query with
IJobStatusService.getJobStatus(UUID). The job will have a result type ofBoolean.
-
-