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, yieldpublic 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.Exceptionpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic java.lang.String getRef()
Remotepublic 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.Exceptionpublic java.util.List<java.lang.Class<?>> getParams(java.lang.String methodName)
public com.rabbitmq.client.Channel getChannel()