|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Proxy.Proxy
public class Proxy
| Field Summary | |
|---|---|
private CADILog |
log
It is an object that will be used to log the server process |
private boolean |
logEnabled
Indicates whether the log is enabled or disabled. |
private java.lang.String |
logFile
It is the file name where the server logs are stored. |
private int |
numOfWorkers
Indicates the number of threads of the Worker that will
be running. |
private int[] |
ports
Ports where the server is listening to the client requests. |
private ProxyCacheLogicalTargets |
proxyCachelogicalTargets
Is the proxy's cache where the logical targets will be cached. |
private ProxyMutex |
proxyMutex
|
private ProxyPrefetching |
proxyPrefetching
|
private int |
proxyType
Indicates the type of proxy that will be used. |
private ProxyRequestedWOIs |
requestedWOIs
|
private RequestListener[] |
requestListenersPool
This thread pool will listen to in a port to receive client requests. |
private RequestQueue |
requestQueue
It is a queue where the client request are stored. |
private ProxyWorker[] |
workersPool
This thread pool will process the client requests and will send the server responses to the client. |
private boolean |
XMLLogFormat
Indicates whether the log information is stored in XML format or simple text format. |
| Constructor Summary | |
|---|---|
Proxy(int[] ports,
int numOfWorkers,
boolean logEnabled,
int logLevel,
java.lang.String logFile,
boolean XMLLogFormat)
Constructor. |
|
| Method Summary | |
|---|---|
private void |
launchListeners()
This method creates and launches the proxy listeners. |
private void |
launchProxyPrefetching()
|
private void |
launchProxyWorkers()
This method creates and launches the proxy workers. |
void |
list(java.io.PrintStream out)
Prints this Proxy out to the specified output stream. |
void |
run()
|
void |
setProxyType(int proxyType)
Sets the proxyType attribute. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int[] ports
private int numOfWorkers
Worker that will
be running.
private java.lang.String logFile
private boolean XMLLogFormat
private boolean logEnabled
private int proxyType
Further information, see ProxyDefaultValues.PROXY_TYPE.
private RequestListener[] requestListenersPool
private RequestQueue requestQueue
private ProxyWorker[] workersPool
private ProxyPrefetching proxyPrefetching
private ProxyRequestedWOIs requestedWOIs
private CADILog log
private ProxyCacheLogicalTargets proxyCachelogicalTargets
private ProxyMutex proxyMutex
| Constructor Detail |
|---|
public Proxy(int[] ports,
int numOfWorkers,
boolean logEnabled,
int logLevel,
java.lang.String logFile,
boolean XMLLogFormat)
ports - numOfWorkers - logEnabled - logLevel - logFile - XMLLogFormat - | Method Detail |
|---|
public void setProxyType(int proxyType)
proxyType attribute.
proxyType - definition in proxyType.public void run()
public java.lang.String toString()
toString in class java.lang.Objectpublic void list(java.io.PrintStream out)
out - an output stream.
private void launchListeners()
throws ErrorException
ErrorExceptionprivate void launchProxyWorkers()
private void launchProxyPrefetching()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||