Methods Summary |
---|
protected void | determineInstances()
addInstance(TargetType.DAS.getType());
|
protected void | determineRepositoryDetails()
repositoryName = target;
|
protected void | determineTargetDir()
//do nothing
|
protected void | determineTargetType()
if(type == null)
setTargetType(TargetType.DAS);
|
private boolean | isAInstance(java.lang.String repositoryDir, java.lang.String target)
if(repositoryDir != null && target != null){
String absoluteDir = repositoryDir + File.separator + target;
File applicationsDirObj = new File(absoluteDir +
Constants.APPLICATIONS_DIR);
File generatedDirObj = new File(absoluteDir +
Constants.GENERATED_DIR);
File configDirObj = new File(absoluteDir +
Constants.CONFIG_DIR);
if(applicationsDirObj.exists() &&
generatedDirObj.exists() &&
configDirObj.exists())
return true;
return false;
}//if
return false;
|
protected void | setExecutionContext()
context = ExecutionContext.LOCAL_EC;
|
public boolean | validateTarget()Combination of targetDir and target in local mode is expected
to be appserver's nodeagent's or server instance's directory structure
if(repositoryDir != null && target != null){
logger.log(Level.FINEST, "validate_local_target" , new String[]{target, repositoryDir});
return isAInstance(repositoryDir,target);
} // if
throw new DiagnosticException("Targetdir and targetname are null");
|