Package org.oa4mp.installer
Class AbstractInstaller
- java.lang.Object
-
- edu.uiuc.ncsa.security.installer.WebInstaller
-
- org.oa4mp.installer.AbstractInstaller
-
- Direct Known Subclasses:
OA4MPClientInstaller,OA4MPServerInstaller
public abstract class AbstractInstaller extends edu.uiuc.ncsa.security.installer.WebInstallerThis centralizes the common code for the server and client installers. In particular, it allows for getting tiles as resources and inserting them into a configuration.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringSTORE_FLAGprotected static StringSTORE_TYPE_DERBYprotected static StringSTORE_TYPE_DERBY_FILEprotected static StringSTORE_TYPE_FILE_STOREprotected static StringSTORE_TYPE_MARIA_DBprotected static StringSTORE_TYPE_MYSQLprotected static StringSTORE_TYPE_POSTGRES-
Fields inherited from class edu.uiuc.ncsa.security.installer.WebInstaller
ALL_FLAG, DEBUG_FLAG, DIR_ARG, EXECUTABLE_DEFAULT, HELP_FLAG, HELP_OPTION, INSTALL_OPTION, LIST_OPTION, LOG_ARG, NO_PACER_FLAG, NOTES_OPTION, OA4MP_FLAG, operationKey, PREPROCESS_FLAG, REMOVE_OPTION, UPDATE_OPTION, UPDATEABLE_DEFAULT, UPGRADE_OPTION, USE_TEMPLATES_DEFAULT, VERSION_FLAG, VERSION_LATEST, VERSIONS_OPTION
-
-
Constructor Summary
Constructors Constructor Description AbstractInstaller()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddoInstallOrUpdate(boolean isUpdate)protected abstract StringgetDerbySetupScriptPath()protected StringgetSetup()protected StringgetStoreFilename(String flag)StringgetStoreTileDirectory()The name of the resource directory with all of the tiles (snippets that will be substituted) for the release.protected voidprintMoreArgHelp()protected voidsetupArgMap(String[] args)protected voidsetupDerbyFS()protected Map<String,String>setupTemplates()-
Methods inherited from class edu.uiuc.ncsa.security.installer.WebInstaller
applyExecutable, applySkipUpdate, applyTemplate, copyStream, createID, createSecret, doList, doRemove, doReplace, download, getAppName, getArgMap, getID, getInstallConfiguration, getLastestConfigFileName, getLogger, getMessage, getMessage, getPacer, getRoot, getSecret, getSetupIS, getTemplates, getVersionFileName, ingestYaml, init, isDebugOn, isExec, isNotUpdateable, isUseTemplate, listVersions, main, nukeDir, printMoreExamplesHelp, process, processFileEntry, processZipArchive, processZipFile, readConfig, say, setDebugOn, setRoot, setTemplates, showHelp, showReleaseNotes, shutdown, trace
-
-
-
-
Field Detail
-
STORE_FLAG
protected static final String STORE_FLAG
- See Also:
- Constant Field Values
-
STORE_TYPE_DERBY_FILE
protected static final String STORE_TYPE_DERBY_FILE
- See Also:
- Constant Field Values
-
STORE_TYPE_DERBY
protected static final String STORE_TYPE_DERBY
- See Also:
- Constant Field Values
-
STORE_TYPE_FILE_STORE
protected static final String STORE_TYPE_FILE_STORE
- See Also:
- Constant Field Values
-
STORE_TYPE_MYSQL
protected static final String STORE_TYPE_MYSQL
- See Also:
- Constant Field Values
-
STORE_TYPE_MARIA_DB
protected static final String STORE_TYPE_MARIA_DB
- See Also:
- Constant Field Values
-
STORE_TYPE_POSTGRES
protected static final String STORE_TYPE_POSTGRES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStoreTileDirectory
public String getStoreTileDirectory()
The name of the resource directory with all of the tiles (snippets that will be substituted) for the release. Typically it is called /tiles/.- Returns:
-
getSetup
protected String getSetup()
- Overrides:
getSetupin classedu.uiuc.ncsa.security.installer.WebInstaller
-
getDerbySetupScriptPath
protected abstract String getDerbySetupScriptPath()
-
setupTemplates
protected Map<String,String> setupTemplates() throws IOException
- Overrides:
setupTemplatesin classedu.uiuc.ncsa.security.installer.WebInstaller- Throws:
IOException
-
setupArgMap
protected void setupArgMap(String[] args)
- Overrides:
setupArgMapin classedu.uiuc.ncsa.security.installer.WebInstaller
-
printMoreArgHelp
protected void printMoreArgHelp() throws IOException- Overrides:
printMoreArgHelpin classedu.uiuc.ncsa.security.installer.WebInstaller- Throws:
IOException
-
-