Class SingleServerService

  • All Implemented Interfaces:
    BaseServiceImplementation, sailpoint.plugin.PluginContext
    Direct Known Subclasses:
    SmokeTestSingleServerService

    public abstract class SingleServerService
    extends BaseCommonService
    implements sailpoint.plugin.PluginContext
    Abstract class to easily implement a Service that will only run on the alphabetically lowest Server name.

    This allows background execution of a frequent task more reliably than the scheduler, but still prevents two instances from clashing when more than one server runs the behavior at once.

    If the alphabetically lowest Server becomes deactivated, the next lowest will be selected on subsequent runs.

    Extensions should implement BaseServiceImplementation.implementation(SailPointContext).

    • Constructor Detail

      • SingleServerService

        public SingleServerService()
        Constructs a new service object, providing the single-service invoker as an execution model.
    • Method Detail

      • getConnection

        public Connection getConnection()
                                 throws sailpoint.tools.GeneralException
        Required by the PluginContext interface.

        Implementing this here so that we don’t have to implement it in every sub-class of this class.

        Specified by:
        getConnection in interface sailpoint.plugin.PluginContext
        Returns:
        The plugin database connection
        Throws:
        sailpoint.tools.GeneralException - if a DB connection failure occurs