|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.ram.policy.PendingPolicyExecutionInterval
public class PendingPolicyExecutionInterval
| Constructor Summary | |
|---|---|
PendingPolicyExecutionInterval(java.lang.String pendingExecutionInterval)
This class creates pending policy execution intervals to create various intervals on when to run the pending policies. |
|
| Method Summary | |
|---|---|
boolean |
canRun(long currentTime,
long lastRun)
|
static PendingPolicyExecutionInterval |
createDailyExecutionInterval(int hourOfDay,
int minutes)
creates the daily execution interval to invoke the pending policy. |
static PendingPolicyExecutionInterval |
createDayOfWeekExecutionInterval(int dayOfWeek,
int hourOfDay,
int minutes)
Sets the weekly execution interval for the pending policy. |
static PendingPolicyExecutionInterval |
createHourlyExecutionInterval(int hours)
creates the hourly execution interval for the pending policy |
static PendingPolicyExecutionInterval |
createMinutelyExecutionInterval(int minutes)
creates the minutely execution interval for the pending policy |
static PendingPolicyExecutionInterval |
createSecondlyExecutionInterval(int seconds)
creates the secondly execution interval for the pending policy |
java.lang.String |
getInterval()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PendingPolicyExecutionInterval(java.lang.String pendingExecutionInterval)
pendingExecutionInterval - | Method Detail |
|---|
public java.lang.String getInterval()
public java.lang.String toString()
toString in class java.lang.Object
public static PendingPolicyExecutionInterval createDayOfWeekExecutionInterval(int dayOfWeek,
int hourOfDay,
int minutes)
dayOfWeek - Day of the week at which to invoke the policy.
1-Sunday, 2-Monday.. 7-Saturday.hourOfDay - Hour of the day for the week at which to execute the policyminutes - Minutes at which to execute the policy
public static PendingPolicyExecutionInterval createDailyExecutionInterval(int hourOfDay,
int minutes)
hourOfDay - Hour of the day at which to execute the pending policyminutes - Minutes at which to execute the pending policypublic static PendingPolicyExecutionInterval createHourlyExecutionInterval(int hours)
hours - Number of hours after which to execute the pending policypublic static PendingPolicyExecutionInterval createMinutelyExecutionInterval(int minutes)
minutes - Number of minutes after which to execute the pending policypublic static PendingPolicyExecutionInterval createSecondlyExecutionInterval(int seconds)
minutes - Number of seconds after which to execute the pending policy
public boolean canRun(long currentTime,
long lastRun)
request -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||