use of com.sun.enterprise.admin.servermgmt.pe.PEDomainsManager in project Payara by payara.
the class StopAllDomainsCommand method getDomains.
// Copied from ListDomainCommand.java
private String[] getDomains() throws DomainException, IOException {
File domainsDirFile = ok(domainDirParam) ? new File(domainDirParam) : DomainDirs.getDefaultDomainsDir();
DomainConfig domainConfig = new DomainConfig(null, domainsDirFile.getAbsolutePath());
DomainsManager manager = new PEDomainsManager();
String[] domainsList = manager.listDomains(domainConfig);
if (domainsList.length == 0) {
logger.fine(strings.get("NoDomainsToList"));
}
return domainsList;
}
Aggregations