Interface IClockManagerSPI

  • All Superinterfaces:
    IClockManager
    All Known Implementing Classes:
    ClockManager

    public interface IClockManagerSPI
    extends IClockManager
    Service provider interface for clock manager.
    Since:
    10.1.0
    Version:
    $Revision: 19963 $ $Date: 2017-02-21 19:28:29 -0300 (Tue, 21 Feb 2017) $
    • Method Detail

      • getRunningClocks

        Collection<ClockConfig> getRunningClocks​(long timeSpent,
                                                 ITransaction transaction)
                                          throws PortalException
        Get clocks running longer than a specific time in milliseconds.
        Parameters:
        timeSpent - minimum time in milliseconds that the clock has been running.
        transaction - transaction for persistence access.
        Returns:
        the clocks, or an empty collection if none matches the criteria.
        Throws:
        PortalException
        Since:
        10.1.0
      • getRunningClocksInHalfMaxRunTime

        Collection<ClockConfig> getRunningClocksInHalfMaxRunTime​(ITransaction transaction)
                                                          throws PortalException
        Get clocks running longer than half of its configured maximum run time.
        Parameters:
        transaction - transaction for persistence access.
        Returns:
        the clocks, or an empty collection if none matches the criteria.
        Throws:
        PortalException
        Since:
        10.1.0