@JmxManaged(descrition="Reset the counter statistic") public void reset() { isClosed = false; cnt = 0; startTime = 0; lastTime = 0; }
} while(anno == null); description = anno.descrition(); HashSet<String> attr = new HashSet<String>(); } else { methods.put(m.getName(), m); operations.add(new MBeanOperationInfo(anno.descrition(), m)); Method g = getter.get(name); Method s = setter.get(name); attributes.add(new MBeanAttributeInfo(name, g != null ? g.getAnnotation(JmxManaged.class).descrition() : s.getAnnotation(JmxManaged.class).descrition() , g, s));
@JmxManaged(descrition="Should the counter create and throw a RunntimeException() on next count") public boolean isThrowExceptionOnNextCount() { return throwExceptionOnNextCount; } @JmxManaged(descrition="Should the counter create and throw a RunntimeException() on next count")
@JmxManaged(descrition="Set the interval after it will sleeping") public void setSleepInterval(long sleepInterval) { this.sleepInterval = sleepInterval; } @JmxManaged(descrition="Get the seconds to sleep each interval")
@JmxManaged public long getValue() { return value; }
/** * Cleanup the connection pool. Unused or closed connections will be removed. * TODO new strategy to remove unused connections - not prompt, need a timeout time or minimum pool size. * @param unusedAlso */ @JmxManaged(descrition="Cleanup unused connections") public abstract void cleanup(boolean unusedAlso);
/** * Returns the persistent schema properties if supported. * @return The properties or null */ @JmxManaged(descrition="Database Properties of the Schema") public abstract DbProperties getSchemaProperties();
@JmxManaged(descrition="Unique name of the pool") public String getPoolId() { return name; }
@JmxManaged(descrition="Get the interval") public long getSleepInterval() { return sleepInterval; } @JmxManaged(descrition="Set the interval after it will sleeping")
@JmxManaged(descrition="Get the seconds to sleep each interval") public int getSleepSeconds() { return sleepSeconds; } @JmxManaged(descrition="Set the seconds to sleep each interval")
/** * Current pool size. * * @return x Current pool size, also pending closed connections. */ @JmxManaged(descrition="Current size of the pool") public abstract int getSize();
@Override @JmxManaged(descrition="Used Schema") public DbSchema getSchema() { return schema; }
@JmxManaged(descrition = "Name of this value") public String getName() { return name; }
@JmxManaged(descrition="Set the seconds to sleep each interval") public void setSleepSeconds(int sleepSeconds) { this.sleepSeconds = sleepSeconds; }
@JmxManaged(descrition="Should the counter create and throw a RunntimeException() on next count") public void setThrowExceptionOnNextCount(boolean throwExceptionOnNextCount) { this.throwExceptionOnNextCount = throwExceptionOnNextCount; }
@JmxManaged public boolean isValue() { return value; }
@JmxManaged public String getValue() { return value; }
@JmxManaged public int getValue() { return value; }
@JmxManaged(descrition = "Amount of counts") public long getValue() { return cnt; }
@JmxManaged public float getValue() { return value; }