com.sun.enterprise.admin.util
Class ServerDirsSelector

java.lang.Object
  extended by com.sun.enterprise.admin.util.ServerDirsSelector

public class ServerDirsSelector
extends Object

Based on the presence or absence of values for:

select the correct directories object for the requested domain or node.

Author:
Byron Nevins, Tim Quinn (just refactoring, rearranging the code to here)

Method Summary
 ServerDirs dirs()
           
static ServerDirsSelector getInstance(File domainDirParent, String serverName, String nodeDir, String node)
          Creates a selector for choosing the correct set of directories.
 boolean isInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 domain
nodeDir - path to the node directory
node - name of the node
Returns:
Throws:
CommandException
IOException

dirs

public ServerDirs dirs()

isInstance

public boolean isInstance()


Copyright © 2012 GlassFish Community. All Rights Reserved.