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$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<ClockConfig>
getDisabledClocks(ITransaction transaction)
Get disabled clocks.java.util.Collection<ClockConfig>
getRunningClocks(long timeSpent, ITransaction transaction)
Get clocks running longer than a specific time in milliseconds.java.util.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
java.util.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
java.util.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
java.util.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
-
-