Package com.gigaspaces.lrmi
Class ObjectRegistry
java.lang.Object
com.gigaspaces.lrmi.ObjectRegistry
The Object Registry contains information about exported remote objects.
- Since:
- 4.0
- Author:
- Igor Goldenberg
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the entire object registerycreateEntry(Remote object, long objectId, LRMIMethod[] lrmiMethods) Creates a new entry in this registry.getEntryFromObject(Object object) Returns the entry corresponding to the specified object.getEntryFromObjectId(long objectId) getEntryFromObjectIdIfExists(long objectId) Returns the entry corresponding to the specified object id.booleanisLastRegistrar(String protocol) If protocol is not held by any other Object in this registry, thetrueis returned; otherwise, there is at least one protocol registration that is being used.voidremoveEntry(Remote object) Removes the entry corresponding to the specified object.
-
Constructor Details
-
ObjectRegistry
public ObjectRegistry()
-
-
Method Details
-
isLastRegistrar
If protocol is not held by any other Object in this registry, thetrueis returned; otherwise, there is at least one protocol registration that is being used.- Parameters:
protocol- LRMI protocol of the transport layer- Returns:
trueif last registrar of this protocol.
-
createEntry
Creates a new entry in this registry. -
getEntryFromObject
Returns the entry corresponding to the specified object. -
getEntryFromObjectIdIfExists
Returns the entry corresponding to the specified object id. -
getEntryFromObjectId
- Throws:
NoSuchObjectException
-
removeEntry
Removes the entry corresponding to the specified object. -
clear
public void clear()Clears the entire object registery
-