|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.clock.ClockManager
public class ClockManager
Constructor Summary | |
---|---|
ClockManager()
|
Method Summary | |
---|---|
String |
add(SessionConfig sessionConfig,
ClockConfig clockConfig,
ITransaction transaction)
Add a clock. |
void |
addOrUpdate(SessionConfig sessionConfig,
ClockConfig clockConfig,
ITransaction transaction)
Update the configuration of a clock. |
void |
checkSchedule(SessionConfig sessionConfig,
ITransaction transaction)
This method is called at regular intervals by the framework. |
void |
delete(SessionConfig sessionConfig,
String clockId,
ITransaction transaction)
Delete a clock. |
void |
disable(SessionConfig sessionConfig,
String clockId,
ITransaction transaction)
Set the "False" value to the enable property of a clock. |
void |
enable(SessionConfig sessionConfig,
String clockId,
ITransaction transaction)
Set the "True" value to the enable property of a clock. |
void |
executeSchedule(SessionConfig sessionConfig,
ClockConfig clockConfig,
ITransaction transaction)
Execute a registered clock. |
ClockConfig |
get(SessionConfig sessionConfig,
String clockId,
ITransaction transaction)
Get the configuration of the clock. |
Collection<String> |
getClockIdsByServiceId(SessionConfig sessionConfig,
String serviceId,
ITransaction transaction)
Return the Ids of all clocks registered for the specified service. |
boolean |
isPortalClockRunning(SessionConfig sessionConfig,
ITransaction transaction)
Verify if the portal clock is running. |
boolean |
setRunning(SessionConfig sessionConfig,
String clockId,
boolean running,
ITransaction transaction)
Sets the running status of a clock in the database. |
void |
update(SessionConfig sessionConfig,
ClockConfig clockConfig,
ITransaction transaction)
Update the configuration of a clock. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClockManager()
Method Detail |
---|
public void checkSchedule(SessionConfig sessionConfig, ITransaction transaction) throws ManagerException, PortalException
checkSchedule
in interface IClockManager
ManagerException
PortalException
public void executeSchedule(SessionConfig sessionConfig, ClockConfig clockConfig, ITransaction transaction) throws ManagerException, PortalException
IClockManager
executeSchedule
in interface IClockManager
ManagerException
PortalException
public String add(SessionConfig sessionConfig, ClockConfig clockConfig, ITransaction transaction) throws ManagerException, PortalException
IClockManager
add
in interface IClockManager
ManagerException
PortalException
public void addOrUpdate(SessionConfig sessionConfig, ClockConfig clockConfig, ITransaction transaction) throws ManagerException, PortalException
IClockManager
addOrUpdate
in interface IClockManager
ManagerException
PortalException
public void update(SessionConfig sessionConfig, ClockConfig clockConfig, ITransaction transaction) throws ManagerException, PortalException
IClockManager
update
in interface IClockManager
ManagerException
PortalException
public void delete(SessionConfig sessionConfig, String clockId, ITransaction transaction) throws ManagerException, PortalException
IClockManager
delete
in interface IClockManager
ManagerException
PortalException
public void enable(SessionConfig sessionConfig, String clockId, ITransaction transaction) throws ManagerException, PortalException
IClockManager
enable
in interface IClockManager
ManagerException
PortalException
public void disable(SessionConfig sessionConfig, String clockId, ITransaction transaction) throws ManagerException, PortalException
IClockManager
disable
in interface IClockManager
ManagerException
PortalException
public ClockConfig get(SessionConfig sessionConfig, String clockId, ITransaction transaction) throws ManagerException, PortalException
IClockManager
get
in interface IClockManager
ManagerException
PortalException
public boolean isPortalClockRunning(SessionConfig sessionConfig, ITransaction transaction) throws ManagerException, PortalException
IClockManager
isPortalClockRunning
in interface IClockManager
ManagerException
PortalException
public boolean setRunning(SessionConfig sessionConfig, String clockId, boolean running, ITransaction transaction) throws ManagerException, PortalException
IClockManager
setRunning
in interface IClockManager
ManagerException
PortalException
public Collection<String> getClockIdsByServiceId(SessionConfig sessionConfig, String serviceId, ITransaction transaction) throws ManagerException, PortalException
IClockManager
getClockIdsByServiceId
in interface IClockManager
serviceId
- The Id of the service whose clocks you want to return.
ManagerException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |