Class SingleServerService
- java.lang.Object
-
- sailpoint.server.Service
-
- com.identityworksllc.iiq.common.service.BaseCommonService
-
- com.identityworksllc.iiq.common.plugin.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)
.
-
-
Field Summary
-
Fields inherited from class com.identityworksllc.iiq.common.service.BaseCommonService
executedOnce, executionCount, invoker
-
-
Constructor Summary
Constructors Constructor Description SingleServerService()
Constructs a new service object, providing the single-service invoker as an execution model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
getConnection()
Required by the PluginContext interface.-
Methods inherited from class com.identityworksllc.iiq.common.service.BaseCommonService
afterExecution, beforeExecution, execute, getElapsedRuntimeMillis, incrementExecutions
-
Methods inherited from class sailpoint.server.Service
configure, getDefinition, getInterval, getLastEnd, getLastExecute, getName, getServiceLock, getStatusString, handleRequest, isEnabled, isPriority, isStarted, isStarting, isStopping, ping, setDefinition, setInterval, setLastEnd, setLastExecute, setStarted, setStarting, setStopping, start, suspend, terminate, waitForStart, wake
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.identityworksllc.iiq.common.service.BaseServiceImplementation
getDefinition, implementation, skipExecutionCount
-
-
-
-
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 interfacesailpoint.plugin.PluginContext
- Returns:
- The plugin database connection
- Throws:
sailpoint.tools.GeneralException
- if a DB connection failure occurs
-
-