View Javadoc

1   /**
2    *  Copyright 2003-2007 Greg Luck
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   */
16  
17  package net.sf.ehcache.management;
18  
19  /**
20   * A JMX MBean interface for the configuration of a cache
21   * @author Greg Luck
22   * @version $Id: CacheConfigurationMBean.java 512 2007-07-10 09:18:45Z gregluck $
23   * @since 1.3
24   */
25  public interface CacheConfigurationMBean {
26  
27  
28      /**
29       * Accessor
30       */
31      public String getName();
32  
33      /**
34       * Accessor
35       */
36      public int getMaxElementsInMemory();
37  
38      /**
39       * Accessor
40       */
41      public int getMaxElementsOnDisk();
42  
43      /**
44       * Accessor
45       * @return a String representation of the policy
46       */
47      public String getMemoryStoreEvictionPolicy();
48  
49      /**
50       * Accessor
51       */
52      public boolean isEternal();
53  
54      /**
55       * Accessor
56       */
57      public long getTimeToIdleSeconds();
58  
59      /**
60       * Accessor
61       */
62      public long getTimeToLiveSeconds();
63  
64      /**
65       * Accessor
66       */
67      public boolean isOverflowToDisk();
68  
69      /**
70       * Accessor
71       */
72      public boolean isDiskPersistent();
73  
74      /**
75       * Accessor
76       */
77      public long getDiskExpiryThreadIntervalSeconds();
78  
79  
80  }