Class ServiceUtils

    • Method Detail

      • storeTimestamps

        public static void storeTimestamps​(sailpoint.api.SailPointContext context,
                                           sailpoint.object.ServiceDefinition target,
                                           long lastStart)
                                    throws sailpoint.tools.GeneralException
        Stores the last start and stop timestamps on the given ServiceDefinition.

        This is most useful with a single-server service, implemented using either SingleServerService or CommonPluginUtils.singleServerExecute(SailPointContext, ServiceDefinition, CommonPluginUtils.SingleServerExecute).

        The time of this method’s invocation will be used as the ‘last stop’ timestamp.

        Parameters:
        context - The context of this service
        target - The target of this service
        lastStart - The last start timestamp of this service
        Throws:
        sailpoint.tools.GeneralException - when something goes wrong persisting the ServiceDefinition change