com.sun.jini.outrigger
Class EntryHolderSet

java.lang.Object
  extended by com.sun.jini.outrigger.EntryHolderSet

 class EntryHolderSet
extends Object

A set of EntryHolder objects for a given space.

Author:
Sun Microsystems, Inc.
See Also:
EntryHolder, OutriggerServerImpl

Field Summary
private  Map holders
           
private  Hashtable idMap
           
private  OutriggerServerImpl space
           
 
Constructor Summary
EntryHolderSet(OutriggerServerImpl space)
           
 
Method Summary
(package private)  LeasedResource getLeasedResource(Uuid cookie)
           
(package private)  EntryHandle handleFor(Object cookie)
          Given an entry ID, return the handle associated with it.
(package private)  EntryHolder holderFor(EntryRep rep)
          Return the EntryHolder object for the exact class of the Entry object held in bits.
(package private)  EntryHolder holderFor(String className)
          Return the EntryHolder object for the exact class with the given ID.
(package private)  void reap()
          Force all of the holders to reap their FastLists
(package private)  void remove(EntryHandle handle)
          Remove the passed handle and associated entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

holders

private final Map holders

idMap

private final Hashtable idMap

space

private final OutriggerServerImpl space
Constructor Detail

EntryHolderSet

EntryHolderSet(OutriggerServerImpl space)
Method Detail

holderFor

EntryHolder holderFor(EntryRep rep)
Return the EntryHolder object for the exact class of the Entry object held in bits. If one doesn't yet exist, it will be created.

See Also:
holderFor(java.lang.String)

holderFor

EntryHolder holderFor(String className)
Return the EntryHolder object for the exact class with the given ID. If one doesn't yet exist, it will be created.

See Also:
holderFor(EntryRep)

getLeasedResource

LeasedResource getLeasedResource(Uuid cookie)

handleFor

EntryHandle handleFor(Object cookie)
Given an entry ID, return the handle associated with it.


remove

void remove(EntryHandle handle)
Remove the passed handle and associated entry. Assumes the caller holds the lock on handle


reap

void reap()
Force all of the holders to reap their FastLists



Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.