/** * {@inheritDoc} */ @Override public void setEnabled(boolean enabled) { try { cache.setDisabled(!enabled); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public void flush() { try { cache.flush(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public boolean isClusterBulkLoadEnabled() { try { return cache.isClusterBulkLoadEnabled(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Deprecated public boolean isNodeCoherent() { try { return sampledCacheDelegate.getCache().isNodeCoherent(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public long getRemovedCount() { try { return cache.getStatistics().cacheRemoveCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ public void setMaxBytesLocalHeapAsString(String maxBytes) { try { cacheManager.getConfiguration().setMaxBytesLocalHeap(maxBytes); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public long getXaCommitCount() { try { return cache.getStatistics().xaCommitCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public long getWriterQueueLength() { try { return cache.getStatistics().getWriterQueueLength(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public long getCacheHitCount() { try { return cache.getStatistics().cacheHitCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ public void setMaxBytesLocalDiskAsString(String maxBytes) { try { cacheManager.getConfiguration().setMaxBytesLocalDisk(maxBytes); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public long getOnDiskMissCount() { try { return cache.getStatistics().localDiskMissCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public long getEvictedCount() { try { return cache.getStatistics().cacheEvictedCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public long getInMemoryHitCount() { try { return cache.getStatistics().localHeapHitCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public long getOffHeapHitCount() { try { return cache.getStatistics().localOffHeapHitCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public long getLocalOffHeapSize() { try { return cache.getStatistics().getLocalOffHeapSize(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public long getCacheMissCount() { try { return cache.getStatistics().cacheMissCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ @Override public long getLocalHeapSizeInBytes() { try { return cache.getStatistics().getLocalHeapSizeInBytes(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ public void setMaxBytesLocalDisk(long maxBytes) { try { cacheManager.getConfiguration().setMaxBytesLocalDisk(maxBytes); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ public void setMaxBytesLocalHeap(long maxBytes) { try { cacheManager.getConfiguration().setMaxBytesLocalHeap(maxBytes); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
@Override public long getMostRecentRejoinTimeStampMillis() { try { return cache.getStatistics().getExtended().mostRecentRejoinTimeStampMillis().value().longValue(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }