|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.lang.Thread
|
+--Proxy
| Field Summary | |
static Config |
config
The Config |
static ConnectionPool |
cp
The ConnectionPool for handling client connections |
static Policy |
inPolicy
IN/OUT authorization policies |
static Logger |
log
The logger |
static Policy |
outPolicy
|
static ServConnectionManager |
scm
The ServConnectionManager used for server Connections |
static java.lang.String |
VERSION
Current version |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Proxy(int port)
Constructor, builds a Proxy instance running on the specified port number |
|
| Method Summary | |
protected void |
closeSocket()
Closes the serversocket and makes the proxy stop listening for connections. |
static Connection |
getConnection()
Get a Connection that is ready to service. |
static java.net.InetAddress |
getHost()
Get the local host. |
int |
getPort()
Get the port this proxy is using. |
void |
kill()
shutdown |
protected void |
openSocket()
Open a socket on the specified port also make the proxy continue listening connections. |
static void |
removeConnection(Connection con)
Remove a connection (it has received full treatment) |
void |
run()
while we can, accept new sockets, creating a handler for each and also save connections for statistics. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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 |
public static final java.lang.String VERSION
public static ConnectionPool cp
public static ServConnectionManager scm
public static Logger log
public static Config config
public static Policy inPolicy
public static Policy outPolicy
| Constructor Detail |
public Proxy(int port)
port - the port number, where the Proxy should run| Method Detail |
public static Connection getConnection()
public void run()
run in class java.lang.Threadprotected void openSocket()
protected void closeSocket()
public int getPort()
public static java.net.InetAddress getHost()
public static void removeConnection(Connection con)
con - the connection that is closing down.public void kill()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||