• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • ehcache,ehcache-monitor
  • nrana
  • Reporter: amiller
  • November 06, 2009
  • 0
  • Watchers: 0
  • July 21, 2010
  • November 08, 2009

Description

Existing functionality a small subset of existing JMX

The attributes and operations are a small subset of what can be done in JMX.

e.g. this is the configuration that is exposed.

/** * Accessor */ public String getName() { return cacheConfiguration.getName(); }

/**
 * Accessor
 */
public int getMaxElementsInMemory() {
    return cacheConfiguration.getMaxElementsInMemory();
}

/**
 * Accessor
 */
public int getMaxElementsOnDisk() {
    return cacheConfiguration.getMaxElementsOnDisk();
}

/**
 * Accessor
 * @return a String representation of the policy
 */
public String getMemoryStoreEvictionPolicy() {
    return cacheConfiguration.getMemoryStoreEvictionPolicy().toString();
}

/**
 * Accessor
 */
public boolean isEternal() {
    return cacheConfiguration.isEternal();
}

/**
 * Accessor
 */
public long getTimeToIdleSeconds() {
    return cacheConfiguration.getTimeToIdleSeconds();
}

/**
 * Accessor
 */
public long getTimeToLiveSeconds() {
    return cacheConfiguration.getTimeToLiveSeconds();
}

/**
 * Accessor
 */
public boolean isOverflowToDisk() {
    return cacheConfiguration.isOverflowToDisk();
}

/**
 * Accessor
 */
public boolean isDiskPersistent() {
    return cacheConfiguration.isDiskPersistent();
}

/**
 * Accessor
 */
public int getDiskSpoolBufferSizeMB() {
    return cacheConfiguration.getDiskSpoolBufferSizeMB();
}

/**
 * Accessor
 */
public long getDiskExpiryThreadIntervalSeconds() {
    return cacheConfiguration.getDiskExpiryThreadIntervalSeconds();
}

/**
 * Accessor
 */
public boolean isTerracottaClustered() {
    return cacheConfiguration.isTerracottaClustered();
}

The calls from users over the past few years has been to add more.

The problem then becomes that the Console cannot replace the use of a custom application connecting to JMX/RMI and getting these existing beans or using JConsole which to me brings the value of the Console into question.

Comments

Alex Miller 2009-11-06

Not sure how much of this is already there and how much we can get in to Brisbane. Please update and/or split out.

Geert Bevin 2009-11-08

All these are exposed through the RESTful API, not all of them are by default shown in the GUI but by turning on some of the columns that are hidden by default in the config panel, they can all be seen (click on the downwards arrow on the right of a column header to access that).

Nitin Rana 2009-11-25

getName(): can obtained through “probeGetCacheManagerName”

getMaxElementsInMemory(), getMaxElementsOnDisk(), getMemoryStoreEvictionPolicy(), isEternal(), getTimeToIdleSeconds(), getTimeToLiveSeconds(), isOverflowToDisk(), isDiskPersistent(), getDiskSpoolBufferSizeMB(), getDiskExpiryThreadIntervalSeconds(): can obtained through “probeGetCacheConfigAllValues”

isTerracottaClustered() : getReplicationMode