Package aQute.remote.util
Class Link<L,R>
java.lang.Object
java.lang.Thread
aQute.remote.util.Link<L,R>
- Type Parameters:
R-
- All Implemented Interfaces:
Closeable,AutoCloseable,Runnable
This is a simple RPC module that has a R and L interface. The R interface is
implemented on the remote side. The methods on this subclass are then
available remotely. I.e. this is a two way street. Void messages are
asynchronous, other messages block to a reply.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionLink(Class<R> remoteType, L local, DataInputStream in, DataOutputStream out) Link(Class<R> remoteType, L local, InputStream in, OutputStream out) -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
Link
-
Link
-
Link
- Throws:
IOException
-
-
Method Details
-
open
public void open() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getRemote
-
run
public void run() -
terminate
-
isOpen
public boolean isOpen() -
getOutput
-
getInput
-
setRemote
-
transfer
- Throws:
Exception
-