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 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

      void disable() throws RemoteException
      Force this stub to be disabled (disconnected from its target)
      Throws:
      RemoteException
      Since:
      8.0.3
    • enable

      void enable() throws RemoteException
      Removes state of any previously called disable()
      Throws:
      RemoteException
      Since:
      8.0.3
    • overrideMethodsMetadata

      void overrideMethodsMetadata(Map<String,LRMIMethodMetadata> methodsMetadata)
      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.