|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--mqwfes.StartDirectoryCheck
Starts the DirectoryCheck-class in 6 threads.
Field Summary | |
static java.util.Vector |
comparelist
Comparelist. |
static java.util.Vector |
duplicatedirectories
List of directories monitored by at least 2 activities. |
static java.util.Vector |
harmlesserrors
List of workitems with harmless errors (wrong value in parameter p). |
boolean |
nowchecking
True, if function getWorklistAndDistribute is running. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
StartDirectoryCheck()
Constructor. |
|
StartDirectoryCheck(WorkList startlist)
Constructor. |
Method Summary | |
void |
CheckChangedVariables()
Setting systemvariables in threads new. |
int |
CountItemsOnThreads(int threadnumber)
Counts and returns the number of items on the thread-worklists. |
boolean |
Distribute(int threadnumber,
java.lang.String[] delivery)
Sorts and distributes the activities to the different lists of the threads. |
void |
getWorklistAndDistribute()
Starts the needed functions. |
void |
PossibleProblems()
Checks if a directory is monitored by more than one activity. |
void |
run()
Executes the other functions. |
void |
StartThreadNumber(int threadnumber)
Starts work of given thread. |
void |
StartThreads()
Starts threads 1-6 |
void |
StopThreads()
Stops threads 1-6 |
void |
UpdateThreadlists()
Deletes workitems from the different lists of the threads if not existing anymore on the server-worklist. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static java.util.Vector comparelist
public static java.util.Vector duplicatedirectories
public static java.util.Vector harmlesserrors
public boolean nowchecking
Constructor Detail |
public StartDirectoryCheck(WorkList startlist)
startlist
- Worklist from Serverpublic StartDirectoryCheck()
Method Detail |
public void CheckChangedVariables()
public boolean Distribute(int threadnumber, java.lang.String[] delivery)
threadnumber
- Number of the thread.delivery
- Array with POID [0] and all parameters.
public void UpdateThreadlists()
public void StartThreads()
public void StopThreads()
public void getWorklistAndDistribute()
public void StartThreadNumber(int threadnumber)
threadnumber
- 1-6 for thread 1-6 or 0 for all.public int CountItemsOnThreads(int threadnumber)
threadnumber
- Number of thread 1-6 or any other number for all.
public void PossibleProblems()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |