Package 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
- Author:
- Byron Nevins, Tim Quinn (just refactoring, rearranging the code to here)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.sun.enterprise.util.io.ServerDirsdirs()static ServerDirsSelectorgetInstance(File domainDirParent, String serverName, String nodeDir, String node)Creates a selector for choosing the correct set of directories.booleanisInstance()
-
-
-
Method Detail
-
getInstance
public static ServerDirsSelector getInstance(File domainDirParent, String serverName, String nodeDir, String node) throws org.glassfish.api.admin.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:
org.glassfish.api.admin.CommandExceptionIOException
-
dirs
public com.sun.enterprise.util.io.ServerDirs dirs()
-
isInstance
public boolean isInstance()
-
-