|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.netseeker.ejoe.EJServer
This is the server component of EJOE. EJOE is a request object broker in it's natural meaning. You have to use this component if you want retrieve and send data from/to EJOE clients. EJOE offers three things - and ONLY these three things for you:
Field Summary | |
static int |
CON_USE_COMPRESSION
|
static int |
CON_USE_NONBLOCKING_IO
|
static int |
CON_USE_PERSISTENT
|
Constructor Summary | |
EJServer(int options,
ServerHandler handler)
Creates an instance of the EJOE server component pre-configured whith a default value for the used port and using the given connection options. |
|
EJServer(int options,
ServerHandler handler,
int port)
Creates an instance of the EJOE server component pre-configured whith the default (de)serializing mechanism and using the given connection options. |
|
EJServer(ServerHandler handler)
Creates an instance of the EJOE server component pre-configured whith a default value for the used port |
|
EJServer(ServerHandler handler,
int port)
Creates an instance of the EJOE server component |
Method Summary | |
void |
enableCompression(boolean enable)
Enables or disables the usage of compressing/decompressing for outgoing/incoming data. |
void |
enableCompression(int compressionLevel)
Enables the usage of compressing/decompressing for outgoing/incoming data with the given compression level. |
void |
enableNonBlockingIO(boolean enable)
Enables/disables new style non-blocking IO for read and write operations. |
void |
enablePersistentConnections(boolean enable)
Enables/disables support for persistents client connections. |
void |
enableRemoteClassLoading(boolean enable)
Enables support for remote classloading via a second EJOE instance using a default port and a special ServerHandler for class loading requests. |
void |
enableRemoteClassLoading(int port)
Enables support for remote classloading via a second EJOE instance using a special ServerHandler for class loading requests. |
void |
enableThreadedProcessorUsage(boolean enable)
Enables the threaded processor feature. |
void |
setMaxReadProcessors(int maxProcessors)
Sets the amount of threads used for processing read operations on accepted connections. |
void |
setMaxWriteProcessors(int maxProcessors)
Sets the amount of threads used for processing write operations. |
void |
start()
(Re)Starts the main server as well as the class loader server (if it's configured) |
void |
stop()
Stops the main server as well as the class loader server (if it's running) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CON_USE_COMPRESSION
public static final int CON_USE_NONBLOCKING_IO
public static final int CON_USE_PERSISTENT
Constructor Detail |
public EJServer(ServerHandler handler)
handler
- an implementation of de.netseeker.ejoe.ServerHandlerpublic EJServer(ServerHandler handler, int port)
handler
- an implementation of de.netseeker.ejoe.ServerHandlerport
- the port EJOE should listen topublic EJServer(int options, ServerHandler handler)
options
- the options to usehandler
- an implementation of de.netseeker.ejoe.ServerHandlerCON_USE_COMPRESSION
,
CON_USE_NONBLOCKING_IO
,
CON_USE_PERSISTENT
public EJServer(int options, ServerHandler handler, int port)
options
- the options to usehandler
- an implementation of de.netseeker.ejoe.ServerHandlerport
- the port EJOE should listen toCON_USE_COMPRESSION
,
CON_USE_NONBLOCKING_IO
,
CON_USE_PERSISTENT
Method Detail |
public void setMaxReadProcessors(int maxProcessors)
maxProcessors
- new amount of threads used for processing accepted connectionssetMaxWriteProcessors(int)
public void setMaxWriteProcessors(int maxProcessors)
maxProcessors
- new amount of threads used for processing io socket write operationssetMaxReadProcessors(int)
public void enableThreadedProcessorUsage(boolean enable)
#setMaxProcessors(int)
public void enableCompression(boolean enable)
SerializeAdapter
public void enableCompression(int compressionLevel)
compressionLevel
- the level of compression to use, must be in range of 0-9SerializeAdapter
public void enableNonBlockingIO(boolean enable)
public void enablePersistentConnections(boolean enable)
enable
- public void enableRemoteClassLoading(boolean enable)
public void enableRemoteClassLoading(int port)
port
- The port which the class loader server should usepublic void start() throws java.io.IOException
java.io.IOException
public void stop()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |