/** * Creates a selector for choosing the correct set of directories. * @param domainDirParent parent of the domain directory file(s) * @param serverName name of the requested instance or domain * @param nodeDir path to the node directory * @param node name of the node * @return * @throws CommandException * @throws IOException */ public static ServerDirsSelector getInstance( final File domainDirParent, final String serverName, final String nodeDir, final String node) throws CommandException, IOException { final ServerDirsSelector helper = new ServerDirsSelector( domainDirParent, serverName, nodeDir, node); helper.validateDomainOrInstance(); return helper; }
/** * Creates a selector for choosing the correct set of directories. * @param domainDirParent parent of the domain directory file(s) * @param serverName name of the requested instance or domain * @param nodeDir path to the node directory * @param node name of the node * @return * @throws CommandException * @throws IOException */ public static ServerDirsSelector getInstance( final File domainDirParent, final String serverName, final String nodeDir, final String node) throws CommandException, IOException { final ServerDirsSelector helper = new ServerDirsSelector( domainDirParent, serverName, nodeDir, node); helper.validateDomainOrInstance(); return helper; }