de.netseeker.ejoe
Class EJConstants

java.lang.Object
  extended by de.netseeker.ejoe.EJConstants

public final class EJConstants
extends java.lang.Object

Author:
netseeker

Field Summary
static int ADAPTER_STRATEGY_DEFAULT
          Default mode: EJClient and EJServer will send and receive respectively serialize and deserialize objects with a SerializeAdapter.
static int ADAPTER_STRATEGY_DIRECT
          Direct mode: EJClient and EJServer will just take ByteBuffers and exchange them directly without a SerializeAdapter.
static int ADAPTER_STRATEGY_MIXED
          Mixed mode: EJClient and EJServer will send and receive respectively serialize and deserialize objects with a SerializeAdapter similiar to EJClient#ADAPTER_STRATEGY_DEFAULT but EJClient will not deserialize server responses to objects, it will just return the serialized representation of the response as written by the SerializeAdapter of EJServer.
static int BUFFERED_STREAM_SIZE
          buffer size used for the BufferedInputStream, BufferedOutputStream as well as for (De)Compression streams
static int DEFAULT_COMPRESSION_LEVEL
          Default compression level used for compressing data with GZIP if enabled
static int EJOE_CLASSLOADER_PORT
          the default port on which ejoe will bind the server socket for remote classloading
static int EJOE_CONNECTION_TIMEOUT
          the timeout used when EJOE clients are waiting for server responses or vice versa
static java.lang.Class EJOE_DEFAULT_ADAPTER
          default (de)serialize adapter implementation used if no adapter was requested
static java.lang.String EJOE_DEFAULT_CHARSET
          Default charset used for de/encoding operations
static int EJOE_EOF
          EJOEs custom EOF int value
static int EJOE_MAGIC_NUMBER
          magic integer used to determine if the default ejoe protocol or HTTP is used
static int EJOE_MAX_READPROCESSORS
          the default amount of concurrent read and server handler operations EJOE will process simultaneously
static int EJOE_MAX_SOCKET_BUF_SIZE
          max. supported TCP window size
static int EJOE_MAX_WRITEPROCESSORS
          the default amount of concurrent socket write operations EJOE will process simultaneously
static int EJOE_POOL_RESIZER_PERIOD
          the time period used for the ThreadPool resizer thread, which inspects the used ThreadPools and will resize them if neccessary
static int EJOE_POOL_RESIZER_SHRINKWAIT
          the timeout used by the ThreadPool resizer thread.
static int EJOE_PORT
          the default port on which ejoe will bind the server socket
static java.lang.String EJOE_VERSION
           
static int EJOE_WAIT_TIMEOUT
          the timeout used when EJOE will block before next selection call if the last selection was zero
static int HTTP_BYTEBUFFER_PREALLOC
          Initially allocated size of the ByteBuffers used to read HTTP headers
static java.lang.String HTTP_DEFAULT_CONTENTTYPE
          Default content type used for HTTP communications if the used SerializeAdapter doesn't indicate a supported content type or when direct byte buffer exchange is used
static java.lang.String HTTP_PARAM_NAME
          Name of the POST variable clients can use for sending HTTP packaged request
static int IPTOS_THROUGHPUT
          default socket option
static java.lang.String JAVA_VERSION
          the Java version, eg. 1.4.2_08 or 1.5.0_06
static int JAVA_VERSION_INT
          the Java version converted to int, eg. 1.4.2_08 = 142, 1.5.0_06 = 150
static int NIO_BYTEBUFFER_STREAM_SIZE
          buffer size used for the bytbuffer outputstreams used by both client and server
static int NIO_HEADER_SIZE
          size used for nio header bytebuffers containing the size of the data buffers
static int NIO_MAX_ITERATIONS
          number of trials for write/read data before a socketchannel will be marked as blocking
 
Constructor Summary
EJConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EJOE_VERSION

public static final java.lang.String EJOE_VERSION
See Also:
Constant Field Values

EJOE_MAGIC_NUMBER

public static final int EJOE_MAGIC_NUMBER
magic integer used to determine if the default ejoe protocol or HTTP is used

See Also:
Constant Field Values

EJOE_EOF

public static final int EJOE_EOF
EJOEs custom EOF int value

See Also:
Constant Field Values

EJOE_DEFAULT_ADAPTER

public static java.lang.Class EJOE_DEFAULT_ADAPTER
default (de)serialize adapter implementation used if no adapter was requested


EJOE_DEFAULT_CHARSET

public static final java.lang.String EJOE_DEFAULT_CHARSET
Default charset used for de/encoding operations

See Also:
Constant Field Values

NIO_HEADER_SIZE

public static final int NIO_HEADER_SIZE
size used for nio header bytebuffers containing the size of the data buffers

See Also:
Constant Field Values

NIO_BYTEBUFFER_STREAM_SIZE

public static final int NIO_BYTEBUFFER_STREAM_SIZE
buffer size used for the bytbuffer outputstreams used by both client and server

See Also:
Constant Field Values

BUFFERED_STREAM_SIZE

public static final int BUFFERED_STREAM_SIZE
buffer size used for the BufferedInputStream, BufferedOutputStream as well as for (De)Compression streams

See Also:
Constant Field Values

DEFAULT_COMPRESSION_LEVEL

public static final int DEFAULT_COMPRESSION_LEVEL
Default compression level used for compressing data with GZIP if enabled

See Also:
Constant Field Values

NIO_MAX_ITERATIONS

public static final int NIO_MAX_ITERATIONS
number of trials for write/read data before a socketchannel will be marked as blocking

See Also:
Constant Field Values

HTTP_BYTEBUFFER_PREALLOC

public static final int HTTP_BYTEBUFFER_PREALLOC
Initially allocated size of the ByteBuffers used to read HTTP headers

See Also:
Constant Field Values

HTTP_DEFAULT_CONTENTTYPE

public static final java.lang.String HTTP_DEFAULT_CONTENTTYPE
Default content type used for HTTP communications if the used SerializeAdapter doesn't indicate a supported content type or when direct byte buffer exchange is used

See Also:
Constant Field Values

HTTP_PARAM_NAME

public static final java.lang.String HTTP_PARAM_NAME
Name of the POST variable clients can use for sending HTTP packaged request

See Also:
Constant Field Values

EJOE_PORT

public static final int EJOE_PORT
the default port on which ejoe will bind the server socket

See Also:
Constant Field Values

EJOE_CLASSLOADER_PORT

public static final int EJOE_CLASSLOADER_PORT
the default port on which ejoe will bind the server socket for remote classloading

See Also:
Constant Field Values

EJOE_MAX_READPROCESSORS

public static final int EJOE_MAX_READPROCESSORS
the default amount of concurrent read and server handler operations EJOE will process simultaneously

See Also:
Constant Field Values

EJOE_MAX_WRITEPROCESSORS

public static final int EJOE_MAX_WRITEPROCESSORS
the default amount of concurrent socket write operations EJOE will process simultaneously

See Also:
Constant Field Values

EJOE_CONNECTION_TIMEOUT

public static final int EJOE_CONNECTION_TIMEOUT
the timeout used when EJOE clients are waiting for server responses or vice versa

See Also:
Constant Field Values

EJOE_WAIT_TIMEOUT

public static final int EJOE_WAIT_TIMEOUT
the timeout used when EJOE will block before next selection call if the last selection was zero

See Also:
Constant Field Values

EJOE_MAX_SOCKET_BUF_SIZE

public static final int EJOE_MAX_SOCKET_BUF_SIZE
max. supported TCP window size

See Also:
Constant Field Values

EJOE_POOL_RESIZER_PERIOD

public static final int EJOE_POOL_RESIZER_PERIOD
the time period used for the ThreadPool resizer thread, which inspects the used ThreadPools and will resize them if neccessary

See Also:
Constant Field Values

EJOE_POOL_RESIZER_SHRINKWAIT

public static final int EJOE_POOL_RESIZER_SHRINKWAIT
the timeout used by the ThreadPool resizer thread. If the current pool size is too high or too low for all inspections done within the timeout, the resizer will try to resize the size of the inspected ThreadPool

See Also:
Constant Field Values

ADAPTER_STRATEGY_DEFAULT

public static final int ADAPTER_STRATEGY_DEFAULT
Default mode: EJClient and EJServer will send and receive respectively serialize and deserialize objects with a SerializeAdapter. EJClient will return server responses as deserialized object instances.

See Also:
Constant Field Values

ADAPTER_STRATEGY_DIRECT

public static final int ADAPTER_STRATEGY_DIRECT
Direct mode: EJClient and EJServer will just take ByteBuffers and exchange them directly without a SerializeAdapter.

See Also:
Constant Field Values

ADAPTER_STRATEGY_MIXED

public static final int ADAPTER_STRATEGY_MIXED
Mixed mode: EJClient and EJServer will send and receive respectively serialize and deserialize objects with a SerializeAdapter similiar to EJClient#ADAPTER_STRATEGY_DEFAULT but EJClient will not deserialize server responses to objects, it will just return the serialized representation of the response as written by the SerializeAdapter of EJServer. Hence if you use a xml based adapter EJClient will return the xml representation of the response.

See Also:
Constant Field Values

IPTOS_THROUGHPUT

public static final int IPTOS_THROUGHPUT
default socket option

See Also:
Constant Field Values

JAVA_VERSION

public static final java.lang.String JAVA_VERSION
the Java version, eg. 1.4.2_08 or 1.5.0_06


JAVA_VERSION_INT

public static int JAVA_VERSION_INT
the Java version converted to int, eg. 1.4.2_08 = 142, 1.5.0_06 = 150

Constructor Detail

EJConstants

public EJConstants()


Copyright © 2005-2007 netseeker. All Rights Reserved.