Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01

weblogic.management.runtime
Interface QueryCacheRuntimeMBean

All Superinterfaces:
DynamicMBean, MBeanRegistration, NotificationBroadcaster, RuntimeMBean, WebLogicMBean

public interface QueryCacheRuntimeMBean
extends RuntimeMBean

This interface contains accessor methods for all query cache runtime information collected for an EJB. The cache miss counts need some explaining. A query-cache miss can occur due to one of five reasons: 1. The query result was not found in the query-cache 2. The query result has timed out 3. A bean which satisfies the query wasnot found in the entity cache 4. A query with relationship-caching turned on did not find the related-beans query result 5. A query which loads multiple EJBs could not load one or more of them To better aid tuning, there are separate counters provided for each of the last four of the above causes. The fifth counter is a total cache miss counter. This counter takes into account all five causes of a cache miss.


Method Summary
 long getCacheAccessCount()
          Provides a count of the number of accesses of the query cache for this EJB.
 long getCacheHitCount()
          Provides a count of the number of cache hits of the query cache for this EJB.
 long getCacheMissByBeanEvictionCount()
          Provides a count of the number of cache misses of the query cache for this EJB because corresponding beans were not found in the entity cache.
 long getCacheMissByDependentQueryMissCount()
          Provides a count of the number of cache misses of the query cache for this EJB because a dependent query was not found in another EJB's query cache.
 long getCacheMissByRelatedQueryMissCount()
          Provides a count of the number of cache misses of the query cache for this EJB because a related query was not found in another EJB's query cache.
 long getCacheMissByTimeoutCount()
          Provides a count of the number of cache misses of the query cache for this EJB due to query results timing out.
 int getTotalCachedQueriesCount()
          Provides a count of the total number of query results for this EJB currently in the query cache.
 long getTotalCacheMissCount()
          Provides a count of the total number of cache misses of the query cache for this EJB.
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Method Detail

getTotalCachedQueriesCount

int getTotalCachedQueriesCount()

Provides a count of the total number of query results for this EJB currently in the query cache.

Returns the total number of query results for this EJB currently in the EJB cache.

Returns:
The totalCachedQueriesCount value

getCacheAccessCount

long getCacheAccessCount()

Provides a count of the number of accesses of the query cache for this EJB.

Returns the number of accesses of the query cache for this EJB.

Returns:
The cacheAccessCount value

getCacheHitCount

long getCacheHitCount()

Provides a count of the number of cache hits of the query cache for this EJB.

Returns the number of cache hits of the query cache for this EJB.

Returns:
The cacheHitCount value

getTotalCacheMissCount

long getTotalCacheMissCount()

Provides a count of the total number of cache misses of the query cache for this EJB.

Returns the total number of cache misses of the query cache for this EJB.

Returns:
The totalCacheMissCount value

getCacheMissByTimeoutCount

long getCacheMissByTimeoutCount()

Provides a count of the number of cache misses of the query cache for this EJB due to query results timing out.

Returns the number of cache misses due to query result timeout for this EJB.

Returns:
The cacheMissByTimeoutCount value

getCacheMissByBeanEvictionCount

long getCacheMissByBeanEvictionCount()

Provides a count of the number of cache misses of the query cache for this EJB because corresponding beans were not found in the entity cache.

Returns the number of times a cache miss occurred for this EJB because corresponding beans were not found in the entity cache.

Returns:
The cacheMissByBeanEvictionCount value

getCacheMissByRelatedQueryMissCount

long getCacheMissByRelatedQueryMissCount()

Provides a count of the number of cache misses of the query cache for this EJB because a related query was not found in another EJB's query cache.

Returns the number of times a cache miss occurred for this EJB because a related query was not found in another EJB's query cache.

Returns:
The cacheMissByRelatedQueryMissCount value

getCacheMissByDependentQueryMissCount

long getCacheMissByDependentQueryMissCount()

Provides a count of the number of cache misses of the query cache for this EJB because a dependent query was not found in another EJB's query cache.

Returns the number of times a cache miss occurred for this EJB because a dependent query was not found in another EJB's query cache.

Returns:
The cacheMissByDependentQueryMissCount value

Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01