Похоже, ALL_CACHE_MANAGERS
заменено на org.ehcache.clustered.operations
команду ListCacheManagers в ehcache 3.8.1.
Может использоваться следующим образом.
OperationsTool.main (...)
public static void main(String[] args) {
System.exit(innerMain(args));
}
OperationsTool.innerMain (...)
public static int innerMain(String[] args) {
BaseOptions base = new BaseOptions();
JCommander jc = new JCommander(base);
jc.setProgramName("ehcache-ops");
jc.addCommand(new ListCacheManagers(base));
jc.addCommand(new CreateCacheManager(base));
jc.addCommand(new UpdateCacheManager(base));
jc.addCommand(new DestroyCacheManager(base));
jc.setParameterDescriptionComparator(REQUIRED_FIRST);
for (JCommander jcc : jc.getCommands().values()) {
jcc.setParameterDescriptionComparator(REQUIRED_FIRST);
}
try {
jc.parse(args);
if (base.isHelp()) {
return usage(jc, new StringBuilder());
} else {
int result = 0;
for (Object o : jc.getCommands().get(jc.getParsedCommand()).getObjects()) {
result |= ((Command) o).execute();
}
return result;
}
} catch (ParameterException e) {
return usage(jc, new StringBuilder(e.getMessage()).append("\n"));
}
}
OperationsToolTest.run (...)
public static int run(String command) {
return OperationsTool.innerMain(command.split("\\s+"));
}
}
Ссылка:
- https://www.codota.com/web/assistant/code/rs/5c76b38b49efcb0001524b15#L36
- https://www.codota.com/code/java/classes/org.ehcache.clustered.operations.OperationsTool