|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.miningmart.installer.MmInstallerTools
Constructor Summary | |
MmInstallerTools(DB myM4Db)
The constructor gets the DB connection object needed to access the M4 database schema. |
Method Summary | |
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 |
ensureOperatorsAreInserted()
|
static boolean |
installationIsValid()
|
void |
installM4Sequence()
|
static boolean |
makeDbConfigFile(java.lang.String nameForDbConfigFile,
java.lang.String homePropertiesFileName)
A method to create a syntactically valid db.config file from information given by the user. |
static void |
readSystemPropsFromHomeProperties(java.lang.String propFilename)
|
void |
removeM4Sequence()
|
void |
removeM4Tables()
This method ensures that all M4 tables are removed. |
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 |
Constructor Detail |
public MmInstallerTools(DB myM4Db) throws M4Exception
Method Detail |
public static boolean installationIsValid()
public static boolean doInstallation(java.lang.String possibleHomeDirectory)
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 boolean makeDbConfigFile(java.lang.String nameForDbConfigFile, java.lang.String homePropertiesFileName)
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
M4Exception
public 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 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 |