Fields Summary |
---|
private static final com.sun.enterprise.util.i18n.StringManager | _strMgr |
public static final String | DEFAULT_INSTANCE_NAME |
protected final com.sun.enterprise.admin.servermgmt.RepositoryConfig | _config |
public static final String | ADDON_DIR |
public static final String | CONFIG_DIR |
public static final String | CONFIG_BACKUP_DIR |
public static final String | DOC_ROOT_DIR |
public static final String | JAVA_WEB_START_DIR |
public static final String | LIB_DIR |
public static final String | CLASSES_DIR |
public static final String | APPLIBS_DIR |
public static final String | EXTLIB_DIR |
public static final String | TIMERDB_DIR |
public static final String | LOGS_DIR |
public static final String | APPS_ROOT_DIR |
public static final String | J2EE_APPS_DIR |
public static final String | J2EE_MODULES_DIR |
public static final String | LIFECYCLE_MODULES_DIR |
public static final String | MBEAN_FOLDER_NAME |
public static final String | GENERATED_DIR |
public static final String | POLICY_DIR |
public static final String | POLICY_FILE_EXT |
public static final String | JSP_DIR |
public static final String | EJB_DIR |
public static final String | XML_DIR |
public static final String | DOMAIN_XML_FILE |
public static final String | IMQ |
public static final String | JBI_DIR |
public static final String | JBI_LIB_DIR |
public static final String | JBI_LIB_INSTALL_DIR |
public static final String | JBI_TEMPLATE_DIR |
public static final String | JBI_TEMPLATE_FILE |
public static final String | JBI_INSTANCE_DIR |
public static final String | JBI_COMPONENTS_DIR |
public static final String | JAVAEE_SE_DIR |
public static final String | HTTP_BC_DIR |
public static final String | JBI_COMPONENT_WS |
public static final String | JBI_SHAREDLIB_DIR |
public static final String | JBI_CONFIG_DIR |
public static final String | JBI_AUTOINSTALL_DIR |
public static final String | JBI_CONFIG_PRIVATE_DIR |
public static final String | JBI_REGISTRY_FILE |
public static final String | HTTP_BC_CONFIG |
public static final String | IMQ_VAR_DIR |
public static final String | BIN_DIR |
public static final String | SHARE |
public static final String | INSTALL_DIR |
public static final String | TEMPLATES_DIR |
public static final String | PROFILE_PROPERTIES |
private static final String | TEMPLATE_CONFIG_XML |
public static final String | APPLICATIONS_DIR |
public static final String | DATABASES_DIR |
public static final String | DTDS_DIR |
public static final String | DOMAIN_DTD |
public static final String | DOMAIN_XML_TEMPLATE |
public static final String | IMQBROKERD_UNIX |
public static final String | IMQBROKERD_WIN |
public static final String | IMQBROKERD |
public static final String | START_SERV_UNIX |
public static final String | START_SERV_WIN |
public static final String | START_SERV_OS |
public static final String | START_SERV_TEMPLATE_UNIX |
public static final String | START_SERV_TEMPLATE_WIN |
public static final String | START_SERV_TEMPLATE_OS |
public static final String | STOP_SERV_UNIX |
public static final String | STOP_SERV_WIN |
public static final String | STOP_SERV_OS |
public static final String | KILL_SERV_UNIX |
public static final String | KILL_SERV_WIN |
public static final String | KILL_SERV_OS |
public static final String | STOP_SERV_TEMPLATE_UNIX |
public static final String | STOP_SERV_TEMPLATE_WIN |
public static final String | STOP_SERV_TEMPLATE_OS |
public static final String | POLICY_FILE |
public static final String | STUB_FILE |
public static final String | SEED_FILE |
public static final String | ACC_XML_TEMPLATE |
public static final String | ACC_XML |
public static final String | SESSION_STORE |
public static final String | AUTO_DEPLOY |
public static final String | AUTO_DEPLOY_STATUS |
public static final String | KEY_FILE_TEMPLATE |
public static final String | KEY_FILE |
public static final String | ADMIN_KEY_FILE |
public static final String | INDEX_FILE |
private static final String | LOCALES |
private static final String | ENGLISH_INDEX_FILE |
public static final String | DEFAULT_WEB_XML |
public static final String | LOGIN_CONF |
public static final String | WSSSERVERCONFIGOLD |
public static final String | WSSSERVERCONFIG |
public static final String | KEYSTORE |
public static final String | TRUSTSTORE_TEMPLATE |
public static final String | TRUSTSTORE |
public static final String | MASTERPASSWORD_FILE |
public static final String | PASSWORD_ALIAS_KEYSTORE |
public static final String | TIMERDB_WAL_TEMPLATE |
public static final String | TIMERDB_WAL |
public static final String | TIMERDB_DBN_TEMPLATE |
public static final String | TIMERDB_DBN |
public static final String | DERBY_SQL_FILE |
public static final String | EJB_TIMER_TABLE_NAME |
public static final String | DERBY_DATABASE_DIRECTORY |
public static final String | JBI_COMPONENTS |
public static final String | HTTP_BC_ARCHIVE |
public static final String | JBI_COMPONENTS_INSTALL_ROOT |
public static final String | JAVAEE_SE_ARCHIVE |
public static final String | JBI_SHARED_LIBRARIES |
public static final String | WSDLSL_DIR |
public static final String | WSDLSL_ARCHIVE |
Methods Summary |
---|
protected void | createDirectory(java.io.File dir)
if (!dir.exists()) {
try {
if (!dir.mkdirs()) {
throw new RepositoryException(_strMgr.getString("directoryCreationError",
dir));
}
} catch (Exception e) {
throw new RepositoryException(_strMgr.getString("directoryCreationError",
dir), e);
}
}
|
public void | createJBIDirectories()
createDirectory(getJbiInstanceDir());
|
public void | createJBIDomainDirectories()
createJBIDirectories();
createDirectory(getJbiAuotoInstallDir());
createDirectory(getJbiConfigDir());
createDirectory(getJbiConfigPrivateDir());
createJbiSystemComponentsLayout();
|
public void | createJbiSystemComponentsLayout()This method is used to create the file layout for
JBI system components, HttpSoapBC, JavaEESE, WSDLSL
try{
createDirectory(getHttpBcDir());
createDirectory(getHttpBcInstallRoot());
createDirectory(getJavaEESEDir());
createDirectory(getJavaEESEInstallRoot());
createDirectory(getWSDLSLDir());
createDirectory(getWSDLSLInstallRoot());
createDirectory(getHttpBcWorkSpace());
createDirectory(getJavaEESEWorkSpace());
} catch (Exception e)
{
throw new RepositoryException(e);
}
|
public void | createRepositoryDirectories()
createDirectory(getRepositoryRootDir());
createDirectory(getRepositoryDir());
createDirectory(getConfigRoot());
createDirectory(getAddonRoot());
createDirectory(getDocRoot());
createDirectory(getJavaWebStartRoot());
createDirectory(getLibDir());
createDirectory(getBinDir());
createDirectory(getClassesDir());
createDirectory(getExtLibDir());
createDirectory(getAppLibsDir());
createDirectory(getLogsDir());
createDirectory(getGeneratedDir());
createDirectory(getJspRootDir());
createDirectory(getEjbRootDir());
createDirectory(getXmlRootDir());
createDirectory(getApplicationsRootDir());
createDirectory(getJ2EEAppsDir());
createDirectory(getJ2EEModulesDir());
createDirectory(getLifecycleModulesDir());
createDirectory(getMbeansDir());
createDirectory(getSessionStore());
createDirectory(getAutoDeployDir());
createDirectory(getAutoDeployStatusDir());
createDirectory(getTimerDatabaseDir());
|
public void | createRepositoryRoot()
createDirectory(getRepositoryRootDir());
|
public void | createWSDLSLInstallRoot()This method is used to create WSDLSL install root
createDirectory(getWSDLSLDir());
createDirectory(getWSDLSLInstallRoot());
|
public java.io.File | getAddonRoot()
return new File(getRepositoryDir(), ADDON_DIR);
|
public java.io.File | getAdminKeyFile()
return new File(getConfigRoot(), ADMIN_KEY_FILE);
|
public java.io.File | getAppClientContainerXml()
return new File(getConfigRoot(), ACC_XML);
|
public java.io.File | getAppClientContainerXmlTemplate()
return new File(getTemplatesDir(), ACC_XML_TEMPLATE);
|
public java.io.File | getAppLibsDir()
return new File(getLibDir(), APPLIBS_DIR);
|
public java.io.File | getApplicationsRootDir()
return new File(getRepositoryDir(), APPS_ROOT_DIR);
|
public java.io.File | getAutoDeployDir()
return new File(getRepositoryDir(), AUTO_DEPLOY);
|
public java.io.File | getAutoDeployStatusDir()
return new File(getAutoDeployDir(), AUTO_DEPLOY_STATUS);
|
public java.io.File | getBackupKeyFile()
return new File(getRepositoryBackupRoot(), KEY_FILE);
|
public java.io.File | getBinDir()
return new File(getRepositoryDir(), BIN_DIR);
|
java.io.File | getCanonicalFile(java.io.File f)
return FileUtils.safeGetCanonicalFile(f);
|
public java.io.File | getClassesDir()
return new File(getLibDir(), CLASSES_DIR);
|
protected com.sun.enterprise.admin.servermgmt.RepositoryConfig | getConfig()
return _config;
|
public java.io.File | getConfigRoot()
return new File(getRepositoryDir(), CONFIG_DIR);
|
public java.io.File | getDefaultWebXml()
return new File(getConfigRoot(), DEFAULT_WEB_XML);
|
public java.io.File | getDefaultWebXmlTemplate()
return new File(getTemplatesDir(), DEFAULT_WEB_XML);
|
public java.io.File | getDerbyEjbTimerDatabaseDirectory()
return new File(getTimerDatabaseDir(), DERBY_DATABASE_DIRECTORY);
//this directory must not exist before creating the derby database
|
public java.io.File | getDerbyEjbTimerSqlFile() //comes from sql file
return new File(getInstallDatabasesDir(), DERBY_SQL_FILE);
|
public java.io.File | getDocRoot()
return new File(getRepositoryDir(), DOC_ROOT_DIR);
|
public java.io.File | getDomainConfigBackupFile()
return new File(getRepositoryBackupRoot(), DOMAIN_XML_FILE);
|
public java.io.File | getDomainConfigFile()
return new File(getConfigRoot(), DOMAIN_XML_FILE);
|
public java.io.File | getDomainXmlTemplate()
return new File(getTemplatesDir(), DOMAIN_XML_TEMPLATE);
|
public java.io.File | getDomainXmlTemplate(java.lang.String templateName)
// check to see if the user has specified a template file to be used for
// domain creation. Assumed that the user specified template file
// exists in the INSTALL_ROOT/lib/install/templates if path is not absolute.
if(new File(templateName).isAbsolute())
return new File(templateName);
else
return new File(getTemplatesDir(), templateName);
|
public java.io.File | getDtdFile()
return new File(getDtdsDir(), DOMAIN_DTD);
|
public java.io.File | getDtdsDir()
final File lib = new File(getInstallRootDir(), LIB_DIR);
return new File(lib, DTDS_DIR);
|
public java.io.File | getEjbRootDir()
return new File(getGeneratedDir(), EJB_DIR);
|
public java.io.File | getEnglishIndexFile()
return new File(getDocRoot(), ENGLISH_INDEX_FILE);
|
public java.io.File | getExtLibDir()
return new File(getLibDir(), EXTLIB_DIR);
|
public java.io.File | getGeneratedDir()
return new File(getRepositoryDir(), GENERATED_DIR);
|
public java.io.File | getHttpBcArchiveDestination()
return new File(getHttpBcDir(), HTTP_BC_ARCHIVE);
|
public java.io.File | getHttpBcArchiveSource()
File bcDir = new File(getJbiComponents(), HTTP_BC_DIR);
return new File (bcDir, HTTP_BC_ARCHIVE);
|
public java.io.File | getHttpBcConfigFile()
return new File(getHttpBcWorkSpace(), HTTP_BC_CONFIG);
|
public java.io.File | getHttpBcConfigTemplate()
return new File(getJbiTemplateDir(), HTTP_BC_CONFIG);
|
public java.io.File | getHttpBcDir()
return new File(getJbiComponentsDir(), HTTP_BC_DIR);
|
public java.io.File | getHttpBcInstallRoot()
return new File(getHttpBcDir(), JBI_COMPONENTS_INSTALL_ROOT);
|
public java.io.File | getHttpBcWorkSpace()
return new File(getHttpBcDir(), JBI_COMPONENT_WS);
|
public java.io.File | getImqBinDir()
return new File(getImqDir(), BIN_DIR);
|
public java.io.File | getImqBrokerExecutable()
return new File(getImqBinDir(), IMQBROKERD);
|
public java.io.File | getImqDir()
return new File(getInstallRootDir(), IMQ);
|
public java.io.File | getImqLibDir()
return new File(getImqDir(), LIB_DIR);
|
public java.io.File | getImqVarHome()
return new File(getRepositoryDir(), IMQ_VAR_DIR);
|
public java.io.File | getIndexFile()
return new File(getDocRoot(), INDEX_FILE);
|
public java.io.File | getIndexFileTemplate()
return new File(getTemplatesDir(), INDEX_FILE);
|
public java.io.File | getInstallApplicationsDir()
final File lib = new File(getInstallRootDir(), LIB_DIR);
final File install = new File(lib, INSTALL_DIR);
return new File(install, APPLICATIONS_DIR);
|
public java.io.File | getInstallConfigRoot()
return new File(getInstallRootDir(), CONFIG_DIR);
|
public java.io.File | getInstallDatabasesDir()
final File lib = new File(getInstallRootDir(), LIB_DIR);
final File install = new File(lib, INSTALL_DIR);
return new File(install, DATABASES_DIR);
|
public java.io.File | getInstallRootDir()
return getCanonicalFile(new File(getConfig().getInstallRoot()));
|
public java.io.File | getJ2EEAppsDir()
return new File(getApplicationsRootDir(), J2EE_APPS_DIR);
|
public java.io.File | getJ2EEModulesDir()
return new File(getApplicationsRootDir(), J2EE_MODULES_DIR);
|
public java.io.File | getJavaEESEArchiveDestination()
return new File(getJavaEESEDir(), JAVAEE_SE_ARCHIVE);
|
public java.io.File | getJavaEESEArchiveSource()
File seDir = new File(getJbiComponents(), JAVAEE_SE_DIR);
return new File (seDir, JAVAEE_SE_ARCHIVE);
|
public java.io.File | getJavaEESEDir()
return new File(getJbiComponentsDir(), JAVAEE_SE_DIR);
|
public java.io.File | getJavaEESEInstallRoot()
return new File(getJavaEESEDir(), JBI_COMPONENTS_INSTALL_ROOT);
|
public java.io.File | getJavaEESEWorkSpace()
return new File(getJavaEESEDir(), JBI_COMPONENT_WS);
|
public java.io.File | getJavaWebStartRoot()
return new File(getRepositoryDir(), JAVA_WEB_START_DIR);
|
public java.io.File | getJbiAuotoInstallDir()
return new File(getJbiInstanceDir(), JBI_AUTOINSTALL_DIR);
|
public java.io.File | getJbiComponents()
return new File(getJbiDir(), JBI_COMPONENTS);
|
public java.io.File | getJbiComponentsDir()
return new File(getJbiInstanceDir(), JBI_COMPONENTS_DIR);
|
public java.io.File | getJbiConfigDir()
return new File(getJbiInstanceDir(), JBI_CONFIG_DIR);
|
public java.io.File | getJbiConfigPrivateDir()
return new File(getJbiConfigDir(), JBI_CONFIG_PRIVATE_DIR);
|
public java.io.File | getJbiDir()
return new File(getInstallRootDir(), JBI_DIR);
|
public java.io.File | getJbiInstanceDir()
return new File(getRepositoryDir(), JBI_INSTANCE_DIR);
|
public java.io.File | getJbiLibDir()
return new File(getJbiDir(), JBI_LIB_DIR);
|
public java.io.File | getJbiLibInstallDir()
return new File(getJbiLibDir(), JBI_LIB_INSTALL_DIR);
|
public java.io.File | getJbiRegistryFile()
return new File(getJbiConfigDir(), JBI_REGISTRY_FILE);
|
public java.io.File | getJbiSharedLibDir()
return new File(getJbiInstanceDir(), JBI_SHAREDLIB_DIR);
|
public java.io.File | getJbiSharedLibraries()
return new File(getJbiDir(), JBI_SHARED_LIBRARIES);
|
public java.io.File | getJbiTemplateDir()
return new File(getJbiLibInstallDir(), JBI_TEMPLATE_DIR);
|
public java.io.File | getJbiTemplateFile()
return new File(getJbiTemplateDir(), JBI_TEMPLATE_FILE);
|
public java.io.File | getJspRootDir()
return new File(getGeneratedDir(), JSP_DIR);
|
public java.io.File | getKeyFile()
return new File(getConfigRoot(), KEY_FILE);
|
public java.io.File | getKeyFileTemplate()
return new File(getTemplatesDir(), KEY_FILE_TEMPLATE);
|
public java.io.File | getKeyStore()
return new File(getConfigRoot(), KEYSTORE);
|
public java.io.File | getKillServ()
return new File(getBinDir(), KILL_SERV_OS);
|
public java.io.File | getKillServTemplate()
return new File(getTemplatesDir(), KILL_SERV_OS);
|
public java.io.File | getLibDir()
return new File(getRepositoryDir(), LIB_DIR);
|
public java.io.File | getLifecycleModulesDir()
return new File(getApplicationsRootDir(), LIFECYCLE_MODULES_DIR);
|
public java.io.File | getLoginConf()
return new File(getConfigRoot(), LOGIN_CONF);
|
public java.io.File | getLoginConfTemplate()
return new File(getTemplatesDir(), LOGIN_CONF);
|
public java.io.File | getLogsDir()
return new File(getRepositoryDir(), LOGS_DIR);
|
public java.io.File | getMasterPasswordFile()
return new File(getRepositoryDir(), MASTERPASSWORD_FILE);
|
public java.io.File | getMbeansDir()
return new File(getApplicationsRootDir(), MBEAN_FOLDER_NAME);
|
public java.io.File | getNonEnglishIndexFileTemplate(java.util.Locale locale)
File locales = new File (getTemplatesDir(), LOCALES);
File givenLocale = new File (locales, locale.toString());
return new File (givenLocale, INDEX_FILE);
|
public java.io.File | getPasswordAliasKeystore()
return new File(getConfigRoot(), PASSWORD_ALIAS_KEYSTORE);
|
public java.io.File | getPolicyDir()
return new File(getGeneratedDir(), POLICY_DIR);
|
public java.io.File | getPolicyFile()
return new File(getConfigRoot(), POLICY_FILE);
|
public java.io.File | getPolicyFileTemplate()
return new File(getTemplatesDir(), POLICY_FILE);
|
public java.io.File | getPreExistingDomainXmlTemplateForProfile(java.lang.String profileName)
return ( new File (getProfileFolder(profileName), DOMAIN_XML_FILE) );
|
public java.io.File | getProfileFolder(java.lang.String profileName)
assert profileName != null : "Name of the profile can't be null";
final File pf = new File(getTemplatesDir(), profileName);
return pf;
|
public java.io.File | getProfilePropertiesFile(java.lang.String profileName)
return ( new File (getProfileFolder(profileName), PROFILE_PROPERTIES) );
|
public java.io.File | getRepositoryBackupRoot()
return new File(getConfigRoot(), CONFIG_BACKUP_DIR);
|
public java.io.File | getRepositoryDir()
return new File(getRepositoryRootDir(), getConfig().getRepositoryName());
|
public java.io.File | getRepositoryRootDir()
return getCanonicalFile(new File(getConfig().getRepositoryRoot()));
|
public java.io.File | getSeedFile()
return new File(getConfigRoot(), SEED_FILE);
|
public java.io.File | getSessionStore()
return new File(getRepositoryDir(), SESSION_STORE);
|
public java.io.File | getShareDir()
return new File(getInstallRootDir(), SHARE);
|
public java.io.File | getStartServ()
return new File(getBinDir(), START_SERV_OS);
|
public java.io.File | getStartServTemplate()
return new File(getTemplatesDir(), START_SERV_TEMPLATE_OS);
|
public java.io.File | getStopServ()
return new File(getBinDir(), STOP_SERV_OS);
|
public java.io.File | getStopServTemplate()
return new File(getTemplatesDir(), STOP_SERV_TEMPLATE_OS);
|
public java.io.File | getStubFile()
return new File(getConfigRoot(), STUB_FILE);
|
public java.io.File | getTemplateConfigXml()
return ( new File(getTemplatesDir(), TEMPLATE_CONFIG_XML) );
|
public java.io.File | getTemplatesDir()
final File lib = new File(getInstallRootDir(), LIB_DIR);
final File install = new File(lib, INSTALL_DIR);
final File templates = new File(install, TEMPLATES_DIR);
return templates;
|
public java.io.File | getTimerDatabaseDir()
return new File(getLibDir(), TIMERDB_DIR);
|
public java.io.File | getTimerDbn()
return new File(getTimerDatabaseDir(), TIMERDB_DBN);
|
public java.io.File | getTimerDbnTemplate()
return new File(getInstallDatabasesDir(), TIMERDB_DBN_TEMPLATE);
|
public java.io.File | getTimerWal()
return new File(getTimerDatabaseDir(), TIMERDB_WAL);
|
public java.io.File | getTimerWalTemplate()
return new File(getInstallDatabasesDir(), TIMERDB_WAL_TEMPLATE);
|
public java.io.File | getTrustStore()
return new File(getConfigRoot(), TRUSTSTORE);
|
public java.io.File | getTrustStoreTemplate()
return new File(getTemplatesDir(), TRUSTSTORE_TEMPLATE);
|
public java.io.File | getWSDLSLArchiveDestination()
return new File(getWSDLSLDir(), WSDLSL_ARCHIVE);
|
public java.io.File | getWSDLSLArchiveSource()
File slDir = new File(getJbiSharedLibraries(), WSDLSL_DIR);
return new File (slDir, WSDLSL_ARCHIVE);
|
public java.io.File | getWSDLSLDir()
return new File(getJbiSharedLibDir(), WSDLSL_DIR);
|
public java.io.File | getWSDLSLInstallRoot()
return new File(getWSDLSLDir(), JBI_COMPONENTS_INSTALL_ROOT);
|
public java.io.File | getWebServicesLibDir()
return new File(getShareDir(), LIB_DIR);
|
public java.io.File | getWssServerConfig()
return new File(getConfigRoot(), WSSSERVERCONFIG);
|
public java.io.File | getWssServerConfigOld()
return new File(getConfigRoot(), WSSSERVERCONFIGOLD);
|
public java.io.File | getWssServerConfigOldTemplate()
return new File(getTemplatesDir(), WSSSERVERCONFIGOLD);
|
public java.io.File | getWssServerConfigTemplate()
return new File(getTemplatesDir(), WSSSERVERCONFIG);
|
public java.io.File | getXmlRootDir()
return new File(getGeneratedDir(), XML_DIR);
|
protected static boolean | isWindows()
return OS.isWindows();
|