Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

plp.session
Class SessionRunner  view SessionRunner download SessionRunner.java

java.lang.Object
  extended byjava.lang.Thread
      extended byplp.session.SessionRunner
All Implemented Interfaces:
ChannelListener, java.lang.Runnable, SessionListener

public class SessionRunner
extends java.lang.Thread
implements ChannelListener, SessionListener

The SessionRunner tests the session layer


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  Channel channel3
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SessionRunner()
           
 
Method Summary
 void handleChannelConnectedEvent(Channel channel)
           
 void handleChannelDataAvailableEvent(Channel channel, byte[] dataReceived)
           
 void handleChannelDisconnectedEvent(Channel channel)
           
 void handleChannelFailedEvent(Channel channel)
           
 void handleChannelNotAvailableEvent(Channel channel)
           
 void handleSessionConnectedEvent(Session session)
           
 void handleSessionDisconnectedEvent(Session session)
           
static void main(java.lang.String[] args)
           
 void run()
          The method of Thread that will be run if there is no Runnable object associated with the Thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, 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

channel3

private Channel channel3
Constructor Detail

SessionRunner

public SessionRunner()
Method Detail

main

public static void main(java.lang.String[] args)

run

public void run()
Description copied from class: java.lang.Thread
The method of Thread that will be run if there is no Runnable object associated with the Thread. Thread's implementation does nothing at all.

Specified by:
run in interface java.lang.Runnable

handleChannelConnectedEvent

public void handleChannelConnectedEvent(Channel channel)
Specified by:
handleChannelConnectedEvent in interface ChannelListener

handleChannelDisconnectedEvent

public void handleChannelDisconnectedEvent(Channel channel)
Specified by:
handleChannelDisconnectedEvent in interface ChannelListener

handleChannelDataAvailableEvent

public void handleChannelDataAvailableEvent(Channel channel,
                                            byte[] dataReceived)
Specified by:
handleChannelDataAvailableEvent in interface ChannelListener

handleChannelNotAvailableEvent

public void handleChannelNotAvailableEvent(Channel channel)
Specified by:
handleChannelNotAvailableEvent in interface ChannelListener

handleChannelFailedEvent

public void handleChannelFailedEvent(Channel channel)
Specified by:
handleChannelFailedEvent in interface ChannelListener

handleSessionConnectedEvent

public void handleSessionConnectedEvent(Session session)
Specified by:
handleSessionConnectedEvent in interface SessionListener

handleSessionDisconnectedEvent

public void handleSessionDisconnectedEvent(Session session)
Specified by:
handleSessionDisconnectedEvent in interface SessionListener