gr.uoa.di.madgik.commons.channel.proxy.tcp
Class InletProtocol

java.lang.Object
  extended by java.lang.Thread
      extended by gr.uoa.di.madgik.commons.channel.proxy.tcp.InletProtocol
All Implemented Interfaces:
java.lang.Runnable, java.util.Observer

public class InletProtocol
extends java.lang.Thread
implements java.util.Observer

This class implements the synchronization protocol for the inlet nozzle sides of a channel.

Author:
gpapanikos

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
InletProtocol(ChannelRegistryEntry Entry, java.lang.Object synchThreadStart)
          Instantiates a new inlet protocol.
 
Method Summary
 void Dispose()
          Disposes the protocol state and unregisters from events
 void run()
           
 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

InletProtocol

public InletProtocol(ChannelRegistryEntry Entry,
                     java.lang.Object synchThreadStart)
Instantiates a new inlet protocol. The instance is set as a daemon thread and is started

Parameters:
Entry - The ChannelRegistryEntry that represents the channel that is served
synchThreadStart - the object the client should wait on until the thread is started and a notify is emitted
Method Detail

Dispose

public void Dispose()
Disposes the protocol state and unregisters from events


run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer