public class PartitionDir extends java.lang.Object implements RuntimeDir
RuntimeDir.Current
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
appPollerDir
Stores root/autodeploy directory
|
private java.lang.String |
binDir
Stores root/bin directory
|
private java.lang.String |
camConfigDir
Stores root/config/fmwconfig/components directory
This is the root directory for the configuration
associated with CAM components
|
private java.lang.String |
camPendingDir
Stores pending/fmwconfig/components directory
This is the pending directory for the configuration
associated with CAM components
|
private java.lang.String |
configDiagnosticsDir
Stores root/config/diagnostics directory
|
private java.lang.String |
configDir
Stores root/config directory
|
private java.lang.String |
configJDBCDir
Stores root/config/jdbc directory
|
private java.lang.String |
configJMSDir
Stores root/config/jms directory
|
private java.lang.String |
configLibDir
Stores root/config/lib directory
|
private java.lang.String |
configRootDir
Stores canonical version of config root directory
|
private java.lang.String |
configSecurityDir
Stores root/config/security directory
|
private java.lang.String |
configStartupDir
Stores root/config/security directory
|
private java.lang.String |
deploymentsDir
Stores root/config/deployments directory
|
private java.lang.String |
deploymentsDirNonCanonical
Stores root/config/deployments directory directory in non-canonical form
|
private java.lang.String |
editDir
Stores root/edit directory
|
private java.lang.String |
fmwConfigDir
Stores root/config/fmwconfig directory
This is the root directory for the JMX Framework
managed configuration, as well as any JRF configuration
|
private java.lang.String |
fmwServersConfigDir
Stores root/config/fmwconfig/servers directory
This is the root directory for the JMX Framework
server specific configuration
|
private java.lang.String |
initInfoDir
Stores root/init-info directory
|
private java.lang.String |
libDir
Stores root/lib directory
|
private java.lang.String |
libModulesDir
Stores root/config/deployments/lib_modules directory
|
private java.lang.String |
oldAppPollerDir
Stores root/applications directory for 81 style and required for upgrade
|
private java.lang.String |
orchestrationWorkflowDir
Stores root/orchestration/workflow
|
private java.lang.String |
pendingDir
Stores root/pending directory
|
private java.lang.String |
rootDir
Stores canonical version of root directory
|
private java.lang.String |
rootDirNonCanonical
Stores root directory in non-canonical form.
|
private java.lang.String |
securityDir
Stores root/security directory
|
private static java.lang.String |
sep
Shortcut for file separator
|
private java.lang.String |
serversDir
Stores root/servers directory
|
private java.lang.String |
serversDirNonCanonical
Stores root/servers directory in non-canonical form
|
private java.lang.String |
tempDir
Stores root/tmp directory
|
Constructor and Description |
---|
PartitionDir(java.lang.String partitionRootDir,
java.lang.String partitionName) |
Modifier and Type | Method and Description |
---|---|
private void |
createDirectory(java.lang.String path)
Create the directory if it doesn't exist.
|
java.lang.String |
dumpDirectories() |
java.lang.String |
getAppPollerDir() |
java.lang.String |
getBinDir()
Returns the String representation of the path of the bin directory
i.e.
|
java.lang.String |
getBinDirForServer(java.lang.String serverName)
Returns the String representation of the path of the running server's bin directory
i.e.
|
java.lang.String |
getCacheDirForServer(java.lang.String serverName)
Returns the String representation of the path of the running server's cache directory
i.e.
|
java.lang.String |
getCAMConfigDir()
Returns the String representation of the path of the CAM config directory
i.e.
|
java.lang.String |
getCAMPendingDir()
Returns the String representation of the path of the CAM pending directory
i.e.
|
java.lang.String |
getConfigDir()
Returns the String representation of the path of the config directory
i.e.
|
java.lang.String |
getConfigSecurityDir()
Returns the String representation of the path of the config security directory
i.e.
|
java.lang.String |
getConfigStartupDir()
Returns the String representation of the path of the config startup directory
i.e.
|
java.lang.String |
getDataDirForServer(java.lang.String serverName)
Returns the String representation of the path of the running server's data directory
i.e.
|
java.lang.String |
getDeploymentsDir()
Returns the String representation of the path of the config deployments directory
i.e.
|
java.lang.String |
getDeploymentsDirNonCanonical()
Returns the String representation of the path of the config deployment directory
i.e.
|
java.lang.String |
getDiagnosticsDir()
Returns the String representation of the path of the config diagnostics directory
i.e.
|
java.lang.String |
getDirForServer(java.lang.String serverName)
Returns the string representation of the path of the specified server directory
|
java.lang.String |
getDirForServerNonCanonical(java.lang.String serverName)
Returns the string representation of the path of the specified server directory
|
java.lang.String |
getEditDir()
Returns the String representation of the path of the edit Directory
i.e.
|
java.lang.String |
getFMWConfigDir()
Returns the String representation of the path of the fmwconfig directory
i.e.
|
static java.lang.String |
getFmwConfigPath(java.lang.String partitionName)
Return FMW config directory path for a partition.
|
java.lang.String |
getFMWServerConfigDir(java.lang.String serverName)
Returns the String representation of the path for the JMX Framework
server scoped config directory that correspond to the server instance
whose name is passed as parameter
i.e.
|
java.lang.String |
getFMWServersConfigDir()
Returns the String representation of the path for the JMX Framework
servers scoped config directory
i.e.
|
java.lang.String |
getInitInfoDir()
Returns the String representation of the path of the init-info Directory
i.e.
|
java.lang.String |
getJDBCDir()
Returns the String representation of the path of the config jdbc directory
i.e.
|
java.lang.String |
getJMSDir()
Returns the String representation of the path of the config jms directory
i.e.
|
java.lang.String |
getLDAPDataDirForServer(java.lang.String serverName)
Returns the String representation of the path of the running server's LDAP data directory
i.e.
|
java.lang.String |
getLibDir()
Returns the String representation of the path of the lib Directory
i.e.
|
java.lang.String |
getLibModulesDir()
Returns the String representation of the path of the config deployments
library modules directory
i.e.
|
java.util.Set<java.lang.String> |
getLocalServers()
Return the name of the WLS servers for which configuration
is available locally
|
java.lang.String |
getLogsDirForServer(java.lang.String serverName)
Returns the String representation of the path of the running server's logs directory
i.e.
|
java.lang.String |
getOldAppPollerDir() |
java.lang.String |
getOrchestrationWorkflowDir()
Returns the String representation of the path of the workflow (orchestration) directory
i.e.
|
java.lang.String |
getPathRelativeBinDir(java.lang.String path)
Returns path relative to bin directory
|
java.lang.String |
getPathRelativeConfigDir(java.lang.String path)
Returns path relative to config directory
|
java.lang.String |
getPathRelativeConfigSecurityDir(java.lang.String path)
Returns path relative to config security directory
|
java.lang.String |
getPathRelativeConfigStartupDir(java.lang.String path)
Returns path relative to config startup directory
|
java.lang.String |
getPathRelativeDeploymentsDir(java.lang.String path)
Returns path relative to config deployments directory
|
java.lang.String |
getPathRelativeDiagnosticsDir(java.lang.String path)
Returns path relative to config diagnostics directory
|
java.lang.String |
getPathRelativeInitInfoDir(java.lang.String path)
Returns path relative to init-info directory.
|
java.lang.String |
getPathRelativeJDBCDir(java.lang.String path)
Returns path relative to config jdbc directory
|
java.lang.String |
getPathRelativeJMSDir(java.lang.String path)
Returns path relative to config jms directory
|
java.lang.String |
getPathRelativeLibDir(java.lang.String path)
Returns path relative to lib directory.
|
java.lang.String |
getPathRelativeLibModulesDir(java.lang.String path)
Returns path relative to config deployments library modules directory
|
java.lang.String |
getPathRelativePendingDir(java.lang.String path)
Returns path relative to pending directory.
|
java.lang.String |
getPathRelativeRootDir(java.lang.String path)
Returns path relative to RootDirectory.
|
java.lang.String |
getPathRelativeSecurityDir(java.lang.String path)
Returns path relative to security directory.
|
java.lang.String |
getPathRelativeServerDir(java.lang.String serverName,
java.lang.String path)
Returns path relative to server's directory.
|
java.lang.String |
getPathRelativeServerDirNonCanonical(java.lang.String serverName,
java.lang.String path)
Returns path relative to server's directory in non-canonical form.
|
java.lang.String |
getPathRelativeServersBinDir(java.lang.String serverName,
java.lang.String path)
Returns path relative to server's cache directory.
|
java.lang.String |
getPathRelativeServersCacheDir(java.lang.String serverName,
java.lang.String path)
Returns path relative to server's cache directory.
|
java.lang.String |
getPathRelativeServersDataDir(java.lang.String serverName,
java.lang.String path)
Returns path relative to server's data directory.
|
java.lang.String |
getPathRelativeServersDir(java.lang.String path)
Returns path relative to servers directory.
|
java.lang.String |
getPathRelativeServersLDAPDataDir(java.lang.String serverName,
java.lang.String path)
Returns path relative to server's LDAP data directory.
|
java.lang.String |
getPathRelativeServersLogsDir(java.lang.String serverName,
java.lang.String path)
Returns path relative to server's logs directory.
|
java.lang.String |
getPathRelativeServersSecurityDir(java.lang.String serverName,
java.lang.String path)
Returns path relative to server's security directory.
|
java.lang.String |
getPathRelativeServersStoreDataDir(java.lang.String serverName,
java.lang.String path)
Returns path relative to server's Store data directory.
|
java.lang.String |
getPathRelativeServersTempDir(java.lang.String serverName,
java.lang.String path)
Returns path relative to server's tmp directory.
|
java.lang.String |
getPathRelativeTempDir(java.lang.String path)
Returns path relative to domain tmp directory.
|
java.lang.String |
getPathRelativeToCAMConfigDir(java.lang.String path)
Returns path relative to the CAM config directory
|
java.lang.String |
getPathRelativeToFMWConfigDir(java.lang.String path)
Returns path relative to the fmwconfig directory
|
java.lang.String |
getPathRelativeToFMWServersConfigDir(java.lang.String path)
Returns path relative to the JMX Framework
servers scoped config directory
|
java.lang.String |
getPendingDeploymentsDir(java.lang.String appName)
Returns the directory where changes to the deployment configuration
for an application are stored in the pending directory
|
java.lang.String |
getPendingDir()
Returns the String representation of the path of the pending Directory
i.e.
|
private java.lang.String |
getRelativePath(java.lang.String path,
java.lang.String filename)
Returns concatentation of path and relative file name.
|
java.lang.String |
getRootDir()
Returns the String representation of the path of the Root Directory
(-Dweblogic.RootDirectory=
|
java.lang.String |
getRootDirNonCanonical()
Returns the String representation of the path of the Root Directory
(-Dweblogic.RootDirectory=
|
java.lang.String |
getSecurityDir()
Returns the String representation of the path of the security directory
i.e.
|
java.lang.String |
getSecurityDirForServer(java.lang.String serverName)
Returns the String representation of the path of the running server's security directory
i.e.
|
java.lang.String |
getServersDir()
Returns the String representation of the path of the servers directory
i.e.
|
java.lang.String |
getServersDirNonCanonical()
Returns the String representation of the path of the servers directory
i.e.
|
java.lang.String |
getStoreDataDirForServer(java.lang.String serverName)
Returns the String representation of the path of the running server's store data directory
i.e.
|
java.lang.String |
getTempDir()
Returns the String representation of the path of the tmp directory
i.e.
|
java.lang.String |
getTempDirForServer(java.lang.String serverName)
Returns the String representation of the path of the running server's tmp directory
i.e.
|
boolean |
isFileRelativeToCAMConfigDir(java.io.File file)
Returns true is the file instance passed as parameter is relative
to the CAM config directory
|
private boolean |
isFileRelativeToDirectory(java.io.File file,
java.io.File directory)
Returns whether a file is relative to a given directory.
|
boolean |
isFileRelativeToFMWConfigDir(java.io.File file)
Returns true is the file instance passed as parameter is relative
to the fmwconfig directory
|
boolean |
isFileRelativeToFMWServerConfigDir(java.io.File file,
java.lang.String serverName)
Returns true is the file instance passed as parameter is relative
to the JMX Framework server scoped config directory for the server instance
whose name is passed as parameter
|
boolean |
isFileRelativeToFMWServersConfigDir(java.io.File file)
Returns true is the file instance passed as parameter is relative
to the JMX Framework servers scoped config directory
|
java.lang.String |
removeRootDirectoryFromPath(java.lang.String filePath)
Remove root directory from directory file path.
|
void |
resetRootDirForExplicitUpgrade(java.lang.String path)
FIXME: mousseau@bea.com This is only here to allow the same set of
DomainDir methods to be used in both explicit and implicit upgrade.
|
private void |
setPaths(java.lang.String rootPath,
java.lang.String configRootPath) |
private void |
setPathsNonCanonical(java.lang.String rootPath) |
private static java.lang.String sep
private java.lang.String rootDir
private java.lang.String configRootDir
private java.lang.String binDir
private java.lang.String configDir
private java.lang.String fmwConfigDir
private java.lang.String fmwServersConfigDir
private java.lang.String camConfigDir
private java.lang.String camPendingDir
private java.lang.String configDiagnosticsDir
private java.lang.String configJDBCDir
private java.lang.String configJMSDir
private java.lang.String configLibDir
private java.lang.String configSecurityDir
private java.lang.String configStartupDir
private java.lang.String initInfoDir
private java.lang.String libDir
private java.lang.String editDir
private java.lang.String pendingDir
private java.lang.String securityDir
private java.lang.String serversDir
private java.lang.String tempDir
private java.lang.String deploymentsDir
private java.lang.String libModulesDir
private java.lang.String appPollerDir
private java.lang.String oldAppPollerDir
private java.lang.String orchestrationWorkflowDir
private java.lang.String rootDirNonCanonical
private java.lang.String serversDirNonCanonical
private java.lang.String deploymentsDirNonCanonical
public PartitionDir(java.lang.String partitionRootDir, java.lang.String partitionName)
public java.lang.String getRootDir()
getRootDir
in interface RuntimeDir
public java.lang.String getRootDirNonCanonical()
getRootDirNonCanonical
in interface RuntimeDir
public java.lang.String getPathRelativeRootDir(java.lang.String path)
getPathRelativeRootDir
in interface RuntimeDir
public java.lang.String getBinDir()
getBinDir
in interface RuntimeDir
public java.lang.String getPathRelativeBinDir(java.lang.String path)
getPathRelativeBinDir
in interface RuntimeDir
public java.lang.String getConfigDir()
getConfigDir
in interface RuntimeDir
public java.lang.String getPathRelativeConfigDir(java.lang.String path)
getPathRelativeConfigDir
in interface RuntimeDir
public java.lang.String getFMWConfigDir()
getFMWConfigDir
in interface RuntimeDir
public java.lang.String getPathRelativeToFMWConfigDir(java.lang.String path)
getPathRelativeToFMWConfigDir
in interface RuntimeDir
public boolean isFileRelativeToFMWConfigDir(java.io.File file)
isFileRelativeToFMWConfigDir
in interface RuntimeDir
public java.lang.String getFMWServersConfigDir()
getFMWServersConfigDir
in interface RuntimeDir
public java.lang.String getPathRelativeToFMWServersConfigDir(java.lang.String path)
getPathRelativeToFMWServersConfigDir
in interface RuntimeDir
public boolean isFileRelativeToFMWServersConfigDir(java.io.File file)
isFileRelativeToFMWServersConfigDir
in interface RuntimeDir
public java.lang.String getFMWServerConfigDir(java.lang.String serverName)
getFMWServerConfigDir
in interface RuntimeDir
public boolean isFileRelativeToFMWServerConfigDir(java.io.File file, java.lang.String serverName)
isFileRelativeToFMWServerConfigDir
in interface RuntimeDir
public java.util.Set<java.lang.String> getLocalServers()
getLocalServers
in interface RuntimeDir
public java.lang.String getCAMConfigDir()
getCAMConfigDir
in interface RuntimeDir
public java.lang.String getCAMPendingDir()
getCAMPendingDir
in interface RuntimeDir
public java.lang.String getPathRelativeToCAMConfigDir(java.lang.String path)
getPathRelativeToCAMConfigDir
in interface RuntimeDir
public boolean isFileRelativeToCAMConfigDir(java.io.File file)
isFileRelativeToCAMConfigDir
in interface RuntimeDir
public java.lang.String getDeploymentsDir()
getDeploymentsDir
in interface RuntimeDir
public java.lang.String getPathRelativeDeploymentsDir(java.lang.String path)
getPathRelativeDeploymentsDir
in interface RuntimeDir
public java.lang.String getDiagnosticsDir()
getDiagnosticsDir
in interface RuntimeDir
public java.lang.String getPathRelativeDiagnosticsDir(java.lang.String path)
getPathRelativeDiagnosticsDir
in interface RuntimeDir
public java.lang.String getJDBCDir()
getJDBCDir
in interface RuntimeDir
public java.lang.String getPathRelativeJDBCDir(java.lang.String path)
getPathRelativeJDBCDir
in interface RuntimeDir
public java.lang.String getJMSDir()
getJMSDir
in interface RuntimeDir
public java.lang.String getPathRelativeJMSDir(java.lang.String path)
getPathRelativeJMSDir
in interface RuntimeDir
public java.lang.String getConfigSecurityDir()
getConfigSecurityDir
in interface RuntimeDir
public java.lang.String getPathRelativeConfigSecurityDir(java.lang.String path)
getPathRelativeConfigSecurityDir
in interface RuntimeDir
public java.lang.String getConfigStartupDir()
getConfigStartupDir
in interface RuntimeDir
public java.lang.String getPathRelativeConfigStartupDir(java.lang.String path)
getPathRelativeConfigStartupDir
in interface RuntimeDir
public java.lang.String getLibModulesDir()
getLibModulesDir
in interface RuntimeDir
public java.lang.String getPathRelativeLibModulesDir(java.lang.String path)
getPathRelativeLibModulesDir
in interface RuntimeDir
public java.lang.String getInitInfoDir()
getInitInfoDir
in interface RuntimeDir
public java.lang.String getPathRelativeInitInfoDir(java.lang.String path)
getPathRelativeInitInfoDir
in interface RuntimeDir
public java.lang.String getLibDir()
getLibDir
in interface RuntimeDir
public java.lang.String getEditDir()
getEditDir
in interface RuntimeDir
public java.lang.String getPathRelativeLibDir(java.lang.String path)
getPathRelativeLibDir
in interface RuntimeDir
public java.lang.String getPendingDir()
getPendingDir
in interface RuntimeDir
public java.lang.String getPathRelativePendingDir(java.lang.String path)
getPathRelativePendingDir
in interface RuntimeDir
public java.lang.String getSecurityDir()
getSecurityDir
in interface RuntimeDir
public java.lang.String getPathRelativeSecurityDir(java.lang.String path)
getPathRelativeSecurityDir
in interface RuntimeDir
public java.lang.String getServersDir()
getServersDir
in interface RuntimeDir
public java.lang.String getServersDirNonCanonical()
getServersDirNonCanonical
in interface RuntimeDir
public java.lang.String getDeploymentsDirNonCanonical()
getDeploymentsDirNonCanonical
in interface RuntimeDir
public java.lang.String getPathRelativeServersDir(java.lang.String path)
getPathRelativeServersDir
in interface RuntimeDir
public java.lang.String getDirForServer(java.lang.String serverName)
getDirForServer
in interface RuntimeDir
public java.lang.String getDirForServerNonCanonical(java.lang.String serverName)
getDirForServerNonCanonical
in interface RuntimeDir
public java.lang.String getPathRelativeServerDir(java.lang.String serverName, java.lang.String path)
getPathRelativeServerDir
in interface RuntimeDir
public java.lang.String getPathRelativeServerDirNonCanonical(java.lang.String serverName, java.lang.String path)
getPathRelativeServerDirNonCanonical
in interface RuntimeDir
public java.lang.String getBinDirForServer(java.lang.String serverName)
getBinDirForServer
in interface RuntimeDir
public java.lang.String getPathRelativeServersBinDir(java.lang.String serverName, java.lang.String path)
getPathRelativeServersBinDir
in interface RuntimeDir
public java.lang.String getCacheDirForServer(java.lang.String serverName)
getCacheDirForServer
in interface RuntimeDir
public java.lang.String getPathRelativeServersCacheDir(java.lang.String serverName, java.lang.String path)
getPathRelativeServersCacheDir
in interface RuntimeDir
public java.lang.String getDataDirForServer(java.lang.String serverName)
getDataDirForServer
in interface RuntimeDir
public java.lang.String getPathRelativeServersDataDir(java.lang.String serverName, java.lang.String path)
getPathRelativeServersDataDir
in interface RuntimeDir
public java.lang.String getLDAPDataDirForServer(java.lang.String serverName)
getLDAPDataDirForServer
in interface RuntimeDir
public java.lang.String getPathRelativeServersLDAPDataDir(java.lang.String serverName, java.lang.String path)
getPathRelativeServersLDAPDataDir
in interface RuntimeDir
public java.lang.String getStoreDataDirForServer(java.lang.String serverName)
getStoreDataDirForServer
in interface RuntimeDir
public java.lang.String getPathRelativeServersStoreDataDir(java.lang.String serverName, java.lang.String path)
getPathRelativeServersStoreDataDir
in interface RuntimeDir
public java.lang.String getLogsDirForServer(java.lang.String serverName)
getLogsDirForServer
in interface RuntimeDir
public java.lang.String getPathRelativeServersLogsDir(java.lang.String serverName, java.lang.String path)
getPathRelativeServersLogsDir
in interface RuntimeDir
public java.lang.String getSecurityDirForServer(java.lang.String serverName)
getSecurityDirForServer
in interface RuntimeDir
public java.lang.String getPathRelativeServersSecurityDir(java.lang.String serverName, java.lang.String path)
getPathRelativeServersSecurityDir
in interface RuntimeDir
public java.lang.String getTempDirForServer(java.lang.String serverName)
getTempDirForServer
in interface RuntimeDir
public java.lang.String getPathRelativeServersTempDir(java.lang.String serverName, java.lang.String path)
getPathRelativeServersTempDir
in interface RuntimeDir
public java.lang.String getTempDir()
getTempDir
in interface RuntimeDir
public java.lang.String getPathRelativeTempDir(java.lang.String path)
getPathRelativeTempDir
in interface RuntimeDir
public java.lang.String getPendingDeploymentsDir(java.lang.String appName)
getPendingDeploymentsDir
in interface RuntimeDir
public void resetRootDirForExplicitUpgrade(java.lang.String path)
resetRootDirForExplicitUpgrade
in interface RuntimeDir
path
- representing the config directory that is being explicitly upgradedpublic java.lang.String removeRootDirectoryFromPath(java.lang.String filePath)
removeRootDirectoryFromPath
in interface RuntimeDir
public java.lang.String dumpDirectories()
dumpDirectories
in interface RuntimeDir
private void setPaths(java.lang.String rootPath, java.lang.String configRootPath)
private void setPathsNonCanonical(java.lang.String rootPath)
private java.lang.String getRelativePath(java.lang.String path, java.lang.String filename)
private boolean isFileRelativeToDirectory(java.io.File file, java.io.File directory)
file
- The file we are testingdirectory
- The directory we are checking the file againstprivate void createDirectory(java.lang.String path)
public java.lang.String getAppPollerDir()
getAppPollerDir
in interface RuntimeDir
public java.lang.String getOldAppPollerDir()
getOldAppPollerDir
in interface RuntimeDir
public java.lang.String getOrchestrationWorkflowDir()
RuntimeDir
getOrchestrationWorkflowDir
in interface RuntimeDir
public static java.lang.String getFmwConfigPath(java.lang.String partitionName)
partitionName
- partition name.