Package lumis.portal.clock
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<ClockConfig>
getDisabledClocks(ITransaction transaction)
Get disabled clocks.Collection<ClockConfig>
getRunningClocks(long timeSpent, ITransaction transaction)
Get clocks running longer than a specific time in milliseconds.Collection<ClockConfig>
getRunningClocksInHalfMaxRunTime(ITransaction transaction)
Get clocks running longer than half of its configured maximum run time.-
Methods inherited from interface lumis.portal.clock.IClockManager
add, addOrUpdate, checkSchedule, delete, disable, enable, executeSchedule, executeSchedule, get, getClockIdsByServiceId, isPortalClockRunning, setRunning, update
-
-
-
-
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
-
getDisabledClocks
Collection<ClockConfig> getDisabledClocks(ITransaction transaction) throws PortalException
Get disabled clocks.- Returns:
- the disabled clocks, or an empty collection if all are enabled.
- Throws:
PortalException
- Since:
- 10.1.0
-
-