Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

accept(SessionListener) - Method in class org.cojen.dirmi.core.StandardSessionAcceptor
 
accept() - Method in class org.cojen.dirmi.io.BasicChannelBrokerAcceptor
 
accept(long, TimeUnit) - Method in class org.cojen.dirmi.io.BasicChannelBrokerAcceptor
 
accept(Timer) - Method in class org.cojen.dirmi.io.BasicChannelBrokerAcceptor
 
accept(ChannelBrokerAcceptor.Listener) - Method in class org.cojen.dirmi.io.BasicChannelBrokerAcceptor
 
accept() - Method in interface org.cojen.dirmi.io.ChannelAcceptor
Blocks until a channel is accepted.
accept(long, TimeUnit) - Method in interface org.cojen.dirmi.io.ChannelAcceptor
Blocks until a channel is accepted.
accept(Timer) - Method in interface org.cojen.dirmi.io.ChannelAcceptor
Blocks until a channel is accepted.
accept(ChannelAcceptor.Listener) - Method in interface org.cojen.dirmi.io.ChannelAcceptor
Register a listener which is asynchronously given an accepted channel.
accept() - Method in interface org.cojen.dirmi.io.ChannelBrokerAcceptor
Blocks until a broker is accepted.
accept(long, TimeUnit) - Method in interface org.cojen.dirmi.io.ChannelBrokerAcceptor
Blocks until a broker is accepted.
accept(Timer) - Method in interface org.cojen.dirmi.io.ChannelBrokerAcceptor
Blocks until a broker is accepted.
accept(ChannelBrokerAcceptor.Listener) - Method in interface org.cojen.dirmi.io.ChannelBrokerAcceptor
Register a listener which is asynchronously given an accepted broker.
accept() - Method in class org.cojen.dirmi.io.PipedChannelBroker
 
accept(long, TimeUnit) - Method in class org.cojen.dirmi.io.PipedChannelBroker
 
accept(Timer) - Method in class org.cojen.dirmi.io.PipedChannelBroker
 
accept(ChannelAcceptor.Listener) - Method in class org.cojen.dirmi.io.PipedChannelBroker
 
accept(SessionListener) - Method in interface org.cojen.dirmi.SessionAcceptor
Returns immediately and calls listener asynchronously, but no more than once.
acceptAll(Object) - Method in class org.cojen.dirmi.core.StandardSessionAcceptor
 
acceptAll(Object) - Method in interface org.cojen.dirmi.SessionAcceptor
Returns immediately and starts automatically accepting all sessions asynchronously, sending a shared object.
accepted(Channel) - Method in interface org.cojen.dirmi.io.ChannelAcceptor.Listener
Called as soon as a channel has been accepted.
accepted(ChannelBroker) - Method in interface org.cojen.dirmi.io.ChannelBrokerAcceptor.Listener
Called as soon as a broker has been accepted.
acceptFailed(IOException) - Method in interface org.cojen.dirmi.SessionListener
Called when session channel cannot be accepted.
add(C) - Method in class org.cojen.dirmi.io.CloseableGroup
Add a Closeable member to the group, which is automatically closed when group is closed.
addCloseListener(SessionCloseListener) - Method in class org.cojen.dirmi.core.StandardSession
 
addCloseListener(SessionCloseListener) - Method in interface org.cojen.dirmi.Session
Add a listener which receives notification when this session is closed.
addLocalTrace(Throwable) - Static method in class org.cojen.dirmi.util.ExceptionUtils
Augments the stack trace of the given exception with the local stack trace.
addPendingMethod(int, Method, Object, Object[], VersionedIdentifier) - Method in class org.cojen.dirmi.core.OrderedInvoker
 
addPendingMethod(int, Method, Object, Object[], VersionedIdentifier, RemoteCompletion<V>) - Method in class org.cojen.dirmi.core.OrderedInvoker
Call if method returns a Future or Completion.
ALL_OFF - Static variable in class org.cojen.dirmi.trace.TraceModes
All modes off, regardles off user Trace annotation
ALL_ON - Static variable in class org.cojen.dirmi.trace.TraceModes
All modes on, regardles off user Trace annotation
ALL_USER - Static variable in class org.cojen.dirmi.trace.TraceModes
All modes selected by user Trace annotation
Asynchronous - Annotation Type in org.cojen.dirmi
Identify a method as being asynchronous, which does not imply non-blocking.
available() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
available() - Method in class org.cojen.dirmi.io.BufferedInputStream
 
available() - Method in class org.cojen.dirmi.io.PipedInputStream
 
awaitTermination(long, TimeUnit) - Method in class org.cojen.dirmi.util.ThreadPool
 

B

BasicChannelBrokerAcceptor - Class in org.cojen.dirmi.io
Paired with BasicChannelBrokerConnector to adapt a ChannelAcceptor into a ChannelBrokerAcceptor.
BasicChannelBrokerAcceptor(IOExecutor, ChannelAcceptor) - Constructor for class org.cojen.dirmi.io.BasicChannelBrokerAcceptor
 
BasicChannelBrokerConnector - Class in org.cojen.dirmi.io
Paired with BasicChannelBrokerAcceptor to adapt a ChannelConnector into a ChannelBrokerConnector.
BasicChannelBrokerConnector(IOExecutor, ChannelConnector) - Constructor for class org.cojen.dirmi.io.BasicChannelBrokerConnector
 
Batched - Annotation Type in org.cojen.dirmi
Identify a method as being batched and asynchronous, which does not imply non-blocking.
batched(InvocationChannel) - Method in interface org.cojen.dirmi.core.StubSupport
Called after batched request is sent over channel and current thread should hold channel.
batchedAndCancelTimeout(InvocationChannel) - Method in interface org.cojen.dirmi.core.StubSupport
Called after batched request is sent over channel and current thread should hold channel.
BatchedInvocationException - Exception in org.cojen.dirmi.core
If an exception is thrown from a skeleton-invoked method which is batched, it must be thrown from the first non-batched method encountered in the batch stream.
BufferedInputStream - Class in org.cojen.dirmi.io
Replacement for BufferedInputStream.
BufferedInputStream(InputStream) - Constructor for class org.cojen.dirmi.io.BufferedInputStream
 
BufferedInputStream(InputStream, int) - Constructor for class org.cojen.dirmi.io.BufferedInputStream
 
BufferedOutputStream - Class in org.cojen.dirmi.io
Replacement for BufferedOutputStream which does a better job of buffer packing.
BufferedOutputStream(OutputStream) - Constructor for class org.cojen.dirmi.io.BufferedOutputStream
 
BufferedOutputStream(OutputStream, int) - Constructor for class org.cojen.dirmi.io.BufferedOutputStream
 
BufferedSocketChannelAcceptor - Class in org.cojen.dirmi.io
Implements an acceptor using TCP/IP.
BufferedSocketChannelAcceptor(IOExecutor, SocketAddress) - Constructor for class org.cojen.dirmi.io.BufferedSocketChannelAcceptor
 
BufferedSocketChannelAcceptor(IOExecutor, SocketAddress, ServerSocket) - Constructor for class org.cojen.dirmi.io.BufferedSocketChannelAcceptor
 
BufferedSocketChannelConnector - Class in org.cojen.dirmi.io
Implements a connector using TCP/IP.
BufferedSocketChannelConnector(IOExecutor, SocketAddress) - Constructor for class org.cojen.dirmi.io.BufferedSocketChannelConnector
 
BufferedSocketChannelConnector(IOExecutor, SocketAddress, SocketAddress) - Constructor for class org.cojen.dirmi.io.BufferedSocketChannelConnector
 
BufferedSocketChannelConnector(IOExecutor, SocketAddress, SocketAddress, SocketFactory) - Constructor for class org.cojen.dirmi.io.BufferedSocketChannelConnector
 

C

Cache<K,V> - Class in org.cojen.dirmi.util
Deprecated.
use Cojen Cache interface
Cache() - Constructor for class org.cojen.dirmi.util.Cache
Deprecated.
 
CallMode - Enum in org.cojen.dirmi
Various Asynchronous and Batched calling modes.
cancelTimeout() - Method in interface org.cojen.dirmi.Pipe
Cancels a timeout task which was started by startTimeout or an initial timeout when using the eventual calling mode.
Channel - Interface in org.cojen.dirmi.io
Basic interface for a blocking bidirectional I/O channel.
Channel.Listener - Interface in org.cojen.dirmi.io
 
Channel.Recycler - Interface in org.cojen.dirmi.io
 
ChannelAcceptor - Interface in org.cojen.dirmi.io
Asynchronously accepts channels from a remote endpoint.
ChannelAcceptor.Listener - Interface in org.cojen.dirmi.io
Listener for acceping channels asynchronously.
ChannelBroker - Interface in org.cojen.dirmi.io
Accepts and connects channels between the same endpoints.
ChannelBrokerAcceptor - Interface in org.cojen.dirmi.io
 
ChannelBrokerAcceptor.Listener - Interface in org.cojen.dirmi.io
Listener for acceping channels asynchronously.
ChannelBrokerConnector - Interface in org.cojen.dirmi.io
 
ChannelBrokerConnector.Listener - Interface in org.cojen.dirmi.io
Listener for acceping channels asynchronously.
ChannelConnector - Interface in org.cojen.dirmi.io
Supports direct channel connection to a remote endpoint.
ChannelConnector.Listener - Interface in org.cojen.dirmi.io
Listener for acceping channels asynchronously.
checkClosed() - Method in class org.cojen.dirmi.io.CloseableGroup
 
checkRemaining(Timer) - Static method in exception org.cojen.dirmi.RemoteTimeoutException
Checks remaining duration and throws a RemoteTimeoutException if none left.
ClassResolver - Interface in org.cojen.dirmi
Defines a custom class loading scheme for a Session.
clear() - Method in class org.cojen.dirmi.util.Cache
Deprecated.
 
close() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
close() - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
close() - Method in class org.cojen.dirmi.core.OrderedInvoker
 
close() - Method in class org.cojen.dirmi.core.StandardSession
 
close() - Method in class org.cojen.dirmi.core.StandardSessionAcceptor
 
close() - Method in class org.cojen.dirmi.Environment
Closes all existing sessions and then shuts down the thread pool.
close() - Method in class org.cojen.dirmi.io.BasicChannelBrokerAcceptor
 
close() - Method in class org.cojen.dirmi.io.BasicChannelBrokerConnector
 
close() - Method in class org.cojen.dirmi.io.BufferedInputStream
 
close() - Method in class org.cojen.dirmi.io.BufferedOutputStream
 
close() - Method in interface org.cojen.dirmi.io.Channel
Close channel, flushing any remaining output first.
close() - Method in interface org.cojen.dirmi.io.ChannelAcceptor
Prevents new channels from being accepted and closes all accepted channels.
close() - Method in interface org.cojen.dirmi.io.ChannelBrokerAcceptor
Prevents new brokers from being accepted and closes all accepted brokers.
close() - Method in interface org.cojen.dirmi.io.ChannelBrokerConnector
Prevents new brokers from being connected and closes all connected brokers.
close() - Method in interface org.cojen.dirmi.io.ChannelConnector
Prevents new channels from being connected and closes all connected channels.
close() - Method in class org.cojen.dirmi.io.CloseableGroup
Closes the group and all group members.
close() - Method in class org.cojen.dirmi.io.PipedChannelBroker
 
close() - Method in class org.cojen.dirmi.io.PipedInputStream
 
close() - Method in class org.cojen.dirmi.io.PipedOutputStream
 
close() - Method in class org.cojen.dirmi.io.RecyclableSocketChannelSelector
 
close() - Method in interface org.cojen.dirmi.Pipe
Closes both the input and output of the pipe.
close() - Method in interface org.cojen.dirmi.Session
Closes the session.
close() - Method in interface org.cojen.dirmi.SessionAcceptor
Prevents new sessions from being accepted and closes all existing sessions created from this acceptor.
CloseableGroup<C extends Closeable> - Class in org.cojen.dirmi.io
Set of Closeable objects which can be closed as a unit.
CloseableGroup() - Constructor for class org.cojen.dirmi.io.CloseableGroup
 
closed(IOException) - Method in interface org.cojen.dirmi.io.Channel.Listener
Called if listener notification failed because channel is closed.
closed(IOException) - Method in interface org.cojen.dirmi.io.ChannelAcceptor.Listener
Called when channel cannot be accepted because acceptor is closed.
closed(IOException) - Method in interface org.cojen.dirmi.io.ChannelBrokerAcceptor.Listener
Called when broker cannot be accepted because acceptor is closed.
closed(IOException) - Method in interface org.cojen.dirmi.io.ChannelBrokerConnector.Listener
Called when broker cannot be connected because connector is closed.
closed(IOException) - Method in interface org.cojen.dirmi.io.ChannelConnector.Listener
Called when channel cannot be connected because connector is closed.
closed(Link, SessionCloseListener.Cause) - Method in interface org.cojen.dirmi.SessionCloseListener
Called at most once by a session, after it has closed.
ClosedException - Exception in org.cojen.dirmi
Generic exception indicating that an I/O channel is closed.
ClosedException() - Constructor for exception org.cojen.dirmi.ClosedException
 
ClosedException(String) - Constructor for exception org.cojen.dirmi.ClosedException
 
ClosedException(Throwable) - Constructor for exception org.cojen.dirmi.ClosedException
 
ClosedException(String, Throwable) - Constructor for exception org.cojen.dirmi.ClosedException
 
complete(V) - Method in interface org.cojen.dirmi.core.RemoteCompletion
 
complete(V) - Static method in class org.cojen.dirmi.Response
Returns a Completion which always returns the given value.
Completion<V> - Interface in org.cojen.dirmi
A Completion is a Future which also allows registration into a completion queue.
completion(Future<V>, RemoteCompletion<V>) - Method in interface org.cojen.dirmi.core.SkeletonSupport
Used by asynchronous methods which return a Future to write completion response.
connect() - Method in class org.cojen.dirmi.io.BasicChannelBrokerConnector
 
connect(long, TimeUnit) - Method in class org.cojen.dirmi.io.BasicChannelBrokerConnector
 
connect(Timer) - Method in class org.cojen.dirmi.io.BasicChannelBrokerConnector
 
connect(ChannelBrokerConnector.Listener) - Method in class org.cojen.dirmi.io.BasicChannelBrokerConnector
 
connect() - Method in interface org.cojen.dirmi.io.ChannelBrokerConnector
Returns a new broker, possibly blocking until it has been established.
connect(long, TimeUnit) - Method in interface org.cojen.dirmi.io.ChannelBrokerConnector
Returns a new broker, possibly blocking until it has been established.
connect(Timer) - Method in interface org.cojen.dirmi.io.ChannelBrokerConnector
Returns a new broker, possibly blocking until it has been established.
connect(ChannelBrokerConnector.Listener) - Method in interface org.cojen.dirmi.io.ChannelBrokerConnector
Register a listener which is asynchronously given a connected broker.
connect() - Method in interface org.cojen.dirmi.io.ChannelConnector
Returns a new channel, possibly blocking until it has been established.
connect(long, TimeUnit) - Method in interface org.cojen.dirmi.io.ChannelConnector
Returns a new channel, possibly blocking until it has been established.
connect(Timer) - Method in interface org.cojen.dirmi.io.ChannelConnector
Returns a new channel, possibly blocking until it has been established.
connect(ChannelConnector.Listener) - Method in interface org.cojen.dirmi.io.ChannelConnector
Register a listener which is asynchronously given a connected channel.
connect() - Method in class org.cojen.dirmi.io.PipedChannelBroker
 
connect(long, TimeUnit) - Method in class org.cojen.dirmi.io.PipedChannelBroker
 
connect(Timer) - Method in class org.cojen.dirmi.io.PipedChannelBroker
 
connect(ChannelConnector.Listener) - Method in class org.cojen.dirmi.io.PipedChannelBroker
 
connect() - Method in interface org.cojen.dirmi.SessionConnector
Returns a new session, blocking until it has been established.
connect(long, TimeUnit) - Method in interface org.cojen.dirmi.SessionConnector
Returns a new session, blocking until it has been established.
connected(ChannelBroker) - Method in interface org.cojen.dirmi.io.ChannelBrokerConnector.Listener
Called as soon as a broker has been connected.
connected(Channel) - Method in interface org.cojen.dirmi.io.ChannelConnector.Listener
Called as soon as a channel has been connected.
ConnectException - Exception in org.cojen.dirmi
Thrown if a connection is refused to the remote host for a remote method call.
ConnectException(String) - Constructor for exception org.cojen.dirmi.ConnectException
 
ConnectException(String, Exception) - Constructor for exception org.cojen.dirmi.ConnectException
 
copyKeysInto(Collection<? super K>) - Method in class org.cojen.dirmi.util.Cache
Deprecated.
 
create(IOExecutor, ChannelBroker) - Static method in class org.cojen.dirmi.core.StandardSession
 
create(IOExecutor, ChannelBroker, long, TimeUnit) - Static method in class org.cojen.dirmi.core.StandardSession
 
create(IOExecutor, ChannelBroker, Timer) - Static method in class org.cojen.dirmi.core.StandardSession
 
create(Environment, ChannelBrokerAcceptor) - Static method in class org.cojen.dirmi.core.StandardSessionAcceptor
 
createBatchedRemote(Class<T>, InvocationChannel, Class<R>) - Method in interface org.cojen.dirmi.core.StubSupport
Used by batched methods which return a Remote object.
createCompletion(Object) - Method in interface org.cojen.dirmi.core.StubSupport
Used by asynchronous methods which return a Future or Completion.
createOrderedInvoker() - Method in interface org.cojen.dirmi.core.SkeletonSupport
Called if Skeleton needs to support ordered method invocation.
createSkeleton(VersionedIdentifier, SkeletonSupport, R) - Method in interface org.cojen.dirmi.core.SkeletonFactory
 
createStub(StubSupport) - Method in interface org.cojen.dirmi.core.StubFactory
 
current() - Static method in class org.cojen.dirmi.SessionAccess
Returns the current thread-local session link.

D

days(long) - Static method in class org.cojen.dirmi.util.Timer
Returns a new days Timer.
disconnect() - Method in class org.cojen.dirmi.io.BufferedInputStream
 
disconnect() - Method in class org.cojen.dirmi.io.BufferedOutputStream
 
disconnect() - Method in interface org.cojen.dirmi.io.Channel
Forcibly close channel, potentially discarding unflushed output and any exceptions.
dispose(VersionedIdentifier) - Method in interface org.cojen.dirmi.core.SkeletonSupport
Called by a disposer method when finished executing.
dispose() - Method in interface org.cojen.dirmi.core.StubSupport
Returns a StubSupport instance which throws NoSuchObjectException for all of the above methods.
Disposer - Annotation Type in org.cojen.dirmi
Identify a method as being a disposer of the enclosing remote object.
doRun() - Method in class org.cojen.dirmi.util.ScheduledTask
 
drain() - Method in class org.cojen.dirmi.core.DrainableObjectOutputStream
 
drain() - Method in class org.cojen.dirmi.io.BufferedOutputStream
Ensures at least one byte can be written, blocking if necessary.
DrainableObjectOutputStream - Class in org.cojen.dirmi.core
 
DrainableObjectOutputStream() - Constructor for class org.cojen.dirmi.core.DrainableObjectOutputStream
 
DrainableObjectOutputStream(OutputStream) - Constructor for class org.cojen.dirmi.core.DrainableObjectOutputStream
 
duration() - Method in class org.cojen.dirmi.util.Timer
Returns original fixed duration of this Timer.

E

enterMethod(int) - Method in class org.cojen.dirmi.trace.NullHandler
 
enterMethod(int, Object) - Method in class org.cojen.dirmi.trace.NullHandler
 
enterMethod(int, Object...) - Method in class org.cojen.dirmi.trace.NullHandler
 
enterMethod(int) - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
 
enterMethod(int, Object) - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
 
enterMethod(int, Object...) - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
 
enterMethod(int) - Method in interface org.cojen.dirmi.trace.TraceHandler
Called by a traced method upon entry.
enterMethod(int, Object) - Method in interface org.cojen.dirmi.trace.TraceHandler
Called by a traced method upon entry.
enterMethod(int, Object...) - Method in interface org.cojen.dirmi.trace.TraceHandler
Called by a traced method upon entry.
Environment - Class in org.cojen.dirmi
Sharable environment for connecting and accepting remote sessions.
Environment() - Constructor for class org.cojen.dirmi.Environment
Construct environment which uses up to 1000 threads.
Environment(int) - Constructor for class org.cojen.dirmi.Environment
Construct environment with the given maximum number of threads.
Environment(int, String, Thread.UncaughtExceptionHandler) - Constructor for class org.cojen.dirmi.Environment
Construct environment with the given maximum number of threads, thread name prefix, and uncaught exception handler.
Environment(ScheduledExecutorService) - Constructor for class org.cojen.dirmi.Environment
Construct environment with a custom executor.
equals(Object) - Method in interface org.cojen.dirmi.core.Stub
Stubs are considered equal if they have the same remote object identifier.
equals(Object) - Method in class org.cojen.dirmi.trace.TraceModes
 
equalTypes(RemoteParameter) - Method in interface org.cojen.dirmi.info.RemoteParameter
 
established(Session) - Method in interface org.cojen.dirmi.SessionListener
Called at most once as soon as session has been established.
establishFailed(IOException) - Method in interface org.cojen.dirmi.SessionListener
Called when session channel was accepted, but session was terminated before establishment completed.
examine(Class<? extends Remote>) - Static method in class org.cojen.dirmi.info.RemoteIntrospector
 
exception(Throwable) - Method in interface org.cojen.dirmi.core.RemoteCompletion
 
exception(Throwable) - Static method in class org.cojen.dirmi.Response
Returns a Completion which always throws an ExecutionException wrapping the given cause.
ExceptionUtils - Class in org.cojen.dirmi.util
 
ExceptionUtils() - Constructor for class org.cojen.dirmi.util.ExceptionUtils
 
execute(Runnable) - Method in class org.cojen.dirmi.io.IOExecutor
 
execute(Runnable) - Method in class org.cojen.dirmi.util.ThreadPool
 
execute(Runnable) - Method in class org.cojen.dirmi.util.ThrottledExecutor
Queues the command for later execution, or executes it immediately.
executor() - Method in class org.cojen.dirmi.Environment
Returns the executor used by this environment.
executor() - Method in class org.cojen.dirmi.io.RecyclableSocketChannelSelector
 
executor() - Method in interface org.cojen.dirmi.io.SocketChannelSelector
 
exitMethod(int) - Method in class org.cojen.dirmi.trace.NullHandler
 
exitMethod(int, long) - Method in class org.cojen.dirmi.trace.NullHandler
 
exitMethod(int, Object) - Method in class org.cojen.dirmi.trace.NullHandler
 
exitMethod(int, Object, long) - Method in class org.cojen.dirmi.trace.NullHandler
 
exitMethod(int, Throwable) - Method in class org.cojen.dirmi.trace.NullHandler
 
exitMethod(int, Throwable, long) - Method in class org.cojen.dirmi.trace.NullHandler
 
exitMethod(int) - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
 
exitMethod(int, long) - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
 
exitMethod(int, Object) - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
 
exitMethod(int, Object, long) - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
 
exitMethod(int, Throwable) - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
 
exitMethod(int, Throwable, long) - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
 
exitMethod(int) - Method in interface org.cojen.dirmi.trace.TraceHandler
Called by a traced method upon exit.
exitMethod(int, long) - Method in interface org.cojen.dirmi.trace.TraceHandler
Called by a traced method upon exit.
exitMethod(int, Object) - Method in interface org.cojen.dirmi.trace.TraceHandler
Called by a traced method upon exit.
exitMethod(int, Object, long) - Method in interface org.cojen.dirmi.trace.TraceHandler
Called by a traced method upon exit.
exitMethod(int, Throwable) - Method in interface org.cojen.dirmi.trace.TraceHandler
Called by a traced method upon exit caused by a thrown exception.
exitMethod(int, Throwable, long) - Method in interface org.cojen.dirmi.trace.TraceHandler
Called by a traced method upon exit caused by a thrown exception.

F

failed(Class<T>, InvocationChannel, Throwable) - Method in interface org.cojen.dirmi.core.StubSupport
Called if invocation failed due to a problem with the channel, and it should be closed.
failed(IOException) - Method in interface org.cojen.dirmi.io.ChannelAcceptor.Listener
Called when channel cannot be accepted, but does not imply that acceptor is closed.
failed(IOException) - Method in interface org.cojen.dirmi.io.ChannelBrokerAcceptor.Listener
Called when broker cannot be accepted, but does not imply that acceptor is closed.
failed(IOException) - Method in interface org.cojen.dirmi.io.ChannelBrokerConnector.Listener
Called when channel cannot be connected.
failed(IOException) - Method in interface org.cojen.dirmi.io.ChannelConnector.Listener
Called when channel cannot be connected.
failedAndCancelTimeout(Class<T>, InvocationChannel, Throwable, long, TimeUnit) - Method in interface org.cojen.dirmi.core.StubSupport
Called if invocation failed due to a problem with the channel, and it should be closed.
failedAndCancelTimeout(Class<T>, InvocationChannel, Throwable, double, TimeUnit) - Method in interface org.cojen.dirmi.core.StubSupport
Called if invocation failed due to a problem with the channel, and it should be closed.
failedBatchedRemote(Class<R>, Throwable) - Method in interface org.cojen.dirmi.core.SkeletonSupport
Used by batched methods which return a Remote object.
fill() - Method in class org.cojen.dirmi.io.BufferedInputStream
Ensures at least one byte can be read, blocking if necessary.
finished(int) - Method in class org.cojen.dirmi.core.OrderedInvoker
 
finished(InvocationChannel, boolean) - Method in interface org.cojen.dirmi.core.SkeletonSupport
Called after synchronous method is finished with channel.
finished(InvocationChannel, Throwable) - Method in interface org.cojen.dirmi.core.SkeletonSupport
Called after synchronous method threw an exception and is finished with channel.
finished(InvocationChannel, boolean) - Method in interface org.cojen.dirmi.core.StubSupport
Called after channel usage is finished and can be reused for sending new requests.
finishedAndCancelTimeout(InvocationChannel, boolean) - Method in interface org.cojen.dirmi.core.StubSupport
Called after channel usage is finished and can be reused for sending new requests.
finishedAsync(InvocationChannel) - Method in interface org.cojen.dirmi.core.SkeletonSupport
Called after asynchronous method is finished with channel.
flush() - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
flush() - Method in class org.cojen.dirmi.core.StandardSession
 
flush() - Method in class org.cojen.dirmi.io.BufferedOutputStream
 
flush() - Method in interface org.cojen.dirmi.Pipe
Flushes the pipe by writing any buffered output to the transport layer.
flush() - Method in interface org.cojen.dirmi.Session
Flushes all channels of this session, including channels used for batch calls and eventual asynchronous methods.
from(Class<B>, Class<D>) - Static method in class org.cojen.dirmi.util.Wrapper
Generates a wrapper from a base type and delegate type.

G

get() - Method in class org.cojen.dirmi.core.LocalSession
 
get(K) - Method in class org.cojen.dirmi.util.Cache
Deprecated.
 
getAgentId() - Method in class org.cojen.dirmi.trace.TraceAgent
 
getArguments() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler.Scope
Returns the arguments passed to the first invocation of the method that initiated this scope.
getAsynchronousCallMode() - Method in interface org.cojen.dirmi.info.RemoteMethod
Returns the asynchronous call mode, or null if not asynchronous.
getCallCount() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler.MethodData
Returns the amount of times the traced method was called, which is always at least one.
getCause() - Method in exception org.cojen.dirmi.ReconstructedException
Returns the Throwable which was reconstructed, or null if not possible.
getConstructor(Class<?>...) - Method in class org.cojen.dirmi.util.Wrapper
Returns a constructor for the generated wrapper.
getDeclaringClass() - Method in class org.cojen.dirmi.trace.TracedMethod
Returns the method's declaring class, or null if garbage collected.
getException() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler.Scope
Returns the exception thrown from the first invocation of the method that initiated this scope.
getExceptionTypes() - Method in interface org.cojen.dirmi.info.RemoteMethod
Returns the method exception types in an unmodifiable set.
getExtraData() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler.Scope
Returns extra data stored in this scope, which may be empty.
getInfoId() - Method in interface org.cojen.dirmi.info.RemoteInfo
Returns a unique identifier for the remote interface.
getInputStream() - Method in interface org.cojen.dirmi.core.InvocationChannel
 
getInputStream() - Method in interface org.cojen.dirmi.io.Channel
Returns an input stream for the channel, which when closed, closes the channel.
getInputStream() - Method in interface org.cojen.dirmi.Pipe
Returns the pipe's InputStream which also implements ObjectInput.
getInterfaceNames() - Method in interface org.cojen.dirmi.info.RemoteInfo
Returns the names of all remote interfaces implemented by this RemoteInfo, in an unmodifiable set.
getLocalAddress() - Method in class org.cojen.dirmi.core.StandardSession
 
getLocalAddress() - Method in class org.cojen.dirmi.core.StandardSessionAcceptor
 
getLocalAddress() - Method in class org.cojen.dirmi.io.BasicChannelBrokerAcceptor
 
getLocalAddress() - Method in class org.cojen.dirmi.io.BasicChannelBrokerConnector
 
getLocalAddress() - Method in interface org.cojen.dirmi.io.ChannelAcceptor
 
getLocalAddress() - Method in interface org.cojen.dirmi.io.ChannelBrokerAcceptor
 
getLocalAddress() - Method in interface org.cojen.dirmi.io.ChannelBrokerConnector
 
getLocalAddress() - Method in interface org.cojen.dirmi.io.ChannelConnector
 
getLocalAddress() - Method in class org.cojen.dirmi.io.PipedChannelBroker
 
getLocalAddress() - Method in interface org.cojen.dirmi.Link
 
getLocalAddress() - Method in interface org.cojen.dirmi.Session
 
getLocalAddress() - Method in interface org.cojen.dirmi.SessionAcceptor
 
getLocalAddress() - Method in interface org.cojen.dirmi.SessionConnector
 
getMethodData() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler.Scope
Returns data for each traced method in this scope.
getMethodId() - Method in interface org.cojen.dirmi.info.RemoteMethod
Returns a unique identifier for this method, within the scope of its enclosing type.
getMethodId() - Method in class org.cojen.dirmi.trace.TracedMethod
 
getMethodName() - Method in class org.cojen.dirmi.trace.TracedMethod
Returns the method's name, or null if a constructor.
getName() - Method in interface org.cojen.dirmi.info.RemoteInfo
Returns the name of the remote interface described by this RemoteInfo, which is the same as the interface name.
getName() - Method in interface org.cojen.dirmi.info.RemoteMethod
Returns the name of this method.
getOperation() - Method in class org.cojen.dirmi.trace.TracedMethod
Returns the optional traced method operation.
getOutputStream() - Method in interface org.cojen.dirmi.core.InvocationChannel
 
getOutputStream() - Method in interface org.cojen.dirmi.io.Channel
Returns an output stream for the channel, which when closed, closes the channel.
getOutputStream() - Method in interface org.cojen.dirmi.Pipe
Returns the pipe's OutputStream which also implements ObjectOutput.
getParameterTypes() - Method in interface org.cojen.dirmi.info.RemoteMethod
Returns the method parameters in an unmodifiable list.
getParameterTypes() - Method in class org.cojen.dirmi.trace.TracedMethod
Returns the method's parameter types, which may contain null elements if they have been garbage collected.
getReconstructCause() - Method in exception org.cojen.dirmi.ReconstructedException
Returns the cause that forced the Throwable to be reconstructed.
getRemoteAddress() - Method in class org.cojen.dirmi.core.StandardSession
 
getRemoteAddress() - Method in class org.cojen.dirmi.io.BasicChannelBrokerConnector
 
getRemoteAddress() - Method in interface org.cojen.dirmi.io.ChannelBrokerConnector
 
getRemoteAddress() - Method in interface org.cojen.dirmi.io.ChannelConnector
 
getRemoteAddress() - Method in class org.cojen.dirmi.io.PipedChannelBroker
 
getRemoteAddress() - Method in interface org.cojen.dirmi.Link
 
getRemoteAddress() - Method in interface org.cojen.dirmi.Session
 
getRemoteAddress() - Method in interface org.cojen.dirmi.SessionConnector
 
getRemoteClass() - Method in exception org.cojen.dirmi.MalformedRemoteObjectException
Returns the malformed class, or null if it cannot be loaded.
getRemoteClassName() - Method in exception org.cojen.dirmi.MalformedRemoteObjectException
Returns the malformed class name.
getRemoteFailureException() - Method in interface org.cojen.dirmi.info.RemoteMethod
 
getRemoteMethod(String, RemoteParameter<?>...) - Method in interface org.cojen.dirmi.info.RemoteInfo
 
getRemoteMethods() - Method in interface org.cojen.dirmi.info.RemoteInfo
Returns all remote methods in an unmodifiable set.
getRemoteMethods(String) - Method in interface org.cojen.dirmi.info.RemoteInfo
Returns all remote methods by the given name in an unmodifiable set.
getRemoteServer() - Method in interface org.cojen.dirmi.core.Skeleton
Returns the Remote object managed by this Skeleton.
getRemoteType(R) - Static method in class org.cojen.dirmi.info.RemoteIntrospector
Returns the Remote interface implemented by the given Remote object.
getResult() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler.Scope
Returns the return value passed from the first invocation of the method that initiated this scope.
getReturnType() - Method in interface org.cojen.dirmi.info.RemoteMethod
Returns the return type of this method, which is null if void.
getReturnType() - Method in class org.cojen.dirmi.trace.TracedMethod
Returns the method's return type, which is null if void or if class has been garbage collected.
getSignature() - Method in interface org.cojen.dirmi.info.RemoteMethod
Returns a Java-syntax signature for method.
getSkeletonFactory(Class<R>) - Static method in class org.cojen.dirmi.core.SkeletonFactoryGenerator
Returns a new or cached SkeletonFactory.
getSkeletonFactory(Class<R>, RemoteInfo) - Static method in class org.cojen.dirmi.core.SkeletonFactoryGenerator
Returns a new or cached SkeletonFactory for use with remote objects served by batched methods.
getStartTimeMillis() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler.Scope
Returns the time when the scope was created, as milliseconds from 1970-01-01T00:00:00Z.
getStubFactory(Class<R>, RemoteInfo) - Static method in class org.cojen.dirmi.core.StubFactoryGenerator
Returns a new or cached StubFactory.
getThread() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler.Scope
Returns the thread that this scope ran in.
getTimeout() - Method in interface org.cojen.dirmi.info.RemoteMethod
Returns the method timeout, which was either explicitly defined or inherited from its enclosing interface.
getTimeoutUnit() - Method in interface org.cojen.dirmi.info.RemoteMethod
Returns the method timeout unit, which was either explicitly defined or inherited from its enclosing interface.
getToolbox() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
 
getTotalTimeNanos() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler.MethodData
Returns the total time spent in executing the traced method, in nanoseconds.
getTraceAgent(long) - Static method in class org.cojen.dirmi.trace.TraceAgent
Method called by instrumented class to get reference to agent.
getTraceAnnotation() - Method in interface org.cojen.dirmi.info.RemoteMethod
Returns the optional trace annotation for this method, which is not serailized.
getTraceArguments() - Method in class org.cojen.dirmi.trace.TraceModes
Returns mode for tracing the arguments of methods.
getTraceCalls() - Method in class org.cojen.dirmi.trace.TraceModes
Returns mode for tracing method calls, which is implicitly on if any other tracing feature is enabled.
getTracedMethod() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler.MethodData
Returns the method that was traced.
getTracedMethod(int) - Method in class org.cojen.dirmi.trace.TraceToolbox
Returns a previously registered method.
getTraceException() - Method in class org.cojen.dirmi.trace.TraceModes
Returns mode for tracing the thrown exception of methods.
getTraceHandler() - Method in class org.cojen.dirmi.trace.TraceAgent
Method called by instrumented class to get the trace handler.
getTraceModes(String) - Method in class org.cojen.dirmi.trace.NullHandler
 
getTraceModes(String) - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
Always returns TraceModes.ALL_USER.
getTraceModes(String) - Method in interface org.cojen.dirmi.trace.TraceHandler
Return allowed tracing modes for the given class.
getTraceResult() - Method in class org.cojen.dirmi.trace.TraceModes
Returns mode for tracing the return value of methods.
getTraceTime() - Method in class org.cojen.dirmi.trace.TraceModes
Returns mode for tracing the execution time of methods.
getType() - Method in interface org.cojen.dirmi.info.RemoteParameter
 

H

hashCode() - Method in interface org.cojen.dirmi.core.Stub
Stub hashcode is derived from remote object identifier.
hashCode() - Method in class org.cojen.dirmi.trace.TraceModes
 
hasResult() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler.Scope
Returns true if method is non-void, result tracing is enabled, and method did not throw an exception.
hasTotalTimeNanos() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler.MethodData
Returns true if total time spent in executing the traced method was captured.
hours(long) - Static method in class org.cojen.dirmi.util.Timer
Returns a new hours Timer.

I

Identifier - Class in org.cojen.dirmi.core
Object which uniquely identifies another object.
identify(Object) - Static method in class org.cojen.dirmi.core.Identifier
Returns a new or existing unique identifier for the given object.
identify(Object) - Static method in class org.cojen.dirmi.core.VersionedIdentifier
Returns a new or existing unique identifier for the given object.
inputNotify(Channel.Listener) - Method in interface org.cojen.dirmi.io.Channel
Register a listener which is asynchronously notified when a call to isInputReady will return true.
inputNotify(SocketChannel, Channel.Listener) - Method in class org.cojen.dirmi.io.RecyclableSocketChannelSelector
Register a listener which is asynchronously notified when channel can be read from.
inputNotify(SocketChannel, Channel.Listener) - Method in interface org.cojen.dirmi.io.SocketChannelSelector
Register a listener which is asynchronously notified when channel can be read from.
inputResume() - Method in class org.cojen.dirmi.io.BufferedInputStream
 
inputResume() - Method in interface org.cojen.dirmi.io.Channel
Allows input to resume after reading a suspend marker.
installRecycler(Channel.Recycler) - Method in interface org.cojen.dirmi.io.Channel
Install a recycler which is called after this channel has been closed and a recyled channel has been created.
InvocationChannel - Interface in org.cojen.dirmi.core
Basic interface for a bidirectional method invocation I/O channel.
InvocationInput - Interface in org.cojen.dirmi.core
Interface describing the low-level input operations used by remote method invocation.
InvocationInputStream - Class in org.cojen.dirmi.core
Standard implementation of InvocationInput.
InvocationInputStream(InvocationChannel, ObjectInputStream) - Constructor for class org.cojen.dirmi.core.InvocationInputStream
 
InvocationOutput - Interface in org.cojen.dirmi.core
Interface describing the low-level output operations used by remote method invocation.
InvocationOutputStream - Class in org.cojen.dirmi.core
Standard implementation of InvocationOutput.
InvocationOutputStream(InvocationChannel, DrainableObjectOutputStream) - Constructor for class org.cojen.dirmi.core.InvocationOutputStream
 
invoke(Link, int, InvocationChannel, BatchedInvocationException) - Method in interface org.cojen.dirmi.core.Skeleton
Invoke a remote method on the server.
invoke(Class<T>) - Method in interface org.cojen.dirmi.core.StubSupport
Writes request header to a free channel.
invoke(Class<T>, long, TimeUnit) - Method in interface org.cojen.dirmi.core.StubSupport
Writes request header to a free channel.
invoke(Class<T>, double, TimeUnit) - Method in interface org.cojen.dirmi.core.StubSupport
Writes request header to free channel.
IOExecutor - Class in org.cojen.dirmi.io
Executor which throws checked exceptions if no threads are available.
IOExecutor(ScheduledExecutorService) - Constructor for class org.cojen.dirmi.io.IOExecutor
 
isAsynchronous() - Method in interface org.cojen.dirmi.info.RemoteMethod
Returns true if this method is asynchronous.
isBatched() - Method in interface org.cojen.dirmi.info.RemoteMethod
Returns true if this method is batched, which implies that it is asynchronous.
isCauseDeclared(Class) - Method in exception org.cojen.dirmi.core.BatchedInvocationException
Returns true if cause of this exception matches the declared type or is unchecked.
isCauseDeclared(Class, Class) - Method in exception org.cojen.dirmi.core.BatchedInvocationException
Returns true if cause of this exception matches one of the declared types or is unchecked.
isCauseDeclared(Class...) - Method in exception org.cojen.dirmi.core.BatchedInvocationException
Returns true if cause of this exception matches one of the declared types or is unchecked.
isClosed() - Method in interface org.cojen.dirmi.io.Channel
Returns true if channel is absolutely closed or disconnected.
isClosed() - Method in class org.cojen.dirmi.io.CloseableGroup
 
isClosed() - Method in class org.cojen.dirmi.io.PipedInputStream
 
isClosed() - Method in class org.cojen.dirmi.io.PipedOutputStream
 
isConstructor() - Method in class org.cojen.dirmi.trace.TracedMethod
Returns true if traced method is a constructor.
isDisposer() - Method in interface org.cojen.dirmi.info.RemoteMethod
 
isEmpty() - Method in class org.cojen.dirmi.util.Cache
Deprecated.
 
isGraft(int) - Static method in class org.cojen.dirmi.trace.TracedMethod
 
isGraft() - Method in class org.cojen.dirmi.trace.TracedMethod
 
isInputReady() - Method in interface org.cojen.dirmi.io.Channel
Returns true if bytes can read from channel without blocking.
isNext(int) - Method in class org.cojen.dirmi.core.OrderedInvoker
Is called by asynchronous methods to prevent too many threads from accumulating.
isOrdered() - Method in interface org.cojen.dirmi.info.RemoteMethod
 
isOutputReady() - Method in interface org.cojen.dirmi.io.Channel
Returns true if bytes can written to channel without blocking.
isReady() - Method in class org.cojen.dirmi.io.BufferedInputStream
 
isReady() - Method in class org.cojen.dirmi.io.BufferedOutputStream
 
isReady() - Method in class org.cojen.dirmi.io.PipedInputStream
 
isReady() - Method in class org.cojen.dirmi.io.PipedOutputStream
 
isRemoteFailureExceptionDeclared() - Method in interface org.cojen.dirmi.info.RemoteMethod
 
isResumeSupported() - Method in class org.cojen.dirmi.io.BufferedInputStream
 
isResumeSupported() - Method in interface org.cojen.dirmi.io.Channel
 
isRoot() - Method in class org.cojen.dirmi.trace.ScopedTraceHandler.Scope
Returns true if this is the root traced scope -- it has no parent.
isRoot(int) - Static method in class org.cojen.dirmi.trace.TracedMethod
 
isRoot() - Method in class org.cojen.dirmi.trace.TracedMethod
 
isShutdown() - Method in exception org.cojen.dirmi.RejectedException
Returns true if caused by executor shutdown.
isShutdown() - Method in class org.cojen.dirmi.util.ThreadPool
 
isStatic() - Method in class org.cojen.dirmi.trace.TracedMethod
Returns true if traced method is static.
isTerminated() - Method in class org.cojen.dirmi.util.ThreadPool
 
isTimeout() - Method in interface org.cojen.dirmi.info.RemoteParameter
Returns true if parameter defines the runtime timeout for the method.
isTimeoutUnit() - Method in interface org.cojen.dirmi.info.RemoteParameter
Returns true if parameter defines the runtime timeout unit for the method.
isUnbatched() - Method in interface org.cojen.dirmi.info.RemoteMethod
Returns true if this method should never be included in a batch.
isUnshared() - Method in interface org.cojen.dirmi.info.RemoteParameter
Returns true if parameter does not need to be serialized such that it can be back referenced.
isVoid() - Method in class org.cojen.dirmi.trace.TracedMethod
Returns true if the method returns void.

L

Link - Interface in org.cojen.dirmi
Represents an established connection between two endpoints.
linkBatchedRemote(Skeleton, String, Identifier, VersionedIdentifier, Class<R>, R) - Method in interface org.cojen.dirmi.core.SkeletonSupport
Used by batched methods which return a Remote object.
LocalSession - Class in org.cojen.dirmi.core
Thread-local session used by SessionAccess.
localVersion() - Method in class org.cojen.dirmi.core.VersionedIdentifier
Returns the current local version number.

M

make(Throwable) - Static method in exception org.cojen.dirmi.core.BatchedInvocationException
 
MalformedRemoteObjectException - Exception in org.cojen.dirmi
Thrown when a remote object cannot be transferred because it has a malformed specification.
MalformedRemoteObjectException(String, String) - Constructor for exception org.cojen.dirmi.MalformedRemoteObjectException
 
MalformedRemoteObjectException(String, Class) - Constructor for exception org.cojen.dirmi.MalformedRemoteObjectException
 
micros(long) - Static method in class org.cojen.dirmi.util.Timer
Returns a new microsecond Timer.
millis(long) - Static method in class org.cojen.dirmi.util.Timer
Returns a new millisecond Timer.
minutes(long) - Static method in class org.cojen.dirmi.util.Timer
Returns a new minutes Timer.

N

nanos(long) - Static method in class org.cojen.dirmi.util.Timer
Returns a new nanosecond Timer.
newChannelAcceptor(SocketAddress) - Method in class org.cojen.dirmi.io.RecyclableSocketChannelSelector
 
newChannelConnector(SocketAddress) - Method in class org.cojen.dirmi.io.RecyclableSocketChannelSelector
 
newChannelConnector(SocketAddress, SocketAddress) - Method in class org.cojen.dirmi.io.RecyclableSocketChannelSelector
 
newPair(IOExecutor) - Static method in class org.cojen.dirmi.io.PipedChannelBroker
Returns a pair of connected brokers.
newPair(IOExecutor, int) - Static method in class org.cojen.dirmi.io.PipedChannelBroker
Returns a pair of connected brokers.
newSession(ChannelBroker) - Method in class org.cojen.dirmi.Environment
Attempts to connect using given broker, blocking until session is established.
newSession(ChannelBroker, long, TimeUnit) - Method in class org.cojen.dirmi.Environment
Attempts to connect using given broker, blocking until session is established.
newSessionAcceptor(int) - Method in class org.cojen.dirmi.Environment
Returns an acceptor of sessions.
newSessionAcceptor(SocketAddress) - Method in class org.cojen.dirmi.Environment
Returns an acceptor of sessions.
newSessionConnector(String, int) - Method in class org.cojen.dirmi.Environment
Returns a session connector for a remote endpoint.
newSessionConnector(SocketAddress) - Method in class org.cojen.dirmi.Environment
Returns a session connector for a remote endpoint.
newSessionConnector(SocketAddress, SocketAddress) - Method in class org.cojen.dirmi.Environment
Returns a session connector for a remote endpoint.
newSessionPair() - Method in class org.cojen.dirmi.Environment
Returns two locally connected sessions.
newSoftValueCache(int) - Static method in class org.cojen.dirmi.util.Cache
Deprecated.
 
newWeakIdentityCache(int) - Static method in class org.cojen.dirmi.util.Cache
Deprecated.
 
newWeakValueCache(int) - Static method in class org.cojen.dirmi.util.Cache
Deprecated.
 
nextLocalVersion() - Method in class org.cojen.dirmi.core.VersionedIdentifier
Atomically increments local version number and returns the new value.
NoSuchClassException - Exception in org.cojen.dirmi
Thrown when a client is requesting information about a class that is unknown to the server.
NoSuchClassException(String) - Constructor for exception org.cojen.dirmi.NoSuchClassException
 
NoSuchClassException(String, Throwable) - Constructor for exception org.cojen.dirmi.NoSuchClassException
 
NoSuchObjectException - Exception in org.cojen.dirmi
Thrown if an attempt is made to invoke a method on an object that no longer exists in the remote virtual machine.
NoSuchObjectException(String) - Constructor for exception org.cojen.dirmi.NoSuchObjectException
 
NullHandler - Class in org.cojen.dirmi.trace
TraceHandler which effectively disables tracing.
NullHandler(TraceToolbox) - Constructor for class org.cojen.dirmi.trace.NullHandler
 

O

obtain(Remote) - Static method in class org.cojen.dirmi.SessionAccess
Returns the link for the session that a client-side remote object is bound to.
Ordered - Annotation Type in org.cojen.dirmi
Ensure that invocation of method is ordered with respect to other remote methods in the same object.
OrderedInvoker - Class in org.cojen.dirmi.core
Utility class used by Skeletons to implement ordered method invocation.
org.cojen.dirmi - package org.cojen.dirmi
Public API for Dirmi.
org.cojen.dirmi.core - package org.cojen.dirmi.core
Session implementation classes.
org.cojen.dirmi.info - package org.cojen.dirmi.info
Remote interface introspection classes.
org.cojen.dirmi.io - package org.cojen.dirmi.io
Input/Output implementation classes.
org.cojen.dirmi.trace - package org.cojen.dirmi.trace
Support for method tracing.
org.cojen.dirmi.util - package org.cojen.dirmi.util
Collection of general purpose utilities.
outputNotify(Channel.Listener) - Method in interface org.cojen.dirmi.io.Channel
Register a listener which is asynchronously notified when a call to isOutputReady will return true.
outputNotify(SocketChannel, Channel.Listener) - Method in class org.cojen.dirmi.io.RecyclableSocketChannelSelector
Register a listener which is asynchronously notified when channel can be written to.
outputNotify(SocketChannel, Channel.Listener) - Method in interface org.cojen.dirmi.io.SocketChannelSelector
Register a listener which is asynchronously notified when channel can be written to.
outputSuspend() - Method in class org.cojen.dirmi.io.BufferedOutputStream
 
outputSuspend() - Method in interface org.cojen.dirmi.io.Channel
If supported, writes a suspend marker and flushes the output.

P

Pipe - Interface in org.cojen.dirmi
A pipe is a bidirectional stream which can be established via an asynchronous remote method.
PipedChannelBroker - Class in org.cojen.dirmi.io
Broker implementation which uses PipedInputStream and PipedOutputStream.
PipedInputStream - Class in org.cojen.dirmi.io
Unbuffered replacement for PipedInputStream.
PipedInputStream() - Constructor for class org.cojen.dirmi.io.PipedInputStream
 
PipedInputStream(PipedOutputStream) - Constructor for class org.cojen.dirmi.io.PipedInputStream
 
PipedOutputStream - Class in org.cojen.dirmi.io
Unbuffered replacement for PipedOutputStream.
PipedOutputStream() - Constructor for class org.cojen.dirmi.io.PipedOutputStream
 
PipedOutputStream(PipedInputStream) - Constructor for class org.cojen.dirmi.io.PipedOutputStream
 
premain(String, Instrumentation) - Static method in class org.cojen.dirmi.trace.TraceAgent
Premain method, as required by instrumentation agents.
put(K, V) - Method in class org.cojen.dirmi.util.Cache
Deprecated.
 

R

Random - Class in org.cojen.dirmi.util
Collection of thread-safe methods for generating random numbers.
Random() - Constructor for class org.cojen.dirmi.util.Random
 
randomBoolean() - Static method in class org.cojen.dirmi.util.Random
 
randomBytes(byte[]) - Static method in class org.cojen.dirmi.util.Random
 
randomDouble() - Static method in class org.cojen.dirmi.util.Random
 
randomFloat() - Static method in class org.cojen.dirmi.util.Random
 
randomInt() - Static method in class org.cojen.dirmi.util.Random
 
randomInt(int) - Static method in class org.cojen.dirmi.util.Random
 
randomLong() - Static method in class org.cojen.dirmi.util.Random
 
randomLong(long) - Static method in class org.cojen.dirmi.util.Random
 
read(DataInput) - Static method in class org.cojen.dirmi.core.Identifier
Returns a deserialized identifier, which may or may not have an object registered with it.
read(InputStream) - Static method in class org.cojen.dirmi.core.Identifier
Returns a deserialized identifier, which may or may not have an object registered with it.
read() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
read(byte[]) - Method in class org.cojen.dirmi.core.InvocationInputStream
 
read(byte[], int, int) - Method in class org.cojen.dirmi.core.InvocationInputStream
 
read(DataInput) - Static method in class org.cojen.dirmi.core.VersionedIdentifier
Returns a deserialized identifier, which may or may not have an object registered with it.
read(InputStream) - Static method in class org.cojen.dirmi.core.VersionedIdentifier
Returns a deserialized identifier, which may or may not have an object registered with it.
read() - Method in class org.cojen.dirmi.io.BufferedInputStream
 
read(byte[], int, int) - Method in class org.cojen.dirmi.io.BufferedInputStream
 
read() - Method in class org.cojen.dirmi.io.PipedInputStream
 
read(byte[]) - Method in class org.cojen.dirmi.io.PipedInputStream
 
read(byte[], int, int) - Method in class org.cojen.dirmi.io.PipedInputStream
 
READ_ANY_THREAD - Static variable in interface org.cojen.dirmi.core.Skeleton
Caller should read another request, using any thread.
READ_FINISHED - Static variable in interface org.cojen.dirmi.core.Skeleton
Caller should not read any more requests.
READ_SAME_THREAD - Static variable in interface org.cojen.dirmi.core.Skeleton
Caller should read another request, in the current thread.
readAndUpdateRemoteVersion(DataInput) - Static method in class org.cojen.dirmi.core.VersionedIdentifier
Returns a deserialized identifier, and also updates the remote version.
readBoolean() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readByte() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readChar() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readDouble() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readFloat() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readFully(byte[]) - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readFully(byte[], int, int) - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readInt() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readLine() - Method in class org.cojen.dirmi.core.InvocationInputStream
Deprecated.
readLong() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readObject() - Method in interface org.cojen.dirmi.core.InvocationInput
Reads a sharable Serializable or Remote object.
readObject() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readShort() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readThrowable() - Method in interface org.cojen.dirmi.core.InvocationInput
If remote exception cannot be represented by a local exception class or it cannot be serialized, it is represented as a RemoteException instead, with as much useful information as possible, including server stack trace.
readThrowable() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readThrowable() - Method in interface org.cojen.dirmi.Pipe
Reads a Throwable which was written via writeThrowable, which may be null.
readUnshared() - Method in interface org.cojen.dirmi.core.InvocationInput
Reads an unshared Serializable or Remote object.
readUnshared() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readUnsharedString() - Method in interface org.cojen.dirmi.core.InvocationInput
Reads the length and of contents the String from a packed format similar to UTF-8.
readUnsharedString() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readUnsignedByte() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readUnsignedShort() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
readUTF() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
ready() - Method in interface org.cojen.dirmi.io.Channel.Listener
Called when bytes can be read or written to channel, depending on how listener was registered.
rebatch(InvocationChannel) - Method in interface org.cojen.dirmi.core.StubSupport
Called by unbatched methods to re-instate a thread-local channel.
receive() - Method in class org.cojen.dirmi.core.StandardSession
 
receive(long, TimeUnit) - Method in class org.cojen.dirmi.core.StandardSession
 
receive() - Method in interface org.cojen.dirmi.Session
Receives a Remote or Serializable object sent by the remote session.
receive(long, TimeUnit) - Method in interface org.cojen.dirmi.Session
Receives a Remote or Serializable object sent by the remote session.
ReconstructedException - Exception in org.cojen.dirmi
Thrown by a remote method or Pipe.readThrowable() if the Throwable was not serializable or depends on classes that are not found.
ReconstructedException(Throwable, Throwable) - Constructor for exception org.cojen.dirmi.ReconstructedException
 
ReconstructedException(Throwable, String, String, Throwable) - Constructor for exception org.cojen.dirmi.ReconstructedException
 
RecyclableSocketChannelAcceptor - Class in org.cojen.dirmi.io
Implements an acceptor using TCP/IP which supports channel recycling.
RecyclableSocketChannelAcceptor(IOExecutor, SocketAddress) - Constructor for class org.cojen.dirmi.io.RecyclableSocketChannelAcceptor
 
RecyclableSocketChannelAcceptor(IOExecutor, SocketAddress, ServerSocket) - Constructor for class org.cojen.dirmi.io.RecyclableSocketChannelAcceptor
 
RecyclableSocketChannelConnector - Class in org.cojen.dirmi.io
Implements a connector using TCP/IP which supports channel recycling.
RecyclableSocketChannelConnector(IOExecutor, SocketAddress) - Constructor for class org.cojen.dirmi.io.RecyclableSocketChannelConnector
 
RecyclableSocketChannelConnector(IOExecutor, SocketAddress, SocketAddress) - Constructor for class org.cojen.dirmi.io.RecyclableSocketChannelConnector
 
RecyclableSocketChannelConnector(IOExecutor, SocketAddress, SocketAddress, SocketFactory) - Constructor for class org.cojen.dirmi.io.RecyclableSocketChannelConnector
 
RecyclableSocketChannelSelector - Class in org.cojen.dirmi.io
Factory for TCP channel acceptors and connectors that use selectable sockets.
RecyclableSocketChannelSelector(IOExecutor) - Constructor for class org.cojen.dirmi.io.RecyclableSocketChannelSelector
 
recycled(Channel) - Method in interface org.cojen.dirmi.io.Channel.Recycler
Called with a newly recycled channel, which does not yet have a recycler installed.
register(Queue<? super Completion<V>>) - Method in interface org.cojen.dirmi.Completion
Registers this future such that it enqueues itself into the given queue when done.
register(T) - Method in class org.cojen.dirmi.core.Identifier
 
register(T) - Method in class org.cojen.dirmi.core.VersionedIdentifier
 
register(CloseableGroup<? super Channel>) - Method in interface org.cojen.dirmi.io.Channel
Register this channel with at least one group.
registerTraceMethod(int, String, Class, String, Class, Class...) - Method in class org.cojen.dirmi.trace.TraceAgent
Method called by instrumented class to register traced methods.
rejected(RejectedException) - Method in interface org.cojen.dirmi.io.Channel.Listener
Called if no threads are available to invoke any listeners, but does not imply that channel is closed.
rejected(RejectedException) - Method in interface org.cojen.dirmi.io.ChannelAcceptor.Listener
Called if no threads are available to invoke any listeners, but does not imply that acceptor is closed.
rejected(RejectedException) - Method in interface org.cojen.dirmi.io.ChannelBrokerAcceptor.Listener
Called if no threads are available to invoke any listeners, but does not imply that acceptor is closed.
rejected(RejectedException) - Method in interface org.cojen.dirmi.io.ChannelBrokerConnector.Listener
Called if no threads are available to invoke any listeners, but does not imply that connector is closed.
rejected(RejectedException) - Method in interface org.cojen.dirmi.io.ChannelConnector.Listener
Called if no threads are available to invoke any listeners, but does not imply that connector is closed.
RejectedException - Exception in org.cojen.dirmi
Exception indicating that an I/O operation failed because no threads are available.
RejectedException(boolean) - Constructor for exception org.cojen.dirmi.RejectedException
 
RejectedException(boolean, String) - Constructor for exception org.cojen.dirmi.RejectedException
 
RejectedException(boolean, Throwable) - Constructor for exception org.cojen.dirmi.RejectedException
 
RejectedException(boolean, String, Throwable) - Constructor for exception org.cojen.dirmi.RejectedException
 
RejectedException(String, RejectedException) - Constructor for exception org.cojen.dirmi.RejectedException
 
release(InvocationChannel) - Method in interface org.cojen.dirmi.core.StubSupport
Called if channel is to be used for returning a Pipe.
remaining() - Method in class org.cojen.dirmi.util.Timer
Returns remaining duration, which is zero or negative if duration has elapsed.
RemoteCompletion<V> - Interface in org.cojen.dirmi.core
Interface used internally by asynchronous remote methods to signal when finished.
RemoteFailure - Annotation Type in org.cojen.dirmi
Annotate a remote method or interface to specify what exception is to be used to indicate a remote call failure.
RemoteInfo - Interface in org.cojen.dirmi.info
Information for a Remote type as produced by RemoteIntrospector.
RemoteIntrospector - Class in org.cojen.dirmi.info
Supports examination of Remote types, returning all metadata associated with it.
RemoteMethod - Interface in org.cojen.dirmi.info
Describes a remote method, as provided by RemoteInfo.
RemoteParameter<T> - Interface in org.cojen.dirmi.info
Describes a remote method parameter.
RemoteTimeoutException - Exception in org.cojen.dirmi
Thrown when a remote method has not responded in time.
RemoteTimeoutException(long, TimeUnit) - Constructor for exception org.cojen.dirmi.RemoteTimeoutException
 
RemoteTimeoutException(double, TimeUnit) - Constructor for exception org.cojen.dirmi.RemoteTimeoutException
 
RemoteTimeoutException(Timer) - Constructor for exception org.cojen.dirmi.RemoteTimeoutException
 
remoteVersion() - Method in class org.cojen.dirmi.core.VersionedIdentifier
Returns the current remote version number.
remove(C) - Method in class org.cojen.dirmi.io.CloseableGroup
Removes a member from the group, but does not close it.
remove(K) - Method in class org.cojen.dirmi.util.Cache
Deprecated.
 
report(ScopedTraceHandler.Scope) - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
Called when a scope exits, allowing subclasses to report on the data it gathered.
report(ScopedTraceHandler.Scope) - Method in class org.cojen.dirmi.trace.SimpleHandler
 
requestReply(InvocationChannel) - Method in interface org.cojen.dirmi.core.SkeletonSupport
Called if channel is expected to be a request-reply Pipe.
requestReply(InvocationChannel) - Method in interface org.cojen.dirmi.core.StubSupport
Called if channel is to be used for returning a request-reply Pipe.
reset() - Method in interface org.cojen.dirmi.core.InvocationOutput
Resets the stream for reuse.
reset() - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
reset() - Method in interface org.cojen.dirmi.Pipe
Disregard the state of any objects already written to the pipe, allowing them to get freed.
resolveClass(String) - Method in interface org.cojen.dirmi.ClassResolver
Load the class or interface for the given name.
Response - Class in org.cojen.dirmi
Generates responses for Asynchronous or Batched methods which return a Completion or Future.
run() - Method in class org.cojen.dirmi.util.ScheduledTask
 

S

schedule(Runnable, long, TimeUnit) - Method in class org.cojen.dirmi.io.IOExecutor
 
schedule(Callable<V>, long, TimeUnit) - Method in class org.cojen.dirmi.io.IOExecutor
 
schedule(Runnable, long, TimeUnit) - Method in class org.cojen.dirmi.util.ThreadPool
 
schedule(Callable<V>, long, TimeUnit) - Method in class org.cojen.dirmi.util.ThreadPool
 
scheduleAtFixedRate(Runnable, long, long, TimeUnit) - Method in class org.cojen.dirmi.io.IOExecutor
 
scheduleAtFixedRate(Runnable, long, long, TimeUnit) - Method in class org.cojen.dirmi.util.ThreadPool
 
scheduleAtRandomRate(Runnable, long, long, long, TimeUnit) - Method in class org.cojen.dirmi.util.ThreadPool
Schedules a task which executes with a randomly selected rate, for applying jitter.
ScheduledTask<E extends Throwable> - Class in org.cojen.dirmi.util
Runnable intended for scheduling tasks which passes uncaught exceptions to the current thread's uncaught exception handler.
ScheduledTask() - Constructor for class org.cojen.dirmi.util.ScheduledTask
 
scheduleWithFixedDelay(Runnable, long, long, TimeUnit) - Method in class org.cojen.dirmi.io.IOExecutor
 
scheduleWithFixedDelay(Runnable, long, long, TimeUnit) - Method in class org.cojen.dirmi.util.ThreadPool
 
ScopedTraceHandler - Class in org.cojen.dirmi.trace
Abstract trace handler which gathers data on traced methods and reports it upon scope exit.
ScopedTraceHandler(TraceToolbox) - Constructor for class org.cojen.dirmi.trace.ScopedTraceHandler
 
ScopedTraceHandler.MethodData - Class in org.cojen.dirmi.trace
 
ScopedTraceHandler.Scope - Class in org.cojen.dirmi.trace
 
scopeGet(String) - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
Retrieve an arbitrary key-value pair from the current scope, unless there is no current scope.
scopePut(String, Object) - Method in class org.cojen.dirmi.trace.ScopedTraceHandler
Add an arbitrary key-value pair to the current scope, unless there is no current scope.
seconds(long) - Static method in class org.cojen.dirmi.util.Timer
Returns a new seconds Timer.
selectLoop() - Method in class org.cojen.dirmi.io.RecyclableSocketChannelSelector
Perform socket selection, returning normally only when selector is closed.
send(Object) - Method in class org.cojen.dirmi.core.StandardSession
 
send(Object, long, TimeUnit) - Method in class org.cojen.dirmi.core.StandardSession
 
send(Object) - Method in interface org.cojen.dirmi.Session
Sends a Remote or Serializable object to be received by the remote session.
send(Object, long, TimeUnit) - Method in interface org.cojen.dirmi.Session
Sends a Remote or Serializable object to be received by the remote session.
Session - Interface in org.cojen.dirmi
Remote method invocation session.
SessionAcceptor - Interface in org.cojen.dirmi
Accepts sessions from remote endpoints.
SessionAccess - Class in org.cojen.dirmi
Provides session link access for client-side and server-side remote objects.
SessionAware - Interface in org.cojen.dirmi
Remote objects implementing this interface can access the current session link which is making a remote method invocation.
SessionCloseListener - Interface in org.cojen.dirmi
Receives notification when a Session is closed.
SessionCloseListener.Cause - Enum in org.cojen.dirmi
 
SessionConnector - Interface in org.cojen.dirmi
Connects to remote endpoints and establishes sessions.
sessionLink() - Method in interface org.cojen.dirmi.core.StubSupport
Returns a link to the session that stub is bound to.
SessionListener - Interface in org.cojen.dirmi
Listener is called asynchronously as sessions are established.
setBufferSize(int) - Method in class org.cojen.dirmi.io.BufferedInputStream
Sets the size of the buffer, returning the actual size applied.
setBufferSize(int) - Method in class org.cojen.dirmi.io.BufferedOutputStream
Sets the size of the buffer, returning the actual size applied.
setClassLoader(ClassLoader) - Method in class org.cojen.dirmi.core.StandardSession
 
setClassLoader(ClassLoader) - Method in interface org.cojen.dirmi.Session
Convenience method to use a ClassLoader for resolving classes.
setClassResolver(ClassResolver) - Method in class org.cojen.dirmi.core.StandardSession
 
setClassResolver(ClassResolver) - Method in interface org.cojen.dirmi.Session
Can be called at most once to control how deserialized classes and remote interfaces are resolved.
setInputBufferSize(int) - Method in interface org.cojen.dirmi.io.Channel
Sets the size of the input buffer, returning the actual size applied.
setMessage(String) - Static method in class org.cojen.dirmi.trace.SimpleHandler
Call to set an arbitrary message into the currently traced scope.
setOutputBufferSize(int) - Method in interface org.cojen.dirmi.io.Channel
Sets the size of the output buffer, returning the actual size applied.
setRecycleControl(Remote) - Method in interface org.cojen.dirmi.io.Channel
Set the recycling control object from the remote channel endpoint.
shutdown() - Method in class org.cojen.dirmi.util.ThreadPool
 
shutdownNow() - Method in class org.cojen.dirmi.util.ThreadPool
 
SimpleHandler - Class in org.cojen.dirmi.trace
TraceHandler which prints method trace information to standard out.
SimpleHandler(TraceToolbox) - Constructor for class org.cojen.dirmi.trace.SimpleHandler
 
size() - Method in class org.cojen.dirmi.util.Cache
Deprecated.
 
Skeleton<R extends Remote> - Interface in org.cojen.dirmi.core
A Skeleton instance wraps a server-side Remote object, unmarshalls client requests, and invokes server-side methods.
SkeletonFactory<R extends Remote> - Interface in org.cojen.dirmi.core
Produces new Skeleton instances for server-side Remote objects.
SkeletonFactoryGenerator<R extends Remote> - Class in org.cojen.dirmi.core
Generates SkeletonFactory instances for any given Remote type.
SkeletonSupport - Interface in org.cojen.dirmi.core
Object passed to a Skeleton instance in order for it to decide when channels can be reused.
skip(long) - Method in class org.cojen.dirmi.core.InvocationInputStream
 
skip(long) - Method in class org.cojen.dirmi.io.BufferedInputStream
 
skip(long) - Method in class org.cojen.dirmi.io.PipedInputStream
 
skipBytes(int) - Method in class org.cojen.dirmi.core.InvocationInputStream
 
SocketChannelSelector - Interface in org.cojen.dirmi.io
 
StandardSession - Class in org.cojen.dirmi.core
Standard implementation of a remote method invocation Session.
StandardSessionAcceptor - Class in org.cojen.dirmi.core
Standard implementation of a remote method invocation SessionAcceptor.
startTimeout(long, TimeUnit) - Method in interface org.cojen.dirmi.Pipe
Starts a task which forcibly closes this pipe after the timeout has elapsed, unless it is cancelled in time.
Stub - Interface in org.cojen.dirmi.core
Marker interface for generated stubs.
stubEquals(StubSupport) - Method in interface org.cojen.dirmi.core.StubSupport
Returns a partial equals implementation for the Stub.
StubFactory<R extends Remote> - Interface in org.cojen.dirmi.core
Produces new Stub instances for client-side Remote objects.
StubFactoryGenerator<R extends Remote> - Class in org.cojen.dirmi.core
Generates StubFactory instances for any given Remote type.
stubHashCode() - Method in interface org.cojen.dirmi.core.StubSupport
Returns a hashCode implementation for the Stub.
StubSupport - Interface in org.cojen.dirmi.core
Object passed to a Stub instance in order for it to actually communicate with a remote object.
stubToString() - Method in interface org.cojen.dirmi.core.StubSupport
Returns a partial toString implementation for the Stub.
submit(Callable<T>) - Method in class org.cojen.dirmi.io.IOExecutor
 
submit(Runnable, T) - Method in class org.cojen.dirmi.io.IOExecutor
 
submit(Runnable) - Method in class org.cojen.dirmi.io.IOExecutor
 

T

ThreadPool - Class in org.cojen.dirmi.util
Custom thread pool implementation which is slightly more efficient than the default JDK1.6 thread pool and also provides scheduling services.
ThreadPool(int, boolean) - Constructor for class org.cojen.dirmi.util.ThreadPool
 
ThreadPool(int, boolean, String) - Constructor for class org.cojen.dirmi.util.ThreadPool
 
ThreadPool(int, boolean, String, Thread.UncaughtExceptionHandler) - Constructor for class org.cojen.dirmi.util.ThreadPool
 
ThrottledExecutor - Class in org.cojen.dirmi.util
Utility class which can throttle the activity of Asynchronous methods.
ThrottledExecutor(int, int) - Constructor for class org.cojen.dirmi.util.ThrottledExecutor
 
throwUncheckedException() - Method in exception org.cojen.dirmi.RejectedException
Throws the cause of this exception if unchecked, else throws a RejectedExecutionException.
Timeout - Annotation Type in org.cojen.dirmi
Remote method timeout policy annotation, which can target a remote interface or method.
TimeoutParam - Annotation Type in org.cojen.dirmi
Used in conjunction with the Timeout annotation to define a remote method timeout policy.
TimeoutUnit - Annotation Type in org.cojen.dirmi
Used in conjunction with the Timeout annotation to define a remote method timeout policy.
Timer - Class in org.cojen.dirmi.util
Measures time remaining from an initial duration.
Timer(long, TimeUnit) - Constructor for class org.cojen.dirmi.util.Timer
 
toString() - Method in class org.cojen.dirmi.core.InvocationInputStream
 
toString() - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
toString() - Method in class org.cojen.dirmi.core.StandardSession
 
toString() - Method in class org.cojen.dirmi.core.StandardSessionAcceptor
 
toString() - Method in interface org.cojen.dirmi.core.Stub
Returns remote type name concatenated with remote object identifier.
toString() - Method in class org.cojen.dirmi.io.CloseableGroup
 
toString() - Method in class org.cojen.dirmi.io.PipedInputStream
 
toString() - Method in class org.cojen.dirmi.io.PipedOutputStream
 
toString() - Method in class org.cojen.dirmi.trace.TracedMethod
 
toString() - Method in class org.cojen.dirmi.util.Timer
 
Trace - Annotation Type in org.cojen.dirmi
Method annotation which indicates that it can be traced.
TraceAgent - Class in org.cojen.dirmi.trace
Instrumentation agent for tracing.
TracedMethod - Class in org.cojen.dirmi.trace
Basic information regarding a traced method or constructor.
TraceHandler - Interface in org.cojen.dirmi.trace
A trace handler is responsible for gathering and processing traced method invocations.
TraceMode - Enum in org.cojen.dirmi.trace
 
TraceModes - Class in org.cojen.dirmi.trace
 
TraceModes(TraceMode, TraceMode, TraceMode, TraceMode, TraceMode) - Constructor for class org.cojen.dirmi.trace.TraceModes
 
TraceToolbox - Class in org.cojen.dirmi.trace
Tools for use by a TraceHandler.
tryCurrent() - Static method in class org.cojen.dirmi.core.LocalSession
 
tryCurrent() - Static method in class org.cojen.dirmi.SessionAccess
Returns the current thread-local session link.
tryObtain(Remote) - Static method in class org.cojen.dirmi.SessionAccess
Returns the link for the session that a client-side remote object is bound to.
tryRetrieve() - Method in class org.cojen.dirmi.core.Identifier
 
tryRetrieve() - Method in class org.cojen.dirmi.core.VersionedIdentifier
 

U

unbatch() - Method in interface org.cojen.dirmi.core.StubSupport
Called by unbatched methods to temporarily release a thread-local channel.
Unbatched - Annotation Type in org.cojen.dirmi
Identify a method which should never be included in a batched request.
uncaughtException(Throwable) - Method in interface org.cojen.dirmi.core.SkeletonSupport
Called if an asynchronous method throws an exception which cannot be passed to the remote caller.
UnimplementedMethodException - Exception in org.cojen.dirmi
Thrown when a remote method has not been implemented by the remote server.
UnimplementedMethodException(String) - Constructor for exception org.cojen.dirmi.UnimplementedMethodException
 
unit() - Method in class org.cojen.dirmi.util.Timer
Returns original fixed unit of this Timer.
UnknownHostException - Exception in org.cojen.dirmi
Thrown if an UnknownHostException occurs while creating a connection to the remote host for a remote method call.
UnknownHostException(String) - Constructor for exception org.cojen.dirmi.UnknownHostException
 
UnknownHostException(String, Exception) - Constructor for exception org.cojen.dirmi.UnknownHostException
 
Unreferenced - Interface in org.cojen.dirmi
By implementing this interface (or the superinterface), a remote object implementation receives notification when a Session no longer references it.
unreferenced() - Method in interface org.cojen.dirmi.Unreferenced
Called by Dirmi when the remote object is not referenced by a Session.
updateRemoteVersion(int) - Method in class org.cojen.dirmi.core.VersionedIdentifier
Atomically updates the remote version number only if the given value is greater than the current remote version.
usesSelectNotification() - Method in interface org.cojen.dirmi.io.Channel
Returns true to indicate that asynchronous notifications use channel selection instead of blocked threads.

V

valueOf(String) - Static method in enum org.cojen.dirmi.CallMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.cojen.dirmi.SessionCloseListener.Cause
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.cojen.dirmi.trace.TraceMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.cojen.dirmi.CallMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.cojen.dirmi.SessionCloseListener.Cause
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.cojen.dirmi.trace.TraceMode
Returns an array containing the constants of this enum type, in the order they are declared.
VersionedIdentifier - Class in org.cojen.dirmi.core
Identifier which also tracks version numbers for local and remote endpoints.

W

waitForNext(int) - Method in class org.cojen.dirmi.core.OrderedInvoker
Is called by methods which cannot yield control of the current thread.
withClassLoader(ClassLoader) - Method in class org.cojen.dirmi.Environment
Returns an environment instance which uses the provided classloader for all established sessions.
withClientSocketFactory(SocketFactory) - Method in class org.cojen.dirmi.Environment
Returns an environment instance which connects using the given client socket factory.
withServerSocketFactory(ServerSocketFactory) - Method in class org.cojen.dirmi.Environment
Returns an environment instance which accepts using the given server socket factory.
withSocketSelector() - Method in class org.cojen.dirmi.Environment
Returns an environment instance which uses selectable sockets, reducing the amount of idle threads.
wrap(D) - Method in class org.cojen.dirmi.util.Wrapper
Returns a wrapper instance around the given delegate.
Wrapper<B,D> - Class in org.cojen.dirmi.util
Automatically generates objects which delegate method invocations to another object.
Wrapper(Class<? extends B>, Constructor<B>) - Constructor for class org.cojen.dirmi.util.Wrapper
 
write(int) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
write(byte[]) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
write(byte[], int, int) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
write(int) - Method in class org.cojen.dirmi.io.BufferedOutputStream
 
write(byte[], int, int) - Method in class org.cojen.dirmi.io.BufferedOutputStream
 
write(int) - Method in class org.cojen.dirmi.io.PipedOutputStream
 
write(byte[]) - Method in class org.cojen.dirmi.io.PipedOutputStream
 
write(byte[], int, int) - Method in class org.cojen.dirmi.io.PipedOutputStream
 
writeBoolean(boolean) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeByte(int) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeBytes(String) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeChar(int) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeChars(String) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeDouble(double) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeFloat(float) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeInt(int) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeLong(long) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeObject(Object) - Method in interface org.cojen.dirmi.core.InvocationOutput
Writes a sharable Serializable or Remote object.
writeObject(Object) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeShort(int) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeThrowable(Throwable) - Method in interface org.cojen.dirmi.core.InvocationOutput
Writes the given Throwable with additional remote information.
writeThrowable(Throwable) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeThrowable(Throwable) - Method in interface org.cojen.dirmi.Pipe
Writes the given Throwable with additional remote information.
writeUnshared(Object) - Method in interface org.cojen.dirmi.core.InvocationOutput
Writes an unshared Serializable or Remote object.
writeUnshared(Object) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeUnsharedString(String) - Method in interface org.cojen.dirmi.core.InvocationOutput
Writes the length and contents of the String in a packed format similar to UTF-8.
writeUnsharedString(String) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeUTF(String) - Method in class org.cojen.dirmi.core.InvocationOutputStream
 
writeWithNextVersion(DataOutput) - Method in class org.cojen.dirmi.core.VersionedIdentifier
Writes the identifier and also writes the next local version number.
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links

Copyright © 2006–2015 Cojen. All rights reserved.