|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.rest.CacheResource
public class CacheResource
RESTful wrapper around a Coherence NamedCache
.
Field Summary | |
---|---|
protected NamedCache |
m_cache NamedCache wrapped by this resource. |
protected java.lang.Class |
m_clzKey Key class for the entries stored in the wrapped cache. |
protected java.lang.Class |
m_clzValue Value class for the entries stored in the wrapped cache. |
protected KeyConverter |
m_keyConverter Key converter. |
protected MarshallerRegistry |
m_registry Marshaller registry to obtain marshallers from. |
Constructor Summary | |
---|---|
CacheResource(NamedCache cache, java.lang.Class clzKey, java.lang.Class clzValue, KeyConverter keyConverter, MarshallerRegistry registry) Construct a new CacheResource. |
|
CacheResource(NamedCache cache, java.lang.Class clzKey, java.lang.Class clzValue, MarshallerRegistry registry) Construct a new CacheResource. |
Method Summary | |
---|---|
javax.ws.rs.core.Response |
aggregate(java.lang.String sAggr, java.lang.String sQuery, AggregatorRegistry registry) Perform an aggregating operation against the entries that satisfy the specified criteria. |
javax.ws.rs.core.Response |
getCacheEntries(int nStart, int nCount, java.lang.String sSort, PropertySet propertySet, java.lang.String sQuery) Return the cache entries values (or a subset of their properties) that satisfies the specified criteria. |
EntryResource |
getEntryResource(java.lang.String sKey) Return a REST sub-resource representing a single cache entry. |
EntrySetResource |
getEntrySetResource(java.lang.String sKeys) Return a REST sub-resource representing a set of cache entries. |
javax.ws.rs.core.Response |
process(java.lang.String sProc, java.lang.String sQuery, ProcessorRegistry registry) Invoke the specified processor against the entries that satisfy the specified criteria. |
Field Detail |
---|
protected final NamedCache m_cache
protected final java.lang.Class m_clzKey
protected final java.lang.Class m_clzValue
protected final KeyConverter m_keyConverter
protected final MarshallerRegistry m_registry
Constructor Detail |
---|
public CacheResource(NamedCache cache, java.lang.Class clzKey, java.lang.Class clzValue, MarshallerRegistry registry)
cache
- cache to create a resource forclzKey
- key class of the cached entriesclzValue
- value class of the cached entriesregistry
- marshaller registry to usepublic CacheResource(NamedCache cache, java.lang.Class clzKey, java.lang.Class clzValue, KeyConverter keyConverter, MarshallerRegistry registry)
cache
- cache to create a resource forclzKey
- key class of the cached entriesclzValue
- value class of the cached entrieskeyConverter
- key converter to useregistry
- marshaller registry to useMethod Detail |
---|
public javax.ws.rs.core.Response getCacheEntries(int nStart, int nCount, java.lang.String sSort, PropertySet propertySet, java.lang.String sQuery)
nStart
- starting index of result set to be returnednCount
- size of result set to be returned (page size)sSort
- a string expression that represents orderingpropertySet
- properties to return (if null, values will be returned)sQuery
- where predicate of Coherence Query Language to filter cache entries. If null, all cache values will be returnedpublic javax.ws.rs.core.Response aggregate(java.lang.String sAggr, java.lang.String sQuery,
sAggr
- name of the aggregatorsQuery
- where predicate of Coherence Query Language to filter cache entries (optional)registry
- aggregator registry that is used to map the given aggregator name to an EntryAggregator instancepublic javax.ws.rs.core.Response process(java.lang.String sProc, java.lang.String sQuery,
sProc
- the name of the processorsQuery
- where predicate of Coherence Query Language to filter cache entries (optional)registry
- processor registry that is used to map the given processor name to an the EntryProcessor instancepublic EntryResource getEntryResource(java.lang.String sKey)
sKey
- referenced entry's keypublic EntrySetResource getEntrySetResource(java.lang.String sKeys)
sKeys
- keys of the referenced entries
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |