Class BaseCommonService

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseCommonService()
      Base common plugin service constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterExecution​(sailpoint.api.SailPointContext context)
      Hook to execute after execution of the service implementation.
      void beforeExecution​(sailpoint.api.SailPointContext context)
      Hook to execute before execution of the service implementation.
      void execute​(sailpoint.api.SailPointContext context)
      The main entry point of the service
      protected long getElapsedRuntimeMillis()
      Returns the elapsed runtime of this service, in milliseconds.
      void incrementExecutions()
      Increments the execution count and sets the executed-once flag to true
      • 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
    • Constructor Detail

      • BaseCommonService

        protected BaseCommonService()
        Base common plugin service constructor
    • Method Detail

      • beforeExecution

        public void beforeExecution​(sailpoint.api.SailPointContext context)
                             throws sailpoint.tools.GeneralException
        Description copied from interface: BaseServiceImplementation
        Hook to execute before execution of the service implementation.

        If you override this, be sure to invoke super.afterExecution() so that the default behaviors still occur.

        Specified by:
        beforeExecution in interface BaseServiceImplementation
        Parameters:
        context - The IIQ context
        Throws:
        sailpoint.tools.GeneralException - if anything goes wrong
        See Also:
        (SailPointContext)
      • execute

        public final void execute​(sailpoint.api.SailPointContext context)
                           throws sailpoint.tools.GeneralException
        The main entry point of the service
        Specified by:
        execute in interface BaseServiceImplementation
        Overrides:
        execute in class sailpoint.server.Service
        Parameters:
        context - The IIQ context for this service run
        Throws:
        sailpoint.tools.GeneralException - if the service execution failed
        See Also:
        Service.execute(SailPointContext)
      • getElapsedRuntimeMillis

        protected long getElapsedRuntimeMillis()
        Returns the elapsed runtime of this service, in milliseconds.

        Services should use this method to stop after a certain timeout period has been reached to avoid bogging down the Servicer.

        Returns:
        The elapsed runtime of this service, in milliseconds