Interface CommonPluginUtils.SingleServerExecute
-
- Enclosing class:
- CommonPluginUtils
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface CommonPluginUtils.SingleServerExecute
The executor passed toCommonPluginUtils.singleServerExecute(SailPointContext, ServiceDefinition, SingleServerExecute)
mainly so that we can extend it with those default methods and throw an exception from run().None of the out of box functional interfaces have exception throwing.
You can use this either as a lambda or by implementing this interface in your Service class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default CommonPluginUtils.SingleServerExecute
andSaveTimestamps(sailpoint.object.ServiceDefinition target)
Deprecated.void
singleServerExecute(sailpoint.api.SailPointContext context)
The main implementation of this service
-
-
-
Method Detail
-
andSaveTimestamps
@Deprecated default CommonPluginUtils.SingleServerExecute andSaveTimestamps(sailpoint.object.ServiceDefinition target)
Deprecated.Wraps the implementation in start/stop timeout tracking code, saving those timestamps and the last run host on the ServiceDefinition after completion.This may be used for recurring services that need to know when they last ran (e.g., to do an incremental action).
- Parameters:
target
- The target ServiceDefinition to update- Returns:
- The wrapped functional interface object
-
singleServerExecute
void singleServerExecute(sailpoint.api.SailPointContext context) throws sailpoint.tools.GeneralException
The main implementation of this service- Parameters:
context
- The sailpoint context for the current run- Throws:
sailpoint.tools.GeneralException
- if any failures occur
-
-