|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread de.tud.dvs1.mmpgp2p.MmpgP2PServiceThread de.tud.dvs1.mmpgp2p.RCQueueWorkerThread
public class RCQueueWorkerThread
Diese Klasse hält Verbindungen mit den RegionControllern offen. Es wird zu jedem RegionController eine Verbindung geöffnet und bei Bedarf Daten gesendet oder Empfangen.
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 de.tud.dvs1.mmpgp2p.MmpgP2PServiceThread |
---|
CR, logSystemStatsInterval, logSystemStatsLast, logSystemStatsStart, logSystemStatsWriter, MAGIC |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
RCQueueWorkerThread(MmpgP2PServiceThread p,
SessionTicket t)
|
Method Summary | |
---|---|
protected void |
addCommand(MmpgP2PCommand c)
Füge der Warteschlange ein Kommando hinzu. |
protected void |
closedConnection(ConnectionWorkerThread t)
Diese Funktion wird aufgerufen, nachem sich ein ConnectionWorkerThread beendet |
protected MmpgP2PCommand |
getNextCommand()
Holt den nächsten Befehl aus der Warteschlange. |
protected ClientRequest |
incomingConnection(ConnectionWorkerThread t)
Eine Verbindung kommt herein. |
protected void |
incomingData(ConnectionWorkerThread t)
Daten von einem der ConnectionWorkerThreads kommen herein. |
void |
log(java.lang.Exception e)
Log-Ausgaben an den Parent durchreichen. |
void |
log(java.lang.String s)
Log-Ausgaben an den Parent durchreichen. |
protected void |
logout()
Logout aus dem System. |
void |
run()
run(). |
java.lang.String |
toString()
|
Methods inherited from class de.tud.dvs1.mmpgp2p.MmpgP2PServiceThread |
---|
closeServerConnectionWorker, doLogSystemStats, getConnectionWorker, getDebug, getProperties, getProperty, getProperty, getServerConnectionWorker, getSystemLoad, getSystemMemory, getThreadName, getTime, getTraffic, initSystemStats, isRunning, isStarting, log_debug, log_debug, logSystemStats, openConnection, openServerConnection, printSystemStatsFirstLine, readFirstLine, resetSystemStats, setDebug, setProperty, setRunning, stopThread, waitFor, waitForShutdown |
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, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RCQueueWorkerThread(MmpgP2PServiceThread p, SessionTicket t)
Method Detail |
---|
protected void logout()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected ClientRequest incomingConnection(ConnectionWorkerThread t) throws MmpgP2PException
incomingConnection
in class MmpgP2PServiceThread
MmpgP2PException
protected void incomingData(ConnectionWorkerThread t)
incomingData
in class MmpgP2PServiceThread
protected void closedConnection(ConnectionWorkerThread t)
MmpgP2PServiceThread
closedConnection
in class MmpgP2PServiceThread
protected void addCommand(MmpgP2PCommand c)
protected MmpgP2PCommand getNextCommand()
public java.lang.String toString()
toString
in class java.lang.Thread
public void log(java.lang.String s)
log
in class MmpgP2PServiceThread
public void log(java.lang.Exception e)
log
in class MmpgP2PServiceThread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |