use of org.jboss.as.jdr.commands.CallAS7 in project wildfly by wildfly.
the class AS7Plugin method getCommands.
@Override
public List<JdrCommand> getCommands() throws Exception {
Sanitizer xmlSanitizer = Sanitizers.xml("//password");
Sanitizer passwordSanitizer = Sanitizers.pattern("password=.*", "password=*");
return Arrays.asList(new TreeCommand(), new JarCheck(), new CallAS7("configuration").param("recursive", "true"), new CallAS7("dump-services").operation("dump-services").resource("core-service", "service-container"), new CallAS7("cluster-proxies-configuration").resource("subsystem", "modcluster"), new CallAS7("jndi-view").operation("jndi-view").resource("subsystem", "naming"), new CollectFiles("*/standalone/configuration/*").sanitizer(xmlSanitizer, passwordSanitizer), new CollectFiles("*/domain/configuration/*").sanitizer(xmlSanitizer, passwordSanitizer), new CollectFiles("*server.log").limit(50 * Utils.ONE_MB), new CollectFiles("*.log").omit("*server.log"), new CollectFiles("*gc.log.*"), new CollectFiles("*.properties").sanitizer(passwordSanitizer), new CollectFiles("*.xml").sanitizer(xmlSanitizer), new CollectFiles("*/modules/system/*/.overlays/.overlays"), new CollectFiles("*/.installation/*.conf"), new CollectFiles("*/.installation/*.txt"), new SystemProperties().sanitizer(passwordSanitizer), new DeploymentDependencies(), new LocalModuleDependencies());
}
Aggregations