Class ObjectRegistry

java.lang.Object
com.gigaspaces.lrmi.ObjectRegistry

public class ObjectRegistry extends Object
The Object Registry contains information about exported remote objects.
Since:
4.0
Author:
Igor Goldenberg
  • Constructor Details

    • ObjectRegistry

      public ObjectRegistry()
  • Method Details

    • isLastRegistrar

      public boolean isLastRegistrar(String protocol)
      If protocol is not held by any other Object in this registry, the true is returned; otherwise, there is at least one protocol registration that is being used.
      Parameters:
      protocol - LRMI protocol of the transport layer
      Returns:
      true if last registrar of this protocol.
    • createEntry

      public ObjectRegistry.Entry createEntry(Remote object, long objectId, LRMIMethod[] lrmiMethods)
      Creates a new entry in this registry.
    • getEntryFromObject

      public ObjectRegistry.Entry getEntryFromObject(Object object)
      Returns the entry corresponding to the specified object.
    • getEntryFromObjectIdIfExists

      public ObjectRegistry.Entry getEntryFromObjectIdIfExists(long objectId)
      Returns the entry corresponding to the specified object id.
    • getEntryFromObjectId

      public ObjectRegistry.Entry getEntryFromObjectId(long objectId) throws NoSuchObjectException
      Throws:
      NoSuchObjectException
    • removeEntry

      public void removeEntry(Remote object)
      Removes the entry corresponding to the specified object.
    • clear

      public void clear()
      Clears the entire object registery