|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.emory.mathcs.rmix.spi.AbstractRemoteRef
Convenience base class for RMIX providers to implement RemoteRef.
This class provides default implementations for all methods of the RemoteRef
interface except RemoteRef.bind(edu.emory.mathcs.rmix.Parameters, java.lang.ClassLoader, boolean) and RemoteRef.externalize().
Most implementations will additionally override
getParameter(java.lang.String), and setParameter(java.lang.String, java.lang.Object).
| Field Summary | |
protected Parameters.Binding |
allowedBinding
|
protected BasicEndpointParams |
endpointParams
|
protected ObjGUID |
guid
GUID of the target object |
protected java.lang.String[] |
interfaces
names of the remote interfaces available through this ref |
protected java.lang.String |
providerName
|
protected AbstractServerRef |
sref
Local server ref, or null if remote ref. |
| Constructor Summary | |
protected |
AbstractRemoteRef(ObjGUID guid,
java.lang.String[] interfaces,
AbstractServerRef sref,
BasicEndpointParams endpointParams,
java.lang.String providerName,
Parameters.Binding allowedBinding)
Creates a new RemoteRef instance. |
| Method Summary | |
boolean |
equals(java.lang.Object other)
should be overridden by subclasses |
java.lang.String[] |
getInterfaceNames()
Returns the names of the remote interfaces which methods may be invoked through this reference. |
Rmix.LocalInvocationContext |
getLocalInvocationContext()
Returns handle through which the client can bind locally. |
ObjGUID |
getObjGUID()
Returns the GUID of the target object. |
java.lang.Object |
getParameter(java.lang.String name)
Gets the value of the provider-specific parameter with a given name. |
java.lang.String |
getProtocol()
Returns the RMIX protocol that this reference uses to communicate with the server. |
java.lang.String |
getProviderName()
Returns the name of the RMIX provider that handles communication with the server. |
int |
hashCode()
|
void |
setParameter(java.lang.String name,
java.lang.Object value)
Sets the value of the provider-specific parameter given by name. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.emory.mathcs.rmix.RemoteRef |
bind, externalize |
| Field Detail |
protected final transient AbstractServerRef sref
getLocalInvocationContext().
protected final ObjGUID guid
protected final java.lang.String[] interfaces
protected final BasicEndpointParams endpointParams
protected final java.lang.String providerName
protected final Parameters.Binding allowedBinding
| Constructor Detail |
protected AbstractRemoteRef(ObjGUID guid,
java.lang.String[] interfaces,
AbstractServerRef sref,
BasicEndpointParams endpointParams,
java.lang.String providerName,
Parameters.Binding allowedBinding)
guid - the target object GUID.interfaces - remote interfaces available through this ref.| Method Detail |
public java.lang.String getProtocol()
RemoteRef
getProtocol in interface RemoteRefpublic java.lang.String getProviderName()
RemoteRef
getProviderName in interface RemoteRefpublic ObjGUID getObjGUID()
RemoteRef
getObjGUID in interface RemoteRefpublic java.lang.String[] getInterfaceNames()
RemoteRef
getInterfaceNames in interface RemoteRef
public void setParameter(java.lang.String name,
java.lang.Object value)
RemoteRefIllegalParameterException.
setParameter in interface RemoteRefname - the name of the parameter to set.value - the value of the parameter.public java.lang.Object getParameter(java.lang.String name)
RemoteRef
getParameter in interface RemoteRefname - the parameter name.
public Rmix.LocalInvocationContext getLocalInvocationContext()
getLocalInvocationContext in interface RemoteRefpublic boolean equals(java.lang.Object other)
public int hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||