|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--zeta.WorkloadScheduler
Controls the computation in specified timeframes.
| Field Summary | |
private int[][] |
activeAt
|
private boolean |
alwaysActive
|
private int |
MAX_DAY
|
| Constructor Summary | |
WorkloadScheduler(java.lang.String activeAt)
Constructs the environment for the scheduler. |
|
| Method Summary | |
private static void |
addTimeframe(java.util.List timeframes,
int startHour,
int startMinute,
int stopHour,
int stopMinute)
|
private static boolean |
checkTimeframe(int startHour,
int startMinute,
int stopHour,
int stopMinute)
|
long |
getTimeMillisToNextTimeframe()
Returns in milliseconds how long nothing will happen for the scheduler. |
boolean |
isActive()
Checks if the computation can be active right now. |
boolean |
isAlwaysActive()
Checks if the computation can be always active. |
private static int[] |
timeframe(java.lang.String activeAt,
int pos,
java.lang.String dayOfWeek)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private boolean alwaysActive
private final int MAX_DAY
private int[][] activeAt
| Constructor Detail |
public WorkloadScheduler(java.lang.String activeAt)
activeAt - the timeframes when the client can activate the computation| Method Detail |
public boolean isAlwaysActive()
true if the computation can be always active.public boolean isActive()
true if the computation can be active right now.public long getTimeMillisToNextTimeframe()
private static boolean checkTimeframe(int startHour,
int startMinute,
int stopHour,
int stopMinute)
private static void addTimeframe(java.util.List timeframes,
int startHour,
int startMinute,
int stopHour,
int stopMinute)
private static int[] timeframe(java.lang.String activeAt,
int pos,
java.lang.String dayOfWeek)
|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||