public abstract class Server
extends java.lang.Object
start() and finally disposed through close().
Further reuse of the same instance is not supported.| Constructor and Description |
|---|
Server() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Stops the management of the Remote Adapter and destroys
the threads used by this Server.
|
ExceptionHandler |
getExceptionHandler()
Gets the handler for error conditions occurring on the Remote Server.
|
java.lang.String |
getName()
Gets the name, used for logging purposes, associated to the Server instance.
|
java.io.OutputStream |
getNotifyStream()
Gets the stream used by the Remote Adapter in order to send asyncronous
data to the Remote Adapter.
|
java.io.OutputStream |
getReplyStream()
Gets the stream used by the Remote Adapter in order to forward the answers
to the Proxy Adapter.
|
java.io.InputStream |
getRequestStream()
Gets the stream used by the Proxy Adapter in order to forward the requests
to the Remote Adapter.
|
void |
setExceptionHandler(ExceptionHandler handler)
Sets the handler for error conditions occurring on the Remote Server.
|
static void |
setLoggerProvider(LoggerProvider loggerProvider)
Sets the LoggerProvider instance that will be used by the classes of the library to obtain Logger instances
used to propagate internal logging.
|
void |
setName(java.lang.String name)
Sets a name for the Server instance; used for logging purposes.
|
void |
setNotifyStream(java.io.OutputStream outputStream)
Sets the stream used by the Remote Adapter in order to send asyncronous
data to the Remote Adapter.
|
void |
setReplyStream(java.io.OutputStream outputStream)
Sets the stream used by the Remote Adapter in order to forward the answers
to the Proxy Adapter.
|
void |
setRequestStream(java.io.InputStream inputStream)
Sets the stream used by the Proxy Adapter in order to forward the requests
to the Remote Adapter.
|
void |
start()
Starts the Remote Adapter.
|
public final void setName(java.lang.String name)
name - a name to identify the instance.public final java.lang.String getName()
public final void setRequestStream(java.io.InputStream inputStream)
inputStream - the stream used by the Proxy Adapter in order to forward the requests
to the Remote Adapterpublic final java.io.InputStream getRequestStream()
public final void setReplyStream(java.io.OutputStream outputStream)
outputStream - the stream used by the Remote Adapter in order to forward the answers
to the Proxy Adapter.public final java.io.OutputStream getReplyStream()
public final void setNotifyStream(java.io.OutputStream outputStream)
outputStream - the stream used by the Remote Adapter in order to send asyncronous
data to the Remote Adapter.public final java.io.OutputStream getNotifyStream()
public final void setExceptionHandler(ExceptionHandler handler)
handler - the handler for error conditions occurring on the Remote Server.public final ExceptionHandler getExceptionHandler()
public final void start()
throws RemotingException,
DataProviderException,
MetadataProviderException
RemotingException - An error occurred in the initialization
phase. The adapter was not started.DataProviderException - An error occurred in the initialization
phase. The adapter was not started.MetadataProviderException - An error occurred in the initialization
phase. The adapter was not started.public final void close()
public static void setLoggerProvider(LoggerProvider loggerProvider)
loggerProvider - Will be responsible to provide Logger instances to the various classes of the library.