Package host.anzo.simon
Class LookupTable
java.lang.Object
host.anzo.simon.LookupTable
- All Implemented Interfaces:
LookupTableMBean
This class is "the brain" of SIMON. It saves all known remote object - name
relations, as well as hashcodes for all the methods in the remote object. If
a object is getting unreferenced over the network connection, it gets
"informed" by the
unreferenced() method, if SimonUnreferenced is
implemented.-
Field Summary
Fields inherited from interface host.anzo.simon.LookupTableMBean
MBEAN_SUBTYPE_CLIENT, MBEAN_SUBTYPE_SERVER, MBEAN_TYPE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLookupTable(Dispatcher dispatcher) Called via Dispatcher to create a lookup table. -
Method Summary
Modifier and TypeMethodDescriptionGets a method according to the given remote object name and method hash valueintString[]getRefIdsForSession(long sessionId) intgetRemoteRefCount(long sessionId, String refId) Long[]intNumber of references for all sessions and all remote objects
-
Constructor Details
-
LookupTable
Called via Dispatcher to create a lookup table. There's only one LookupTable for one Dispatcher.- Parameters:
dispatcher-
-
-
Method Details
-
getMethod
Gets a method according to the given remote object name and method hash value- Parameters:
remoteObjectName- the remote object name which contains the methodmethodHash- the hash of the method- Returns:
- the method
-
getNumberOfRemoteRefSessions
public int getNumberOfRemoteRefSessions()- Specified by:
getNumberOfRemoteRefSessionsin interfaceLookupTableMBean
-
getRemoteRefSessions
- Specified by:
getRemoteRefSessionsin interfaceLookupTableMBean
-
getRefIdsForSession
- Specified by:
getRefIdsForSessionin interfaceLookupTableMBean
-
getRemoteRefCount
- Specified by:
getRemoteRefCountin interfaceLookupTableMBean
-
getTotalRefCount
public int getTotalRefCount()Description copied from interface:LookupTableMBeanNumber of references for all sessions and all remote objects- Specified by:
getTotalRefCountin interfaceLookupTableMBean- Returns:
- total ref count
-
getCallbackRefList
- Specified by:
getCallbackRefListin interfaceLookupTableMBean
-