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.WebInstaller
This 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 String
STORE_FLAG
protected static String
STORE_TYPE_DERBY
protected static String
STORE_TYPE_DERBY_FILE
protected static String
STORE_TYPE_FILE_STORE
protected static String
STORE_TYPE_MARIA_DB
protected static String
STORE_TYPE_MYSQL
protected static String
STORE_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, 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 void
doInstallOrUpdate(boolean isUpdate)
protected abstract String
getDerbySetupScriptPath()
protected String
getSetup()
protected String
getStoreFilename(String flag)
String
getStoreTileDirectory()
The name of the resource directory with all of the tiles (snippets that will be substituted) for the release.protected void
printMoreArgHelp()
protected void
setupArgMap(String[] args)
protected void
setupDerbyFS()
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:
getSetup
in classedu.uiuc.ncsa.security.installer.WebInstaller
-
getDerbySetupScriptPath
protected abstract String getDerbySetupScriptPath()
-
setupTemplates
protected Map<String,String> setupTemplates() throws IOException
- Overrides:
setupTemplates
in classedu.uiuc.ncsa.security.installer.WebInstaller
- Throws:
IOException
-
setupArgMap
protected void setupArgMap(String[] args)
- Overrides:
setupArgMap
in classedu.uiuc.ncsa.security.installer.WebInstaller
-
printMoreArgHelp
protected void printMoreArgHelp() throws IOException
- Overrides:
printMoreArgHelp
in classedu.uiuc.ncsa.security.installer.WebInstaller
- Throws:
IOException
-
-