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()
UUID
restartDataSource(String datasourceName)
Restart a configured datasource.UUID
testAllDataSources()
Test all configured datasources.UUID
testConnection(String url, Map<String,String> additionalProperties)
Test a not yet configured JDBC connection.UUID
testDataSource(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 ofInteger
representing 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
.
-
-