.getILoggerFactory();
if (lc != null) {
for (ch.qos.logback.classic.Logger l : lc.getLoggerList()) {
- if (loggerName == null || l.getName().startsWith(loggerName)) {
+ if ((loggerName == null) || l.getName().startsWith(loggerName)) {
ci.println(retrieveLogLevel(l));
}
}
ci.println("\nNo Clustering services available");
return;
}
- String containerName = ci.nextArgument();
+ String containerName = ci.nextArgument().toLowerCase();
if (containerName == null) {
ci.println("containerName not supplied");
return;
public void _dumper(CommandInterpreter ci) {
ConcurrentMap<Object, Object> c;
- String containerName = ci.nextArgument();
+ String containerName = ci.nextArgument().toLowerCase();
if (containerName == null) {
ci.println("containerName not supplied");
return;
ci.println("Cache not supplied");
return;
}
+ int count = 0;
c = (ConcurrentMap<Object, Object>) this.icluster.getCache(containerName, cacheName);
if (c != null) {
for (Map.Entry<Object, Object> e : c.entrySet()) {
ci.println("Element " + entry.getKey() + "(hashCode="
+ entry.getKey().hashCode() + ") has value = (" + res
+ ")");
+ count++;
}
+ ci.println("Dumped " + count + " records");
} else {
ci.println("Cache " + cacheName + " on container " + containerName
+ " not existant!");
}
class DoListenRoleChanged implements IListenRoleChange {
+ @Override
public void newActiveAvailable() {
logger.debug("New Active is available");
}