Interface DatasourceInitializer

All Known Implementing Classes:
DatasourceInitializerImpl

public interface DatasourceInitializer
Author:
Laurent Cohen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(DataSource datasource)
    Close the specified datasource and release the resources it is using.
    Create a datasource from the specified configuration proeprties.
  • Method Details

    • createDataSource

      DataSource createDataSource(TypedProperties props, String configId)
      Create a datasource from the specified configuration proeprties. The configId is used to build a prefix for the relevant property names, in the format jppf.datasource.<configId>.<property_name> = <value>. If configId is null, then no prefix is applied.
      Parameters:
      props - the datasource properties.
      configId - the identifier of the datasource in the configuration.
      Returns:
      a DataSource instance.
    • close

      void close(DataSource datasource)
      Close the specified datasource and release the resources it is using.
      Parameters:
      datasource - the datasource to close.