|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
dsnserver.ThreadLogging
public class ThreadLogging
This class is used to request the logs from the BTnode. It looks which nodes are here by looking to the dsninfo table and sends after some seconds a new log request to the next DSNnode in the table.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
(package private) int |
MsgID
|
Communication |
myComm
|
private static java.util.concurrent.Semaphore |
sem
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ThreadLogging(Communication myComm)
|
Method Summary | |
---|---|
static void |
lock()
|
void |
RequestLog(java.lang.String DSNID)
It requests all MsgID's which are in DSN.request. |
void |
run()
Thirst of all, it looks which nodes has resbonded to the last dsn ping. |
static void |
unlock()
|
void |
updateRequestLog(java.lang.String DSNID)
It goes through DSN.received and evalutes which MsgID between the lowest and the highest MsgID in the DSN.received miss and write them to DSN.request. |
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 |
Field Detail |
---|
public Communication myComm
private static java.util.concurrent.Semaphore sem
int MsgID
Constructor Detail |
---|
public ThreadLogging(Communication myComm)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void updateRequestLog(java.lang.String DSNID)
public void RequestLog(java.lang.String DSNID)
public static void lock()
public static void unlock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |