public class Proxymq extends java.lang.Object implements java.lang.reflect.InvocationHandler, Remote
| Constructor and Description |
|---|
Proxymq(java.lang.String uid,
java.lang.Class<?> clazz,
Broker broker)
Proxymq Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRef()
Returns the UID of a RemoteObject
|
java.util.Map<java.lang.String,byte[]> |
getResults()
Gets the Map used internally to retreive the response of the server
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] arguments) |
public Proxymq(java.lang.String uid,
java.lang.Class<?> clazz,
Broker broker)
throws java.lang.Exception
uid - The uid represents the unique identifier of a remote objectclazz - It represents the real class of the remote object. With this
class the system can know the remoteInterface used and it can
also see which annotations are usedenv - The environment is used to know where to send the messagesjava.lang.Exceptionpublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] arguments)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic java.util.Map<java.lang.String,byte[]> getResults()