public interface IRemoteProxyMaker
Modifier and Type | Field and Description |
---|---|
static int |
OPTION_CLOSE_ON_TIMEOUT |
static int |
OPTION_IS_MULTITHREADED |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the connection, after which calls to any proxies created will fail.
|
Object |
createProxy()
Create and return an Object that implements the interface supported by this
IRemoteProxyMaker.
|
Object |
createTestConnection(Object serverObject)
Create a local MemoryStream connection across which remote calls will
be made.
|
Handle |
getRunningHandle()
Get a Handle that can be used to monitor the connection.
|
long |
getTimeOut()
Get the timeout for receiving responses from remote calls in
milliseconds.
|
boolean |
isOpen()
Return if the connection is open.
|
Handle |
makeServerObject(Object serverObject,
Object inputChannel,
Object outputChannel)
Used on the server side to make a connection over the input/output channels such that the
specified serverObject acts as a server Object for incoming remote
method calls on the inputChannel.
|
void |
setConnection(Object inputChannel,
Object outputChannel)
Setup the connection for the client.
|
void |
setTimeOut(long timeoutInMillis)
Set the timeout for receiving responses from remote calls.
|
static final int OPTION_IS_MULTITHREADED
static final int OPTION_CLOSE_ON_TIMEOUT
void setTimeOut(long timeoutInMillis)
timeoutInMillis
- the maximum time in milliseconds
to wait for a response from the remote object.long getTimeOut()
Object createProxy()
Handle getRunningHandle()
void close()
boolean isOpen()
void setConnection(Object inputChannel, Object outputChannel) throws IOException
inputChannel
- - this can be an InputStream, a BlockInputStream or a Socket.outputChannel
- - this can be an OutputStream, a BlockOutputStream or a Socket.IOException
- on any IO error.Handle makeServerObject(Object serverObject, Object inputChannel, Object outputChannel) throws IOException
serverObject
- the object that implements the interface.inputChannel
- this can be an InputStream, a BlockInputStream or
a Socket.outputChannel
- this can be an OutputStream, a BlockOutputStream or
a Socket.IOException
- on any IO error.Object createTestConnection(Object serverObject) throws IOException
serverObject
- the serverObject that will have calls invoked on it
over the connection link.IOException
- on any IO error, which should be none since a
MemoryStream is used.