|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.miningmart.installer.MmInstallerTools
public class MmInstallerTools
| Field Summary | |
|---|---|
static boolean |
debugInstallation
|
| Constructor Summary | |
|---|---|
MmInstallerTools(DB myM4Db)
The constructor gets the DB connection object needed to access the M4 database schema. |
|
| Method Summary | |
|---|---|
boolean |
checkM4Extension()
This method checks if ROLES are present in the M4 schema. |
static java.lang.String |
createHomePropertiesFile(java.lang.String homeDirectory)
Creates the file MiningMartHome.properties and sets the system property "MM_HOME" into the file. |
void |
createM4Tables(java.lang.String fileNameAndPath)
This method assumes that no M4 tables exist in the database. |
static boolean |
doInstallation(java.lang.String possibleHomeDirectory)
|
static void |
endDebugMessaging()
|
void |
ensureM4Extension(java.lang.String fileNameWithExtensions)
This method ensures that ROLES are present in the M4 schema. |
static void |
ensureOperatorsAreInserted()
|
static boolean |
installationIsValid()
|
void |
installM4Sequence()
|
static java.util.HashMap |
makeDbConfigFile(java.lang.String nameForDbConfigFile,
java.lang.String homePropertiesFileName,
java.util.HashMap initialValues)
A method to create a syntactically valid db.config file from information given by the user. |
static boolean |
makeNewDbConnection(boolean dbConfigOk,
java.util.HashMap connectionValues,
java.lang.String dbFileName,
java.lang.String propertiesFile)
|
static void |
prepareExtraDebugMessageLogFile(java.lang.String path)
|
static void |
printDebugMessage(java.lang.String what)
|
static void |
readSystemPropsFromHomeProperties(java.lang.String propFilename)
|
void |
removeM4Sequence()
|
void |
removeM4Tables()
This method ensures that all M4 tables are removed. |
static java.util.HashMap |
storeValuesFromFileInMap(ConfigReader theReader)
|
void |
writeOperatorsIntoSchema(java.lang.String fileAndPathWithOperatorInfo)
This method assumes that the M4 tables exist in the database, and updates the information about the operators (in the static part of M4) according to the SQL commands in the file whose name and path are given. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean debugInstallation
| Constructor Detail |
|---|
public MmInstallerTools(DB myM4Db)
throws M4Exception
M4Exception| Method Detail |
|---|
public static boolean installationIsValid()
public static boolean doInstallation(java.lang.String possibleHomeDirectory)
public static boolean makeNewDbConnection(boolean dbConfigOk,
java.util.HashMap connectionValues,
java.lang.String dbFileName,
java.lang.String propertiesFile)
public static java.util.HashMap storeValuesFromFileInMap(ConfigReader theReader)
public static void prepareExtraDebugMessageLogFile(java.lang.String path)
public static void printDebugMessage(java.lang.String what)
public static void endDebugMessaging()
public static java.lang.String createHomePropertiesFile(java.lang.String homeDirectory)
homeDirectory - complete path of the MiningMart home directory
public static void readSystemPropsFromHomeProperties(java.lang.String propFilename)
public static java.util.HashMap makeDbConfigFile(java.lang.String nameForDbConfigFile,
java.lang.String homePropertiesFileName,
java.util.HashMap initialValues)
nameForDbConfigFile - name and path of file to be writtenhomePropertiesFileName - name and path of file with global propertiesinitialValues - DB connection values to display initially in the window
for the user. Can be null.
public void removeM4Tables()
throws M4Exception
M4Exception
public void writeOperatorsIntoSchema(java.lang.String fileAndPathWithOperatorInfo)
throws M4Exception
fileAndPathWithOperatorInfo - name and path of a file with
SQL commands
M4Exceptionpublic static void ensureOperatorsAreInserted()
public void createM4Tables(java.lang.String fileNameAndPath)
throws M4Exception
fileNameAndPath - name and path of a file with
SQL commands
M4Exception
public void ensureM4Extension(java.lang.String fileNameWithExtensions)
throws M4Exception
M4Exception
public boolean checkM4Extension()
throws M4Exception
M4Exception
public void removeM4Sequence()
throws M4Exception
M4Exception
public void installM4Sequence()
throws M4Exception
M4Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||