/** * Parse a String containing a human-readable memory size. * * @param configuredMemorySize the String containing a human-readable memory size. * @return the memory size in bytes. * @throws IllegalArgumentException thrown when the configured memory size cannot be parsed. */ public static long parse(String configuredMemorySize) throws IllegalArgumentException { MemorySize size = parseIncludingUnit(configuredMemorySize); return size.calculateMemorySizeInBytes(); }
/** * Configuration property accessor. * * @return Max bytes local offheap config setting value as string */ @ManagementAttribute String getMaxBytesLocalOffHeapAsString();
/** * Construct a default product info */ public ProductInfo() { parseProductInfo(EHCACHE_VERSION_RESOURCE); }
/** * {@inheritDoc} */ public long nextTimestamp() { return Timestamper.next(); }
/** * Configuration property accessor. * * @return Max entries in cache config setting value */ @ManagementAttribute long getMaxEntriesInCache();
/** * Gets the next timestamp; */ public final long nextTimestamp() { return Timestamper.next(); }
/** * Configuration property accessor. * * @return Max bytes local disk config setting value as string */ @ManagementAttribute String getMaxBytesLocalDiskAsString();
/** * Configuration property accessor. * * @return TTI in config */ @ManagementAttribute long getTimeToIdleSeconds();
/** * Is the cache a transactional one. * * @return the transactional * @see net.sf.ehcache.config.CacheConfiguration.TransactionalMode */ @ManagementAttribute boolean getTransactional();
/** * Is the cache configured for search. * * @return the searchable * @see net.sf.ehcache.config.Searchable */ @ManagementAttribute boolean getSearchable();
/** * Are any of the caches transactional * * @see net.sf.ehcache.config.CacheConfiguration.TransactionalMode */ @ManagementAttribute boolean getTransactional();
/** * Returns a textual description of a Terracotta-clustered cache's consistency mode. * * @return "STRONG", "EVENTUAL", or "na" if the cache is not Terracotta-clustered */ @ManagementAttribute String getTerracottaConsistency();
/** * Configuration property accessor. * * @return Max bytes local heap config setting value as string */ @ManagementAttribute String getMaxBytesLocalHeapAsString();
/** * Configuration property accessor. * * @return the store to which this cache is pinned * @see net.sf.ehcache.config.PinningConfiguration */ @ManagementAttribute String getPinnedToStore();
/** * Returns the number of configured write-behind queues/threads. * * @return Number of configured processing queues/threads for use by the write-behind writer * @see net.sf.ehcache.config.CacheWriterConfiguration#getWriteBehindConcurrency() */ @ManagementAttribute int getWriterConcurrency();
/** * Gets the status attribute of the Ehcache * * @return The status value, as a String from the Status enum class */ @ManagementAttribute String getStatus();
/** * Gets the cache names managed by the CacheManager */ @ManagementAttribute String[] getCacheNames() throws IllegalStateException;
/** * @return if any contained caches are configured for search */ @ManagementAttribute boolean getSearchable();
/** * Returns whether any caches are configured for write-behind */ @ManagementAttribute boolean getHasWriteBehindWriter();
/** * @return Original input for maxBytesLocalOffHeap */ @ManagementAttribute String getMaxBytesLocalOffHeapAsString();