|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
thread.Thread_Control_Schedul
public class Thread_Control_Schedul
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
Thread_Control_Schedul(Gui_StreamRipStar mainGui,
Control_Threads controlThread)
|
|
| Method Summary | |
|---|---|
void |
addToSchedulVector(SchedulJob job)
add an schedul job to the end of the vector witch contains all schedul jobs |
void |
calculateNextJobTime(SchedulJob job,
java.lang.Boolean forceUpdate)
Calculates the next start- and endtime for an daily and weekly schedul job. |
void |
deleteAllJobsFromStream(int id)
Search in all available schedules for an job with the stream ID and deletes all off them |
java.util.Vector<SchedulJob> |
getScheduleVector()
|
SchedulJob |
getSchedulJobByID(int id)
looks in the scheduljob vector for in job by an ID |
java.lang.Boolean |
jobStillExist(int ID)
looks if a schedul job still exist. |
void |
loadScheduleJobsOnStart()
loads all scheduljobs on start from xml-file and save it into the vector witch contains all jobs |
void |
removeJobFromVector(int id)
removes an scheduljob from Vector. |
void |
run()
runs forever. |
void |
saveScheduleVector()
saves all jobs in the vector |
void |
setNextTimeForAllJobs()
|
void |
setUpdateView(java.lang.Boolean update)
set an new status to the update |
java.lang.Boolean |
shouldUpdate()
|
void |
stopScheduler()
Stop this Thread |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Thread_Control_Schedul(Gui_StreamRipStar mainGui,
Control_Threads controlThread)
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void stopScheduler()
public void addToSchedulVector(SchedulJob job)
job - public void loadScheduleJobsOnStart()
public java.util.Vector<SchedulJob> getScheduleVector()
public SchedulJob getSchedulJobByID(int id)
id: - the ID of the scheduljob in xml-file
public void removeJobFromVector(int id)
id: - The ID in xml-file from the scheduljob
public void calculateNextJobTime(SchedulJob job,
java.lang.Boolean forceUpdate)
job: - The schedul job for witch the new
time should calculate.public void setNextTimeForAllJobs()
public void setUpdateView(java.lang.Boolean update)
update: - true, if the ui should updatedpublic java.lang.Boolean shouldUpdate()
public java.lang.Boolean jobStillExist(int ID)
ID: - the job ID in xml-file and schedulvectorpublic void deleteAllJobsFromStream(int id)
id: - the stream idpublic void saveScheduleVector()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||