org.opennms.install
Class Installer

java.lang.Object
  extended by org.opennms.install.Installer

public class Installer
extends java.lang.Object


Constructor Summary
Installer()
           
 
Method Summary
 java.lang.String checkServerVersion()
           
 void checkServerXmlOldOpennmsContext()
           
 void checkWebappOldOpennmsDir()
           
 void createConfiguredFile()
           
 java.lang.String fetchProperty(java.lang.String property)
           
 java.lang.String findLibrary(java.lang.String libname, java.lang.String path, boolean isRequired)
           
 org.opennms.netmgt.dao.db.InstallerDb getInstallerDb()
           
 java.lang.String getNextArg(java.lang.String[] argv, int i, char letter)
           
 java.lang.String getTomcatVersion(java.io.File file)
           
 void install(java.lang.String[] argv)
           
 void installLink(java.lang.String source, java.lang.String destination, java.lang.String description, boolean recursive)
           
 void installWebApp()
           
 boolean loadLibrary(java.lang.String path)
           
 void loadProperties()
           
static void main(java.lang.String[] argv)
           
 void parseArguments(java.lang.String[] argv)
           
 void pingLocalhost()
           
 void printDiagnostics()
           
 void printHeader()
           
 void printHelp()
           
 void removeFile(java.lang.String destination, java.lang.String description, boolean recursive)
           
 void setOutputStream(java.io.PrintStream out)
           
 void updateTomcatConf()
           
 void verifyFileExists(boolean isDir, java.lang.String file, java.lang.String description, java.lang.String option)
           
 void verifyFilesAndDirectories()
           
 void writeLibraryConfig(java.lang.String jicmp_path, java.lang.String jrrd_path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Installer

public Installer()
Method Detail

install

public void install(java.lang.String[] argv)
             throws java.lang.Exception
Throws:
java.lang.Exception

createConfiguredFile

public void createConfiguredFile()
                          throws java.io.IOException
Throws:
java.io.IOException

printHeader

public void printHeader()

loadProperties

public void loadProperties()
                    throws java.lang.Exception
Throws:
java.lang.Exception

fetchProperty

public java.lang.String fetchProperty(java.lang.String property)
                               throws java.lang.Exception
Throws:
java.lang.Exception

parseArguments

public void parseArguments(java.lang.String[] argv)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getNextArg

public java.lang.String getNextArg(java.lang.String[] argv,
                                   int i,
                                   char letter)
                            throws java.lang.Exception
Throws:
java.lang.Exception

printDiagnostics

public void printDiagnostics()

verifyFilesAndDirectories

public void verifyFilesAndDirectories()
                               throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

verifyFileExists

public void verifyFileExists(boolean isDir,
                             java.lang.String file,
                             java.lang.String description,
                             java.lang.String option)
                      throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

checkWebappOldOpennmsDir

public void checkWebappOldOpennmsDir()
                              throws java.lang.Exception
Throws:
java.lang.Exception

checkServerXmlOldOpennmsContext

public void checkServerXmlOldOpennmsContext()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

installWebApp

public void installWebApp()
                   throws java.lang.Exception
Throws:
java.lang.Exception

installLink

public void installLink(java.lang.String source,
                        java.lang.String destination,
                        java.lang.String description,
                        boolean recursive)
                 throws java.lang.Exception
Throws:
java.lang.Exception

updateTomcatConf

public void updateTomcatConf()
                      throws java.lang.Exception
Throws:
java.lang.Exception

removeFile

public void removeFile(java.lang.String destination,
                       java.lang.String description,
                       boolean recursive)
                throws java.io.IOException,
                       java.lang.InterruptedException,
                       java.lang.Exception
Throws:
java.io.IOException
java.lang.InterruptedException
java.lang.Exception

printHelp

public void printHelp()

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Throws:
java.lang.Exception

checkServerVersion

public java.lang.String checkServerVersion()
                                    throws java.io.IOException
Throws:
java.io.IOException

getTomcatVersion

public java.lang.String getTomcatVersion(java.io.File file)
                                  throws java.io.IOException
Throws:
java.io.IOException

findLibrary

public java.lang.String findLibrary(java.lang.String libname,
                                    java.lang.String path,
                                    boolean isRequired)
                             throws java.lang.Exception
Throws:
java.lang.Exception

loadLibrary

public boolean loadLibrary(java.lang.String path)

writeLibraryConfig

public void writeLibraryConfig(java.lang.String jicmp_path,
                               java.lang.String jrrd_path)
                        throws java.io.IOException
Throws:
java.io.IOException

pingLocalhost

public void pingLocalhost()
                   throws java.io.IOException
Throws:
java.io.IOException

getInstallerDb

public org.opennms.netmgt.dao.db.InstallerDb getInstallerDb()

setOutputStream

public void setOutputStream(java.io.PrintStream out)


Copyright © 2007. All Rights Reserved.