|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager org.apache.openjpa.datacache.AbstractQueryCache com.ibm.websphere.objectgrid.openjpa.ObjectGridQueryCache
public class ObjectGridQueryCache
A QueryCache
implementation is a
QueryCache plugin to integrate OpenJPA with ObjectGrid for leveraging the
cluster server advantages provided by ObjectGrid.
See ObjectGridDataCache
for detail configuration information.
Field Summary |
---|
Fields inherited from class org.apache.openjpa.datacache.AbstractQueryCache |
---|
conf, log |
Fields inherited from class org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager |
---|
_listeners |
Constructor Summary | |
---|---|
ObjectGridQueryCache()
|
Method Summary | |
---|---|
protected void |
clearInternal()
Clear the query cache |
void |
close()
Close this query cache |
protected QueryResult |
getInternal(QueryKey qk)
Returns a query result for a given query key |
String |
getMaxNumberOfReplicas()
Returns the maximum number of replicas for the EMBEDDED or EMBEDDED_PARTITION ObjectGrid type |
String |
getMaxUsedMemory()
Returns setting of whether memory based eviction is enabled |
String |
getNumberOfPartitions()
Returns the number of partitions used in the cache |
String |
getObjectGridName()
Returns the name of the ObjectGrid that handel the cache |
String |
getObjectGridType()
Returns the ObjectGrid type. |
String |
getPlacementScope()
Retrieve the scope used for partition placement. |
String |
getPlacementScopeTopology()
Retrieve the link topology used to perform intradomain replication. |
String |
getReplicaMode()
Returns the replica mode |
String |
getReplicaReadEnabled()
Returns whether reading from the replica is enabled |
void |
initialize(DataCacheManager mgr)
Sets the configuration for initializing Query Cache |
protected Collection |
keySet()
|
protected boolean |
pinInternal(QueryKey qk)
This is not applicable to ObjectGrid |
protected QueryResult |
putInternal(QueryKey qk,
QueryResult qr)
Caches a query result set with a given query key |
protected QueryResult |
removeInternal(QueryKey qk)
Removes the result set associated with the given query key |
void |
setMaxNumberOfReplicas(String numberOfReplicas)
Sets the maximum number of replicas for the EMBEDDED or EMBEDDED_PARTITION ObjectGrid type |
void |
setMaxUsedMemory(String maxUsedMemory)
Sets whether memory based eviction is enabled |
void |
setNumberOfPartitions(String number)
Sets the number of partitions to be used in the cache |
void |
setObjectGridName(String name)
Sets the name of the ObjectGrid that handles the cache |
void |
setObjectGridType(String objectGridType)
Sets the ObjectGrid type. |
void |
setPlacementScope(String scope)
Set the scope used for partition placement. |
void |
setPlacementScopeTopology(String scopeTopology)
Set the link topology used to perform intradomain replication. |
void |
setReplicaMode(String mode)
Sets the replica mode |
void |
setReplicaReadEnabled(String read)
Sets whether reading from replica is enabled |
protected boolean |
unpinInternal(QueryKey qk)
This is not applicable to ObjectGrid |
void |
writeLock()
writeLock is for synchroning the update on the cache. |
void |
writeUnlock()
Releases writeLock, paired with writeLock() for update synchronization |
Methods inherited from class org.apache.openjpa.datacache.AbstractQueryCache |
---|
addTypesChangedListener, afterCommit, clear, close, endConfiguration, fireEvent, get, isClosed, newListenerCollection, onTypesChanged, pin, put, remove, removeAllInternal, removeTypesChangedListener, setConfiguration, startConfiguration, unpin |
Methods inherited from class org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager |
---|
addListener, fireEvent, getListeners, hasListener, hasListeners, isFailFast, removeListener, setFailFast |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.event.RemoteCommitListener |
---|
afterCommit |
Constructor Detail |
---|
public ObjectGridQueryCache()
Method Detail |
---|
public void initialize(DataCacheManager mgr)
initialize
in interface QueryCache
initialize
in class AbstractQueryCache
QueryCache.initialize(org.apache.openjpa.datacache.DataCacheManager)
public void writeLock()
writeLock
in interface QueryCache
QueryCache.writeLock()
public void writeUnlock()
writeUnlock
in interface QueryCache
QueryCache.writeUnlock()
protected QueryResult getInternal(QueryKey qk)
getInternal
in class AbstractQueryCache
AbstractQueryCache.getInternal(org.apache.openjpa.datacache.QueryKey)
protected QueryResult putInternal(QueryKey qk, QueryResult qr)
putInternal
in class AbstractQueryCache
AbstractQueryCache.putInternal(org.apache.openjpa.datacache.QueryKey, org.apache.openjpa.datacache.QueryResult)
protected QueryResult removeInternal(QueryKey qk)
removeInternal
in class AbstractQueryCache
AbstractQueryCache.removeInternal(org.apache.openjpa.datacache.QueryKey)
protected void clearInternal()
clearInternal
in class AbstractQueryCache
AbstractQueryCache.clearInternal()
protected boolean pinInternal(QueryKey qk)
pinInternal
in class AbstractQueryCache
AbstractQueryCache.pinInternal(org.apache.openjpa.datacache.QueryKey)
protected boolean unpinInternal(QueryKey qk)
unpinInternal
in class AbstractQueryCache
AbstractQueryCache.unpinInternal(org.apache.openjpa.datacache.QueryKey)
public void setMaxUsedMemory(String maxUsedMemory)
public String getMaxUsedMemory()
public void setObjectGridName(String name)
public String getObjectGridName()
public void setObjectGridType(String objectGridType)
public String getObjectGridType()
public void setNumberOfPartitions(String number)
public String getNumberOfPartitions()
public void setReplicaMode(String mode)
public String getReplicaMode()
public void setReplicaReadEnabled(String read)
public String getReplicaReadEnabled()
public String getMaxNumberOfReplicas()
public void setMaxNumberOfReplicas(String numberOfReplicas)
public String getPlacementScope()
public void setPlacementScope(String scope)
scope
- the placement scope for the gridpublic String getPlacementScopeTopology()
public void setPlacementScopeTopology(String scopeTopology)
scopeTopology
- the link topologyprotected Collection keySet()
keySet
in class AbstractQueryCache
AbstractQueryCache.keySet()
public void close()
close
in interface QueryCache
close
in interface RemoteCommitListener
close
in interface Closeable
close
in class AbstractQueryCache
AbstractQueryCache.close()
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |