/** * Creates and returns an installinfo object * @return InstallInfo object */ static InstallInfo create() { return new InstallInfoImpl(); }
@Override public boolean isPartiallyInstalled() { return ( isAppServerExistent(DatabaseKind.STAGING) || isAppServerExistent(DatabaseKind.FINAL) || isAppServerExistent(DatabaseKind.JOB) || isDbExistent(DatabaseKind.STAGING) || isTripleIndexOn(DatabaseKind.STAGING) || isCollectionLexiconOn(DatabaseKind.STAGING) || isDbExistent(DatabaseKind.FINAL) || isTripleIndexOn(DatabaseKind.FINAL) || isCollectionLexiconOn(DatabaseKind.FINAL) || isDbExistent(DatabaseKind.JOB) || areForestsExistent(DatabaseKind.STAGING) || areForestsExistent(DatabaseKind.FINAL) || areForestsExistent(DatabaseKind.JOB) || isDbExistent(DatabaseKind.MODULES) || isDbExistent(DatabaseKind.STAGING_SCHEMAS) || isDbExistent(DatabaseKind.STAGING_TRIGGERS) ); }
@Override public boolean isInstalled() { boolean appserversOk = ( isAppServerExistent(DatabaseKind.STAGING) && isAppServerExistent(DatabaseKind.FINAL) && isAppServerExistent(DatabaseKind.JOB) ); boolean dbsOk = ( isDbExistent(DatabaseKind.STAGING) && isTripleIndexOn(DatabaseKind.STAGING) && isCollectionLexiconOn(DatabaseKind.STAGING) && isDbExistent(DatabaseKind.FINAL) && isTripleIndexOn(DatabaseKind.FINAL) && isCollectionLexiconOn(DatabaseKind.FINAL) && isDbExistent(DatabaseKind.JOB) && isDbExistent(DatabaseKind.MODULES) && isDbExistent(DatabaseKind.STAGING_SCHEMAS) && isDbExistent(DatabaseKind.STAGING_TRIGGERS) ); boolean forestsOk = ( areForestsExistent(DatabaseKind.STAGING) && areForestsExistent(DatabaseKind.FINAL) && areForestsExistent(DatabaseKind.JOB) ); return (appserversOk && dbsOk && forestsOk); }
@Override public String toString() { return "\n" + "Checking MarkLogic Installation:\n" + "\tAppServers:\n" + "\t\tStaging: " + (isAppServerExistent(DatabaseKind.STAGING) ? "exists" : "MISSING") + "\n" + "\t\tFinal: " + (isAppServerExistent(DatabaseKind.FINAL) ? "exists" : "MISSING") + "\n" + "\t\tJobs: " + (isAppServerExistent(DatabaseKind.JOB) ? "exists" : "MISSING") + "\n" + "\tDatabases:\n" + "\t\tStaging: " + (isDbExistent(DatabaseKind.STAGING) ? "exists" : "MISSING") + "\n" + "\t\tFinal: " + (isDbExistent(DatabaseKind.FINAL) ? "exists" : "MISSING") + "\n" + "\t\tJobs: " + (isDbExistent(DatabaseKind.JOB) ? "exists" : "MISSING") + "\n" + "\tDatabases Indexes:\n" + "\t\tStaging Triples Index : " + (isTripleIndexOn(DatabaseKind.STAGING) ? "exists" : "MISSING") + "\n" + "\t\tStaging Collection Lexicon : " + (isCollectionLexiconOn(DatabaseKind.STAGING) ? "exists" : "MISSING") + "\n" + "\t\tFinal Triples Index : " + (isTripleIndexOn(DatabaseKind.FINAL) ? "exists" : "MISSING") + "\n" + "\t\tFinal Collection Lexicon : " + (isCollectionLexiconOn(DatabaseKind.FINAL) ? "exists" : "MISSING") + "\n" + "\tForests\n" + "\t\tStaging: " + (areForestsExistent(DatabaseKind.STAGING) ? "exists" : "MISSING") + "\n" + "\t\tFinal: " + (areForestsExistent(DatabaseKind.FINAL) ? "exists" : "MISSING") + "\n" + "\t\tJobs: " + (areForestsExistent(DatabaseKind.JOB) ? "exists" : "MISSING") + "\n" + "\tCore Hub Databases:\n" + "\t\tModules: " + (isDbExistent(DatabaseKind.MODULES) ? "exists" : "MISSING") + "\n" + "\t\tStaging Schemas: " + (isDbExistent(DatabaseKind.STAGING_SCHEMAS) ? "exists" : "MISSING") + "\n" + "\t\tStaging Triggers: " + (isDbExistent(DatabaseKind.STAGING_TRIGGERS) ? "exists" : "MISSING") + "\n" + "\n\n" + "OVERALL RESULT: " + (isInstalled() ? "INSTALLED" : "NOT INSTALLED") + "\n"; }