|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BackingMapManagerContext
The BackingMapManager context used by the CacheService to pass information to the BackingMapManager during the service initialization. This object also allows BackingMapManager instances running on different cluster participate in a common service distribution strategy.
Field Summary | |
---|---|
static int |
DECO_CUSTOM The decoration id for a client specific (opaque) value information. |
static int |
DECO_EXPIRY The decoration id for the value expiry information. |
static int |
DECO_STORE The decoration id for the persistent state of the decorated value. |
Method Summary | |
---|---|
Object |
addInternalValueDecoration(Object oValue, int nDecorId, Object oDecor) Decorate a specified value in the internal form with a specified decoration in the "normal" Object form. |
Map |
getBackingMap(String sCacheName) Obtain a reference to the backing map that corresponds to the specified cache name. |
CacheService |
getCacheService() Return the CacheService assosiated with this context. |
ClassLoader |
getClassLoader() Return the ClassLoader assosiated with this context. |
XmlElement |
getConfig() Determine the current configuration of the assosiated BackingMapManager. |
Object |
getInternalValueDecoration(Object oValue, int nDecorId) Obtain a decoration from the specified value in the internal form. |
Converter |
getKeyFromInternalConverter() Return a converter that allows the manager (or a backing map managed thereby) to convert a key object from its internal form (as managed by the CacheService) into its "normal" (Object) form. |
int |
getKeyPartition(Object oKey) Determine the partition to which the specified key belongs. |
Converter |
getKeyToInternalConverter() Return a converter that allows the manager (or a backing map managed thereby) to convert a key object into its internal form as managed by the CacheService. |
BackingMapManager |
getManager() Return the BackingMapManager this object is a context for. |
Set |
getPartitionKeys(String sCacheName, int nPartition) Obtain a collection of keys in the internal format that belong to the specified partition for the specified backing map. |
Converter |
getValueFromInternalConverter() Return a converter that allows the manager (or a backing map managed thereby) to convert a value object from its internal form (as managed by the CacheService) into its "normal" (Object) form. |
Converter |
getValueToInternalConverter() Return a converter that allows the manager (or a backing map managed thereby) to convert a value object into its internal form as managed by the CacheService. |
boolean |
isInternalValueDecorated(Object oValue, int nDecorId) Check whether or not the specified value in the internal form is decorated. |
boolean |
isKeyOwned(Object oKey) Determines whether or not the specified key (in the internal format) is managed (i.e. controlled) by this service member. |
Object |
removeInternalValueDecoration(Object oValue, int nDecorId) Remove a decoration from the specified value in the internal form. |
void |
setClassLoader(ClassLoader loader) Assign the ClassLoader this context is assosiated with. |
void |
setConfig(XmlElement xml) Specify the configuration for the assosiated BackingMapManager. |
Field Detail |
---|
static final int DECO_EXPIRY
static final int DECO_STORE
static final int DECO_CUSTOM
Method Detail |
---|
BackingMapManager getManager()
CacheService getCacheService()
ClassLoader getClassLoader()
void setClassLoader(ClassLoader loader)
loader
- the ClassLoader assosiated with this contextConverter getKeyToInternalConverter()
Converter getKeyFromInternalConverter()
Converter getValueToInternalConverter()
Converter getValueFromInternalConverter()
boolean isKeyOwned(Object oKey)
oKey
- the resource key in the internal formatClassCastException
- if the passed key is not in the internal formatint getKeyPartition(Object oKey)
oKey
- a key in its internal formatSet getPartitionKeys(String sCacheName, int nPartition)
sCacheName
- the cache name for the backing map to retrieve the set of keys fornPartition
- the partition IDMap getBackingMap(String sCacheName)
sCacheName
- the cache nameObject addInternalValueDecoration(Object oValue, int nDecorId, Object oDecor)
internal converter
to either passed-in or returned internal values will produce identical values in Object form.oValue
- a value in the internal formnDecorId
- a decoration identifier; valid decoration identifiers are any of the DECO_* constant valuesoDecor
- a decoration value in Object formObject removeInternalValueDecoration(Object oValue, int nDecorId)
internal converter
to either passed-in or returned internal values will produce identical values in Object form.oValue
- a decorated value in the internal formnDecorId
- a decoration identifier; valid decoration identifiers are any of the DECO_* constant valuesboolean isInternalValueDecorated(Object oValue, int nDecorId)
oValue
- a decorated value in the internal formnDecorId
- a decoration identifier; valid decoration identifiers are any of the DECO_* constant valuesObject getInternalValueDecoration(Object oValue, int nDecorId)
oValue
- a decorated value in the internal formnDecorId
- a decoration identifier; valid decoration identifiers are any of the DECO_* constant valuesXmlElement getConfig()
getConfig
in interface XmlConfigurable
void setConfig(XmlElement xml)
setConfig
in interface XmlConfigurable
xml
- the XML configurationIllegalStateException
- if the object is not in a state that allows the configuration to be set; for example, if the manager has already been configured and cannot be reconfigured
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |