Package net.sf.ehcache

Examples of net.sf.ehcache.Status



  @Override
  protected Collection<Cache> loadCaches() {
    Assert.notNull(this.cacheManager, "A backing EhCache CacheManager is required");
    Status status = this.cacheManager.getStatus();
    Assert.isTrue(Status.STATUS_ALIVE.equals(status),
        "An 'alive' EhCache CacheManager is required - current cache is " + status.toString());

    String[] names = this.cacheManager.getCacheNames();
    Collection<Cache> caches = new LinkedHashSet<Cache>(names.length);
    for (String name : names) {
      caches.add(new EhCacheCache(this.cacheManager.getEhcache(name)));
View Full Code Here


   * Create an {@link EhCacheCache} instance.
   * @param ehcache backing Ehcache instance
   */
  public EhCacheCache(Ehcache ehcache) {
    Assert.notNull(ehcache, "Ehcache must not be null");
    Status status = ehcache.getStatus();
    Assert.isTrue(Status.STATUS_ALIVE.equals(status),
        "An 'alive' Ehcache is required - current cache is " + status.toString());
    this.cache = ehcache;
  }
View Full Code Here


  @Override
  protected Collection<Cache> loadCaches() {
    Assert.notNull(this.cacheManager, "A backing EhCache CacheManager is required");
    Status status = this.cacheManager.getStatus();
    Assert.isTrue(Status.STATUS_ALIVE.equals(status),
        "An 'alive' EhCache CacheManager is required - current cache is " + status.toString());

    String[] names = this.cacheManager.getCacheNames();
    Collection<Cache> caches = new LinkedHashSet<Cache>(names.length);
    for (String name : names) {
      caches.add(new EhCacheCache(this.cacheManager.getEhcache(name)));
View Full Code Here

   * Create an {@link EhCacheCache} instance.
   * @param ehcache backing Ehcache instance
   */
  public EhCacheCache(Ehcache ehcache) {
    Assert.notNull(ehcache, "Ehcache must not be null");
    Status status = ehcache.getStatus();
    Assert.isTrue(Status.STATUS_ALIVE.equals(status),
        "An 'alive' Ehcache is required - current cache is " + status.toString());
    this.cache = ehcache;
  }
View Full Code Here

  }


  @Override
  protected Collection<Cache> loadCaches() {
    Status status = getCacheManager().getStatus();
    Assert.isTrue(Status.STATUS_ALIVE.equals(status),
        "An 'alive' EhCache CacheManager is required - current cache is " + status.toString());

    String[] names = getCacheManager().getCacheNames();
    Collection<Cache> caches = new LinkedHashSet<Cache>(names.length);
    for (String name : names) {
      caches.add(new EhCacheCache(getCacheManager().getEhcache(name)));
View Full Code Here

   * Create an {@link EhCacheCache} instance.
   * @param ehcache backing Ehcache instance
   */
  public EhCacheCache(Ehcache ehcache) {
    Assert.notNull(ehcache, "Ehcache must not be null");
    Status status = ehcache.getStatus();
    Assert.isTrue(Status.STATUS_ALIVE.equals(status),
        "An 'alive' Ehcache is required - current cache is " + status.toString());
    this.cache = ehcache;
  }
View Full Code Here

    /**
     * {@inheritDoc}.
     */
    public Status getStatus() {
        Status rv = null;
        try {
            rv = executeWithExecutor(new Callable<Status>() {
                public Status call() throws Exception {
                    return nonstopActiveDelegateHolder.getUnderlyingTerracottaStore().getStatus();
                }
View Full Code Here

TOP

Related Classes of net.sf.ehcache.Status

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.