Class JdbcProviderApiImpl

  • All Implemented Interfaces:
    IJdbcProviderApi, org.clazzes.util.sched.api.IJobStatusService

    public class JdbcProviderApiImpl
    extends org.clazzes.util.sched.impl.JobStatusServiceImpl
    implements IJdbcProviderApi
    The implementation of the external monitoring API.
    • Constructor Detail

      • JdbcProviderApiImpl

        public JdbcProviderApiImpl()
    • Method Detail

      • testConnection

        public UUID testConnection​(String url,
                                   Map<String,​String> additionalProperties)
        Description copied from interface: IJdbcProviderApi
        Test a not yet configured JDBC connection.
        Specified by:
        testConnection in interface IJdbcProviderApi
        Parameters:
        url - The JDBC URL to test.
        additionalProperties - Any additional properties like username, password, ... as mentioned in the description of JdbcProvider.
        Returns:
        An UUID of a job to query with IJobStatusService.getJobStatus(UUID). The job will have a result type of Boolean.
      • testDataSource

        public UUID testDataSource​(String datasourceName)
        Description copied from interface: IJdbcProviderApi
        Test an already configured datasource.
        Specified by:
        testDataSource in interface IJdbcProviderApi
        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 of Boolean.
      • testAllDataSources

        public UUID testAllDataSources()
        Description copied from interface: IJdbcProviderApi
        Test all configured datasources.
        Specified by:
        testAllDataSources in interface IJdbcProviderApi
        Returns:
        An UUID of a job to query with IJobStatusService.getJobStatus(UUID). The job will have a result type of Integer representing the number of successfully tested datasources.
      • restartDataSource

        public UUID restartDataSource​(String datasourceName)
        Description copied from interface: IJdbcProviderApi
        Restart a configured datasource.
        Specified by:
        restartDataSource in interface IJdbcProviderApi
        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 of Boolean.
      • setDataSourceKeeper

        public void setDataSourceKeeper​(IDataSourceKeeper dataSourceKeeper)