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)
  • Method Details

    • 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 domain
      nodeDir - path to the node directory
      node - name of the node
      Returns:
      Throws:
      org.glassfish.api.admin.CommandException
      IOException
    • dirs

      public com.sun.enterprise.util.io.ServerDirs dirs()
    • isInstance

      public boolean isInstance()