autohit.server.service
Class SocketRelayHelper

java.lang.Object
  extended byjava.lang.Thread
      extended byautohit.server.service.SocketRelayHelper
All Implemented Interfaces:
java.lang.Runnable

public class SocketRelayHelper
extends java.lang.Thread

Socket Relay Helper. Basically, this a bound relay.

Version:
1.0 Version HistoryEPG - Initial - 15Sep03
Author:
Erich P. Gatejen

Field Summary
 java.net.Socket down
          Client side
 AutohitLogInjectorWrapper myLog
          Logging mechinism
 java.net.Socket up
          Server side
 boolean wireFlag
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SocketRelayHelper()
          Default constructor
 
Method Summary
 void init(java.net.Socket ins, java.lang.String addr, int port, AutohitLogInjectorWrapper logger, boolean wire)
          Complete construction.
 void run()
          Run the context
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

up

public java.net.Socket up
Server side


down

public java.net.Socket down
Client side


myLog

public AutohitLogInjectorWrapper myLog
Logging mechinism


wireFlag

public boolean wireFlag
Constructor Detail

SocketRelayHelper

public SocketRelayHelper()
Default constructor

Method Detail

init

public void init(java.net.Socket ins,
                 java.lang.String addr,
                 int port,
                 AutohitLogInjectorWrapper logger,
                 boolean wire)
Complete construction. This will be called when the VM is initialized.


run

public void run()
Run the context



Test.