|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.util.io.InstanceDirs
public final class InstanceDirs
A class for keeping track of the directories that an instance lives in and under. All the methods throw checked exception to avoid the inevitable NPE otherwise - when working with invalid directories... Example: new InstanceDirs(new File("/glassfish3/glassfish/nodes/mymachine/instance1")); getInstanceDir() == /glassfish3/glassfish/nodes/mymachine/instance1 getNodeAgentDir() == /glassfish3/glassfish/nodes/mymachine getNodeAgentsDir() == /glassfish3/glassfish/nodes getInstanceName() == instance1
| Constructor Summary | |
|---|---|
InstanceDirs(java.io.File theInstanceDir)
This constructor is used when the instance dir is known |
|
InstanceDirs(ServerDirs sd)
Create a InstanceDir from the more general ServerDirs instance. |
|
InstanceDirs(java.lang.String nodeDirParentPath,
java.lang.String nodeDirName,
java.lang.String instanceName)
This constructor handles 0, 1, 2 or 3 null args. |
|
| Method Summary | |
|---|---|
java.io.File |
getDasPropertiesFile()
|
protected java.lang.String |
getInstallRootPath()
Gets the GlassFish installation root (using property com.sun.aas.installRoot), |
java.io.File |
getInstanceDir()
|
java.lang.String |
getInstanceName()
|
java.io.File |
getNodeAgentDir()
|
java.io.File |
getNodeAgentsDir()
|
ServerDirs |
getServerDirs()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstanceDirs(java.io.File theInstanceDir)
throws java.io.IOException
instanceDir - The instance's directory
java.io.IOException - If any error including not having a grandparent directory.
public InstanceDirs(java.lang.String nodeDirParentPath,
java.lang.String nodeDirName,
java.lang.String instanceName)
throws java.io.IOException
nodeDirParent - E.g. install-dir/nodesnodeDir - E.g. install-dir/nodes/localhostinstanceName - E.g. i1
java.io.IOExceptionpublic InstanceDirs(ServerDirs sd)
aServerDir - | Method Detail |
|---|
protected java.lang.String getInstallRootPath()
throws java.io.IOException
CommandException - if the GlassFish install root is not found
java.io.IOExceptionpublic final java.lang.String getInstanceName()
public final java.io.File getInstanceDir()
public final java.io.File getNodeAgentDir()
public final java.io.File getNodeAgentsDir()
public final ServerDirs getServerDirs()
public final java.io.File getDasPropertiesFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||