|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.netseeker.ejoe.EJClient
This is the client component of EJOE. You have to use this component to send and retrieve data to/from a EJOE server.
| Constructor Summary | |
EJClient()
Creates an instance of the EJOE client pre-configured with settings from the global ejoe.properties file. |
|
EJClient(java.lang.String pathToConfigFile)
Creates an instance of the EJOE client pre-configured with settings from a global properties file. |
|
EJClient(java.lang.String host,
int port)
Creates an instance of the EJOE client preconfigured to use an instance of de.netseeker.ejoe.adapter.ObjectStreamAdapter for (de)serializing. |
|
EJClient(java.lang.String host,
int port,
int classLoaderPort,
SerializeAdapter adapter)
Creates an instance of the EJOE client with remote classloading enabled. |
|
EJClient(java.lang.String host,
int port,
SerializeAdapter adapter)
Creates an instance of the EJOE client. |
|
| Method Summary | |
void |
close()
Closes an existing persistent connection to the corresponding EJOE server. |
void |
enableCompression(boolean enable)
Tells this client to use compression (if supported by the server) or not. |
void |
enableCompression(int compressionLevel)
Tells this client to use compression (if supported by the server) with the given compression level. |
void |
enablePersistentConnection(boolean enable)
Enables/disables usage of a persistent connection. |
void |
enableRemoteClassloading()
Enables remote classloading on the default remote port. |
void |
enableRemoteClassloading(int port)
Enables remote classloading on the given remote port |
java.lang.Object |
execute(java.lang.Object obj)
Main entry point for client tier implementations. |
void |
setConnectionTimeout(int timeout)
Sets the connection timeout used when waiting for server responses. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EJClient()
public EJClient(java.lang.String pathToConfigFile)
pathToConfigFile - path to the properties file
public EJClient(java.lang.String host,
int port)
host - address (dns name or ip address) of the EJOE serverport - port which the EJOE server listens to
public EJClient(java.lang.String host,
int port,
SerializeAdapter adapter)
host - address (dns name or ip address) of the EJOE serverport - port which the EJOE server listens toadapter - the adapter used for (de)serializing input paramter objects for the server and the return values
public EJClient(java.lang.String host,
int port,
int classLoaderPort,
SerializeAdapter adapter)
host - address (dns name or ip address) of the EJOE serverport - port which the EJOE server listens toclassLoaderPort - port which the EJOE class loader server listens toadapter - the adapter used for (de)serializing input paramter objects for the server and the return values| Method Detail |
public void setConnectionTimeout(int timeout)
timeout - the new timeout in millisecondspublic void enableCompression(boolean enable)
enable - public void enableCompression(int compressionLevel)
compressionLevel - the level of compression to use, must be in range of 0-9public void enablePersistentConnection(boolean enable)
enable - public void enableRemoteClassloading(int port)
port - port on which the EJOE classloader server listenspublic void enableRemoteClassloading()
public java.lang.Object execute(java.lang.Object obj)
throws java.io.IOException
obj - input objects for the EJOE Server
java.io.IOExceptionpublic void close()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||