public abstract class RemoteObject extends java.lang.Thread implements Remote
Constructor and Description |
---|
RemoteObject() |
Modifier and Type | Method and Description |
---|---|
com.rabbitmq.client.Channel |
getChannel() |
java.util.List<java.lang.Class<?>> |
getParams(java.lang.String methodName) |
java.lang.String |
getRef()
Returns the UID of a RemoteObject
|
java.lang.Object |
invokeMethod(java.lang.String methodName,
java.lang.Object[] arguments)
This method invokes the method specified by methodName and arguments
|
void |
kill()
This method kills all the threads waiting for requests
|
void |
run() |
void |
startRemoteObject(java.lang.String reference,
Broker broker,
java.util.Properties env)
This method starts a remoteObject.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public void startRemoteObject(java.lang.String reference, Broker broker, java.util.Properties env) throws java.lang.Exception
reference
- - broker's binding referecebroker
- - broker that binds this remoteObjectenv
- - properties of this remoteObjectjava.lang.Exception
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public java.lang.String getRef()
Remote
public void kill() throws java.io.IOException
java.io.IOException
- - If an operation failed.public java.lang.Object invokeMethod(java.lang.String methodName, java.lang.Object[] arguments) throws java.lang.Exception
methodName
- arguments
- java.lang.Exception
public java.util.List<java.lang.Class<?>> getParams(java.lang.String methodName)
public com.rabbitmq.client.Channel getChannel()