|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
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. |
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. |
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. |
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. |
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 binary representaion
ClassCastException
- if the passed key is not in internal formatObject 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 form
Object 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 values
boolean 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 values
Object 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 values
XmlElement getConfig()
getConfig
in interface XmlConfigurable
void setConfig(XmlElement xml)
setConfig
in interface XmlConfigurable
xml
- the XML configuration
IllegalStateException
- 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
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |