|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.clock.ClockConfig
@StableMinor(version="5.5", sinceVersion="4.0") public class ClockConfig
A portal clock, which represents an execution that is scheduled to be executed in regular intervals.
Field Summary | |
---|---|
static String |
INTERVAL_DEFINITION_TYPE_DAYS
|
static String |
INTERVAL_DEFINITION_TYPE_HOURS
|
static String |
INTERVAL_DEFINITION_TYPE_MINUTES
|
static String |
INTERVAL_DEFINITION_TYPE_SECONDS
|
static int |
INTERVAL_TYPE_DAYS
|
static int |
INTERVAL_TYPE_HOURS
|
static int |
INTERVAL_TYPE_MINUTES
|
static int |
INTERVAL_TYPE_SECONDS
|
Constructor Summary | |
---|---|
ClockConfig()
|
Method Summary | |
---|---|
String |
getClockClass()
Returns the full class name for this clock implementation. |
String |
getId()
Returns the identifier for this clock. |
Date |
getLastTick()
Returns the date-time this clock has completed its last execution. |
Date |
getLastTickStart()
Returns the date-time this clock has started its last execution. |
int |
getMaxRunTime()
Returns the maximum run time for this clock in seconds. |
Date |
getNextScheduleDate()
Returns the date-time for which this clock is scheduled for its next execution. |
String |
getRunOnlyOnServer()
|
String |
getServiceId()
Returns the identifier of the service this clock belongs to. |
Date |
getStartTime()
|
Date |
getStopTime()
|
int |
getTickInterval()
|
int |
getTickIntervalType()
|
boolean |
isEnabled()
Indicates if this clock is enabled. |
boolean |
isRunning()
Indicates if this clock is currently running. |
void |
setClockClass(String clockClass)
Sets the class name for this clock implementation. |
void |
setDefinition(Node definition)
|
void |
setEnabled(boolean enabled)
Enables or disables this clock. |
void |
setId(String id)
Sets the identifier for this clock. |
void |
setLastTick(Date lastTick)
Sets the date-time this clock has completed its last execution. |
void |
setLastTickStart(Date lastTickStart)
Sets the date-time this clock has started its last execution. |
void |
setMaxRunTime(int maxRunTime)
Sets the maximum run time for a this clock in minutes. |
void |
setNextScheduleDate(Date nextScheduleDate)
Sets the date-time for which this clock is scheduled for its next execution. |
void |
setRunning(boolean running)
Sets if this clock is currently running. |
void |
setRunOnlyOnServer(String runOnlyOnServer)
|
void |
setServiceId(String serviceId)
Sets the service this clock belongs to. |
void |
setStartTime(Date startTime)
|
void |
setStopTime(Date stopTime)
|
void |
setTickInterval(int tickInterval)
|
void |
setTickIntervalType(int tickIntervalType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INTERVAL_TYPE_SECONDS
public static final int INTERVAL_TYPE_MINUTES
public static final int INTERVAL_TYPE_HOURS
public static final int INTERVAL_TYPE_DAYS
public static final String INTERVAL_DEFINITION_TYPE_SECONDS
public static final String INTERVAL_DEFINITION_TYPE_MINUTES
public static final String INTERVAL_DEFINITION_TYPE_HOURS
public static final String INTERVAL_DEFINITION_TYPE_DAYS
Constructor Detail |
---|
public ClockConfig()
Method Detail |
---|
public void setDefinition(Node definition) throws Exception
Exception
public String getClockClass()
public void setClockClass(String clockClass)
clockClass
- the clock class name.public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- true to enable it, or false to disable it.public String getId()
public void setId(String id)
id
- the identifier to set.public Date getLastTick()
public void setLastTick(Date lastTick)
lastTick
- the date-time.public Date getNextScheduleDate()
public void setNextScheduleDate(Date nextScheduleDate)
the
- date-time.public String getRunOnlyOnServer()
public void setRunOnlyOnServer(String runOnlyOnServer)
runOnlyOnServer
- The runOnlyOnServer to set.public String getServiceId()
public void setServiceId(String serviceId)
serviceId
- the service's identifier.public Date getStartTime()
public void setStartTime(Date startTime)
startTime
- The startTime to set.public Date getStopTime()
public void setStopTime(Date stopTime)
stopTime
- The stopTime to set.public int getTickInterval()
public void setTickInterval(int tickInterval)
tickInterval
- The tickInterval to set.public int getTickIntervalType()
public void setTickIntervalType(int tickIntervalType)
tickIntervalType
- The tickIntervalType to set.public int getMaxRunTime()
public void setMaxRunTime(int maxRunTime)
maxRunTime
- the value in minutes.public boolean isRunning()
public void setRunning(boolean running)
true
- if it is running, false otherwise.public Date getLastTickStart()
public void setLastTickStart(Date lastTickStart)
lastTickStart
- the date-time value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |