Module org.cojen.dirmi
Package org.cojen.dirmi
package org.cojen.dirmi
Dirmi is a framework for supporting bidirectional remote method invocation. For launching a
server,
create an Environment, export a remote object, and start accepting connections. For
connecting a client, create an Environment, connect to
the server, and obtain the root object. Here is a very simple example,
starting with the remote interface:
The server-side implementation looks like this:
And here is the client-side implementation:
- See Also:
-
ClassDescriptionDesignates a remote method as being batched, which can be used to reduce transport overhead.Defines a custom class loading scheme.Generic exception indicating that a resource is closed.Defines a function which is called whenever client-side socket connections need to be established.Exception which indicates that a session is disconnected, but a reconnect is in progress.Thrown when attempting to invoke a method against a disposed object.Designates a remote method as being a
Remoteobject disposer, allowing memory to be freed on the remote side.Sharable environment for connecting and accepting remote sessions.Represents an established connection between two endpoints.Designates a remote method which doesn't block reading a reply or acknowledgment.Thrown when attempting to invoke a method against an object that is unknown to asession.A pipe is a bidirectional stream which supports basic object serialization.Marker for designating a remote interface.Defines the default exception for indicating a remote call failure.Annotate a remote method or interface to specify what exception is to be used for indicating a remote call failure.Designates a remote method which returns a remote object which should be restored when a session reconnects.Indicates that a remote method should use Java object serialization for the parameters and return value.Supports writing and reading of object instances to/from a pipe.Session<R>Manages a client-side or server-side remote session, which establishes new socket connections as needed.Indicates the session's current connection state.Remote objects implementing this interface are notified when they are attached and detached from sessions.Designates a remote method which should never be included in abatchedrequest.Thrown when attempting to invoke a method which is unimplemented on the remote side.