org.indy
Class PeerThread

java.lang.Object
  |
  +--org.indy.IndyThread
        |
        +--org.indy.PeerThread
All Implemented Interfaces:
java.lang.Runnable

public class PeerThread
extends IndyThread

Description of the Class

Author:
owen

Inner classes inherited from class org.indy.IndyThread
IndyThread.Priority, IndyThread.StopMode
 
Fields inherited from class org.indy.IndyThread
stopRequested, threadImpl
 
Constructor Summary
PeerThread()
          Constructor for the IdPeerThread object
 
Method Summary
protected  void afterRun()
          Description of the Method
protected  void beforeRun()
          Description of the Method
protected  void cleanup()
          DOCUMENT ME!
 TCPServerConnection getConnection()
          Gets the connection attribute of the IdPeerThread object
 void run()
          Main processing method for the IdPeerThread object
 void setConnection(TCPServerConnection connection)
          Sets the connection attribute of the IdPeerThread object
 void terminate()
          DOCUMENT ME!
 
Methods inherited from class org.indy.IndyThread
addThreadListener, afterExecute, beforeExecute, getPriority, getStopMode, getThreadImpl, isStopped, join, removeThreadListener, setPriority, setStopMode, start, stop, terminateAndWait
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeerThread

public PeerThread()
Constructor for the IdPeerThread object
Method Detail

setConnection

public void setConnection(TCPServerConnection connection)
Sets the connection attribute of the IdPeerThread object
Parameters:
connection - The new connection value

getConnection

public TCPServerConnection getConnection()
Gets the connection attribute of the IdPeerThread object
Returns:
The connection value

beforeRun

protected void beforeRun()
                  throws java.lang.InterruptedException
Description of the Method
Overrides:
beforeRun in class IndyThread

afterRun

protected void afterRun()
                 throws java.lang.InterruptedException
Description of the Method
Overrides:
afterRun in class IndyThread

cleanup

protected void cleanup()
                throws java.lang.InterruptedException
DOCUMENT ME!
Overrides:
cleanup in class IndyThread
Throws:
java.lang.InterruptedException - DOCUMENT ME!

terminate

public void terminate()
DOCUMENT ME!
Overrides:
terminate in class IndyThread

run

public void run()
Main processing method for the IdPeerThread object


Copyright © 2002-2002 IndyJ. All Rights Reserved.