Methods Summary |
---|
public java.lang.String | getDomainAdminPassword()
return this.domainAdminPassword;
|
public java.lang.String | getDomainAdminUser()
return this.domainAdminUser;
|
public java.lang.String | getDomainApplicationRoot(UpgradeUtils upgrUtils)Gets the application root of the current domain
String configFileName = domainPath + File.separator + "config" +
File.separator + "domain.xml";
String applRoot = null;
Document adminServerDoc = upgrUtils.getDomainDocumentElement(configFileName);
try {
NodeList domainElements = adminServerDoc.getElementsByTagName("domain");
//There is only one domain element
Element domainElement = (Element)domainElements.item(0);
if(domainElement != null) {
String attrValue = domainElement.getAttribute("application-root");
StringTokenizer attrTokens = new StringTokenizer(attrValue, "/");
attrTokens.nextToken();
applRoot = attrTokens.nextToken();
}
}catch (Exception ex){
}
return applRoot;
|
public java.lang.String | getDomainName()Getter for property domainName.
return domainName;
|
public java.lang.String | getDomainPath()Getter for property domainPath.
return domainPath;
|
public java.util.List | getInstanceNames()Getter for property instanceNames.
if(this.instanceNames == null){
instanceNames = new ArrayList();
instancePathMapping = new Hashtable();
File domainDir = new File(this.domainPath);
String [] instanceDirs = domainDir.list();
for (int i=0 ; i<instanceDirs.length ; i++) {
instanceNames.add(instanceDirs[i]);
String instancePath= this.domainPath + File.separator + instanceDirs[i];
instancePathMapping.put(instanceDirs[i],instancePath);
}
}
return instanceNames;
|
public java.lang.String | getInstancePath(java.lang.String instanceName)
if(this.instancePathMapping == null){
this.getInstanceNames();
}
// if instance path is null or "" return the domain path itself. In case of 8.x PE
if(instanceName == null || "".equals(instanceName.trim())){
return this.domainPath;
}
return (String)this.instancePathMapping.get(instanceName);
|
public java.lang.String | getProfile()Getter for property profile.
return profile;
|
public void | setDomainAdminPassword(java.lang.String dPassword)
this.domainAdminPassword = dPassword;
|
public void | setDomainAdminUser(java.lang.String dUser)
this.domainAdminUser = dUser;
|
public void | setDomainName(java.lang.String domainName)Setter for property domainName.
this.domainName = domainName;
|
public void | setDomainPath(java.lang.String domainPath)Setter for property domainPath.
this.domainPath = domainPath;
|
public void | setProfile(java.lang.String profile)Setter for property profile.
this.profile = profile;
|