Package com.gigaspaces.lrmi
Interface ILRMIProxy
- All Known Implementing Classes:
DynamicSmartStub,LRMIBatchNotifyDelegatorListener,LRMIJSpaceContainer,LRMIJSpaceProxyListener,LRMINotifyDelegatorListener,LRMIRemoteEventListener,LRMISpaceImpl,QueryProcessorStub,RemoteStub
public interface ILRMIProxy
Represents a remote proxy which uses lrmi for remote method invocation
- Since:
- 7.1
- Author:
- eitany
-
Method Summary
Modifier and TypeMethodDescriptionvoidClose the underline proxy connection and resources, this proxy will no longer be usable.voiddisable()Force this stub to be disabled (disconnected from its target)voidenable()Removes state of any previously calleddisable()longlonglongbooleanisClosed()booleanisRemote()voidoverrideMethodsMetadata(Map<String, LRMIMethodMetadata> methodsMetadata) Overrides the LRMI methods metadata.
-
Method Details
-
isRemote
boolean isRemote()- Returns:
- whether this proxy is connected to a remote stub
-
getServicePlatformLogicalVersion
PlatformLogicalVersion getServicePlatformLogicalVersion()- Returns:
- returns the logical version of the service
-
getStubId
StubId getStubId()- Returns:
- the stub id
-
getGeneratedTraffic
long getGeneratedTraffic()- Returns:
- entire traffic generated by this proxy in bytes, this number is not necessarily monotonic as each connection in the stub holds this data per connection, once this connection is disconnected/reconnected this data is reseted.
- Since:
- 8.0
-
getReceivedTraffic
long getReceivedTraffic()- Returns:
- entire traffic received by this proxy in bytes this number is not necessarily monotonic as each connection in the stub holds this data per connection, once this connection is disconnected/reconnected this data is reseted.
- Since:
- 8.0
-
getConnectionUrl
String getConnectionUrl()- Returns:
- the connection url of the stub
- Since:
- 8.0
-
getRemoteProcessId
long getRemoteProcessId()- Returns:
- the process id of the stub
- Since:
- 9.5.0
-
getRemoteHostName
String getRemoteHostName()- Returns:
- return the host name of the stub
- Since:
- 9.5.0
-
getRemoteHostAddress
String getRemoteHostAddress()- Returns:
- return the host address of the stub
- Since:
- 9.5.0
-
getRemoteNetworkAddress
InetSocketAddress getRemoteNetworkAddress()- Returns:
- the ip address + port of the stub
- Since:
- 9.5.0
-
disable
Force this stub to be disabled (disconnected from its target)- Throws:
RemoteException- Since:
- 8.0.3
-
enable
Removes state of any previously calleddisable()- Throws:
RemoteException- Since:
- 8.0.3
-
overrideMethodsMetadata
Overrides the LRMI methods metadata. Can only be used before first invocation.- Since:
- 8.0.3
-
closeProxy
void closeProxy()Close the underline proxy connection and resources, this proxy will no longer be usable. -
isClosed
boolean isClosed()- Returns:
- true if this proxy is closed.
-