public class RemoteStub<T> extends Object implements Remote, SmartExternalizable, ILRMIProxy
RemoteStub class is the common superclass to client stubs and provides the
 framework to support a wide range of remote reference semantics.  Stub objects are surrogates
 that support exactly the same set of remote interfaces defined by the actual implementation of
 the remote object.| Constructor and Description | 
|---|
| RemoteStub() | 
| RemoteStub(T directObjRef,
          T dynamicProxy)Constructor to initialize extended stub-class. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | closeProxy()Close the underline proxy connection and resources, this proxy will no longer be usable. | 
| void | disable()Force this stub to be disabled (disconnected from its target) | 
| void | enable()Removes state of any previously called  ILRMIProxy.disable() | 
| boolean | equals(Object obj) | 
| String | getConnectionUrl() | 
| T | getDynamicProxy() | 
| long | getGeneratedTraffic() | 
| T | getProxy() | 
| long | getReceivedTraffic() | 
| String | getRemoteHostAddress() | 
| String | getRemoteHostName() | 
| InetSocketAddress | getRemoteNetworkAddress() | 
| long | getRemoteProcessId() | 
| PlatformLogicalVersion | getServicePlatformLogicalVersion() | 
| StubId | getStubId() | 
| int | hashCode() | 
| protected static void | init(Callable initCall)Initialize the abstract logic of extended stub. | 
| boolean | isClosed() | 
| boolean | isCollocated() | 
| static boolean | isCollocatedStub(Object obj)Returns  trueif supplied object instance isRemoteStuband collocate
 with RemoteStub endpoint. | 
| boolean | isDirect() | 
| boolean | isRemote() | 
| static boolean | isStub(Object obj)Returns  trueif supplied object isRemoteStub. | 
| void | overrideMethodsMetadata(Map<String,LRMIMethodMetadata> methodsMetadata)Overrides the LRMI methods metadata. | 
| void | readExternal(ObjectInput in) | 
| String | toString() | 
| void | writeExternal(ObjectOutput out) | 
clone, finalize, getClass, notify, notifyAll, wait, wait, waitenabledSmartExternalizableWithReferencepublic RemoteStub()
public RemoteStub(T directObjRef, T dynamicProxy)
directObjRef - the direct object reference. To save dynamic-proxy invocation call.dynamicProxy - the dynamic proxy of this stub.IllegalArgumentException - dynamicProxy is null.public T getProxy()
public T getDynamicProxy()
public boolean isDirect()
protected static void init(Callable initCall)
initCall.call()initCall - the Callable interface with abstract init logic within call()
                 method.public static boolean isStub(Object obj)
true if supplied object is RemoteStub.obj - the object to check.true if supplied object is RemoteStub.public boolean isCollocated()
true if RemoteStub instance is collocated with exported endpoint object
 and communication performs via direct endpoint object reference(No network/socket), otherwise
 false if communication performs via socket.public static boolean isCollocatedStub(Object obj)
true if supplied object instance is RemoteStub and collocate
 with RemoteStub endpoint.obj - the object instance to check.true if object embedded stub, otherwise false.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic PlatformLogicalVersion getServicePlatformLogicalVersion()
getServicePlatformLogicalVersion in interface ILRMIProxypublic boolean isRemote()
isRemote in interface ILRMIProxypublic StubId getStubId()
getStubId in interface ILRMIProxypublic long getGeneratedTraffic()
getGeneratedTraffic in interface ILRMIProxypublic long getReceivedTraffic()
getReceivedTraffic in interface ILRMIProxypublic String getConnectionUrl()
getConnectionUrl in interface ILRMIProxypublic long getRemoteProcessId()
getRemoteProcessId in interface ILRMIProxypublic String getRemoteHostName()
getRemoteHostName in interface ILRMIProxypublic String getRemoteHostAddress()
getRemoteHostAddress in interface ILRMIProxypublic InetSocketAddress getRemoteNetworkAddress()
getRemoteNetworkAddress in interface ILRMIProxypublic void disable()
             throws RemoteException
ILRMIProxydisable in interface ILRMIProxyRemoteExceptionpublic void enable()
            throws RemoteException
ILRMIProxyILRMIProxy.disable()enable in interface ILRMIProxyRemoteExceptionpublic void overrideMethodsMetadata(Map<String,LRMIMethodMetadata> methodsMetadata)
ILRMIProxyoverrideMethodsMetadata in interface ILRMIProxypublic void closeProxy()
ILRMIProxycloseProxy in interface ILRMIProxypublic boolean isClosed()
isClosed in interface ILRMIProxyCopyright © GigaSpaces.