|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
gr.uoa.di.madgik.commons.channel.proxy.tcp.OutletProtocol
public class OutletProtocol
This class implements the synchronization protocol for the outlet nozzle sides of a channel.
| 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 | |
|---|---|
OutletProtocol(java.lang.Object synchThreadStart,
java.net.Socket clientSock,
java.lang.String NozzleID,
java.lang.String ChannelID,
ChannelState State)
Instantiates a new outlet protocol. |
|
| Method Summary | |
|---|---|
void |
Dispose()
Disposes the protocol state and unregisters from events |
java.lang.Boolean |
HasConnected()
Checks if the outlet is connected to the inlet channel |
void |
run()
|
java.lang.Boolean |
StillConnected()
Checks if the outlet is still connected to the inlet channel |
void |
update(java.util.Observable o,
java.lang.Object arg)
|
| 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OutletProtocol(java.lang.Object synchThreadStart,
java.net.Socket clientSock,
java.lang.String NozzleID,
java.lang.String ChannelID,
ChannelState State)
synchThreadStart - the object the client should wait on until the thread is started and a notify is emittedclientSock - the socket the protocol should write and read synchronization infoNozzleID - the id of the nozzle this protocol is acting on behalf ofChannelID - the id of the channel the nozzle is interested inState - the state where to emit incoming events and register for outgoing events| Method Detail |
|---|
public void Dispose()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic java.lang.Boolean HasConnected()
public java.lang.Boolean StillConnected()
public void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||