Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.modules.registry
Class FlexRegistry  view FlexRegistry download FlexRegistry.java

java.lang.Object
  extended bycom.flexstor.common.modules.registry.FlexRegistry

public abstract class FlexRegistry
extends java.lang.Object


Field Summary
static int FIRST
           
static int LAST
           
private static int nPrefetchChunkSize
           
private static com.flexstor.common.modules.registry.manager.AbstractRegistryManager regManager
           
private static ResultsFetcher resultsFetcher
           
 
Constructor Summary
protected FlexRegistry()
           
 
Method Summary
protected  com.flexstor.common.data.ejb.search.MultiValueData[] cloneMultiValueData(com.flexstor.common.data.ejb.search.MultiValueData[] orginal)
           
protected  java.lang.String fixupLabel(java.lang.String sLabel, boolean bDebugLength)
          Removes invalid characters from a label, and restricts its length.
protected  void getChildren(java.util.ArrayList l, InstanceId id, boolean bRecursive, int nInstanceType)
           
 java.util.ArrayList getChildren(InstanceId id, boolean bRecursive, int nInstanceType)
           
 java.lang.String getDescription(InstanceId id)
           
 java.lang.String getFullDescription(InstanceId id)
           
 BaseInstanceI getInstance(InstanceId id)
           
 java.util.Collection getInstanceIds(InstanceId id)
           
 java.lang.String getLabel(InstanceId id)
           
abstract  java.lang.String getLabel(InstanceId id, boolean bIncludeDebugInfo)
           
protected  java.lang.Object getObject(java.lang.Object o)
           
 BaseInstanceI getParentInstance(InstanceId id)
           
 int getPosition(InstanceId id)
           
protected  int getPrefetchChunkSize()
           
static com.flexstor.common.modules.registry.manager.AbstractRegistryManager getRegistryManager()
          This method should NOT be used outside this class in production code!!! It is was made public to provide a debugging hook.
protected  ResultsFetcher getResultsFetcher()
          Returns the shared instance of ResultsFetcher.
protected  long getUniqueInstanceId()
           
protected  long getUniqueResultSetId()
           
 java.lang.Object getUserObject(InstanceId id)
           
protected  boolean isObjectInCollection(java.lang.Object o)
           
private  void prefetchBuckets(com.flexstor.common.modules.registry.disguise.DisguiseInstanceI dInst, java.util.List lBuckets, int nLevel, int nBucketId)
           
 void prefetchBuckets(java.util.List lBuckets)
          Prefetches bucket or element data for a collection of bucket and element instances.
static void purgeAll()
          Purges ALL items from ALL registries.
protected  void registerObject(java.lang.Object key, java.lang.Object val)
           
static void setPrefetchChunkSize(int nChunkSize)
           
static void setRegistryManager(com.flexstor.common.modules.registry.manager.AbstractRegistryManager mgr)
           
 void setUserObject(InstanceId id, java.lang.Object o)
           
 boolean unlinkChild(InstanceId id, InstanceId child)
           
abstract  void unregister(java.lang.Object o)
           
protected  void unregisterObject(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIRST

public static final int FIRST
See Also:
Constant Field Values

LAST

public static final int LAST
See Also:
Constant Field Values

resultsFetcher

private static ResultsFetcher resultsFetcher

regManager

private static com.flexstor.common.modules.registry.manager.AbstractRegistryManager regManager

nPrefetchChunkSize

private static int nPrefetchChunkSize
Constructor Detail

FlexRegistry

protected FlexRegistry()
Method Detail

getLabel

public abstract java.lang.String getLabel(InstanceId id,
                                          boolean bIncludeDebugInfo)

unregister

public abstract void unregister(java.lang.Object o)

setRegistryManager

public static void setRegistryManager(com.flexstor.common.modules.registry.manager.AbstractRegistryManager mgr)

setPrefetchChunkSize

public static void setPrefetchChunkSize(int nChunkSize)

getPrefetchChunkSize

protected int getPrefetchChunkSize()

getRegistryManager

public static com.flexstor.common.modules.registry.manager.AbstractRegistryManager getRegistryManager()
This method should NOT be used outside this class in production code!!! It is was made public to provide a debugging hook.


getResultsFetcher

protected ResultsFetcher getResultsFetcher()
Returns the shared instance of ResultsFetcher. This class performs all post search requests to the search retieval bean.


setUserObject

public void setUserObject(InstanceId id,
                          java.lang.Object o)

getUserObject

public java.lang.Object getUserObject(InstanceId id)

getPosition

public int getPosition(InstanceId id)

unlinkChild

public boolean unlinkChild(InstanceId id,
                           InstanceId child)

getUniqueInstanceId

protected long getUniqueInstanceId()

getUniqueResultSetId

protected long getUniqueResultSetId()

getInstanceIds

public java.util.Collection getInstanceIds(InstanceId id)

getLabel

public java.lang.String getLabel(InstanceId id)

fixupLabel

protected java.lang.String fixupLabel(java.lang.String sLabel,
                                      boolean bDebugLength)
Removes invalid characters from a label, and restricts its length.


getParentInstance

public BaseInstanceI getParentInstance(InstanceId id)

getChildren

public java.util.ArrayList getChildren(InstanceId id,
                                       boolean bRecursive,
                                       int nInstanceType)

getChildren

protected void getChildren(java.util.ArrayList l,
                           InstanceId id,
                           boolean bRecursive,
                           int nInstanceType)

getInstance

public BaseInstanceI getInstance(InstanceId id)

getDescription

public java.lang.String getDescription(InstanceId id)

getFullDescription

public java.lang.String getFullDescription(InstanceId id)

cloneMultiValueData

protected com.flexstor.common.data.ejb.search.MultiValueData[] cloneMultiValueData(com.flexstor.common.data.ejb.search.MultiValueData[] orginal)

getObject

protected java.lang.Object getObject(java.lang.Object o)

isObjectInCollection

protected boolean isObjectInCollection(java.lang.Object o)

registerObject

protected void registerObject(java.lang.Object key,
                              java.lang.Object val)

unregisterObject

protected void unregisterObject(java.lang.Object o)

purgeAll

public static void purgeAll()
Purges ALL items from ALL registries.


prefetchBuckets

public void prefetchBuckets(java.util.List lBuckets)
Prefetches bucket or element data for a collection of bucket and element instances.


prefetchBuckets

private void prefetchBuckets(com.flexstor.common.modules.registry.disguise.DisguiseInstanceI dInst,
                             java.util.List lBuckets,
                             int nLevel,
                             int nBucketId)