com.sun.enterprise.admin.util
Class ServerDirsSelector
java.lang.Object
com.sun.enterprise.admin.util.ServerDirsSelector
public class ServerDirsSelector
- extends Object
Based on the presence or absence of values for:
- domain directory parent (e.g., ${installDir}/domains
- server name (domain or instance)
- node directory
- node name
select the correct directories object for the requested domain or node.
- Author:
- Byron Nevins, Tim Quinn (just refactoring, rearranging the code to here)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ServerDirsSelector getInstance(File domainDirParent,
String serverName,
String nodeDir,
String node)
throws CommandException,
IOException
- Creates a selector for choosing the correct set of directories.
- Parameters:
domainDirParent - parent of the domain directory file(s)serverName - name of the requested instance or domainnodeDir - path to the node directorynode - name of the node
- Returns:
-
- Throws:
CommandException
IOException
dirs
public ServerDirs dirs()
isInstance
public boolean isInstance()
Copyright © 2012. All Rights Reserved.