public class ContractStoreRegistry
extends com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright string.
|
static java.lang.String |
REGISTRY_NAME
The name of this registry.
|
Constructor and Description |
---|
ContractStoreRegistry()
Constructor for ContractStoreRegistry.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createKey(java.lang.String astrKey)
No-op.
|
java.lang.String |
createKeyString(com.ibm.commerce.datatype.TypedProperty aTypedProperty)
No-op.
|
static ContractStoreRegistry |
getInstance()
Returns the unique instance of this registry.
|
void |
initialize()
Initializes this registry.
|
void |
populate(com.ibm.commerce.registry.LRUDynamicHashtable aCache)
No-op.
|
void |
refresh()
This method refreshes all the elements in the cache.
|
java.lang.Object |
retrieve(java.lang.Object aKey)
Returns the store which a contract is deployed in.
|
void |
update(java.lang.String action,
java.lang.Object key)
This method updates a cached element.
|
addElement, findObject, getCache, getCacheSize, getElement, getElementCount, getElements, getEvictions, getHits, getKeys, getMisses, getUsedCacheSize, removeAllElements, removeElement, setCache, setCacheSize, setInitialCapacity, setLoadFactor
public static final java.lang.String COPYRIGHT
public static final java.lang.String REGISTRY_NAME
public ContractStoreRegistry()
public java.lang.Object createKey(java.lang.String astrKey) throws java.lang.Exception
createKey
in interface com.ibm.commerce.registry.ElementUpdate
createKey
in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
astrKey
- java.lang.Exception
ElementUpdate#createKey(String)
public java.lang.String createKeyString(com.ibm.commerce.datatype.TypedProperty aTypedProperty) throws java.lang.Exception
createKeyString
in interface com.ibm.commerce.registry.ElementUpdate
createKeyString
in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
aTypedProperty
- java.lang.Exception
ElementUpdate#createKeyString(TypedProperty)
public static ContractStoreRegistry getInstance()
public void initialize() throws java.lang.Exception
initialize
in interface com.ibm.commerce.registry.Registry
initialize
in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
java.lang.Exception
public void populate(com.ibm.commerce.registry.LRUDynamicHashtable aCache) throws java.lang.Exception
populate
in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
aCache
- java.lang.Exception
AbstractManagedDynamicCacheRegistry.populate(LRUDynamicHashtable)
public void refresh() throws java.lang.Exception
refresh
in interface com.ibm.commerce.registry.Registry
refresh
in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
java.lang.Exception
public java.lang.Object retrieve(java.lang.Object aKey) throws java.lang.Exception
retrieve
in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
aKey
- the contract ID (Long
).Integer
).java.lang.Exception
AbstractManagedDynamicCacheRegistry.retrieve(Object)
public void update(java.lang.String action, java.lang.Object key) throws java.lang.Exception
update
in interface com.ibm.commerce.registry.ElementUpdate
update
in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
action
- The action performed on the registry. For example, a delete or an update.key
- The cache key.java.lang.Exception