public final class InstanceDirs extends Object
Constructor and Description |
---|
InstanceDirs(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(String nodeDirParentPath,
String nodeDirName,
String instanceName)
This constructor handles 0, 1, 2 or 3 null args.
|
Modifier and Type | Method and Description |
---|---|
File |
getDasPropertiesFile() |
protected String |
getInstallRootPath()
Gets the GlassFish installation root (using property com.sun.aas.installRoot),
|
File |
getInstanceDir() |
String |
getInstanceName() |
File |
getNodeAgentDir() |
File |
getNodeAgentsDir() |
ServerDirs |
getServerDirs() |
public InstanceDirs(File theInstanceDir) throws IOException
instanceDir
- The instance's directoryIOException
- If any error including not having a grandparent directory.public InstanceDirs(String nodeDirParentPath, String nodeDirName, String instanceName) throws IOException
nodeDirParent
- E.g. install-dir/nodesnodeDir
- E.g. install-dir/nodes/localhostinstanceName
- E.g. i1IOException
public InstanceDirs(ServerDirs sd)
aServerDir
- protected String getInstallRootPath() throws IOException
CommandException
- if the GlassFish install root is not foundIOException
public final String getInstanceName()
public final File getInstanceDir()
public final File getNodeAgentDir()
public final File getNodeAgentsDir()
public final ServerDirs getServerDirs()
public final File getDasPropertiesFile()
Copyright © 2021. All rights reserved.