Class Start


  • public class Start
    extends java.lang.Object
    • Field Detail

      • HSQL_FILE_URL

        protected java.lang.String HSQL_FILE_URL
      • RUN_ARMS

        public static boolean RUN_ARMS
    • Constructor Detail

      • Start

        public Start​(Args args)
              throws java.lang.Exception
        Creates a new Start instance set to use the XML config file in confFilename
        Throws:
        java.lang.Exception
      • Start

        public Start​(Args args,
                     Start.InputSourceCreator sourceMaker,
                     java.util.Properties props,
                     boolean commandLineToolRun)
              throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • informUserOfBadNetworkAndExit

        public static void informUserOfBadNetworkAndExit​(java.lang.String networkCode,
                                                         edu.iris.Fissures.IfNetwork.NetworkNotFound nnf)
      • informUserOfBadQueryAndExit

        public static void informUserOfBadQueryAndExit​(java.lang.String message,
                                                       java.lang.Exception e)
      • getStartTime

        public static edu.iris.Fissures.model.MicroSecondDate getStartTime()
      • getElapsedTime

        public static edu.iris.Fissures.model.TimeInterval getElapsedTime()
      • getConfigFileName

        public static java.lang.String getConfigFileName()
      • warnIfDatabaseExists

        protected void warnIfDatabaseExists()
      • loadProps

        public static void loadProps​(java.io.InputStream propStream,
                                     java.util.Properties baseProps)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • createInputSource

        public static org.xml.sax.InputSource createInputSource​(java.lang.ClassLoader cl,
                                                                java.lang.String loc)
                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • createInputStream

        public static java.io.InputStream createInputStream​(java.lang.String loc)
                                                     throws java.io.IOException,
                                                            java.net.MalformedURLException,
                                                            java.io.FileNotFoundException
        Throws:
        java.io.IOException
        java.net.MalformedURLException
        java.io.FileNotFoundException
      • createInputStream

        public static java.io.InputStream createInputStream​(java.lang.ClassLoader cl,
                                                            java.lang.String loc)
                                                     throws java.io.IOException,
                                                            java.net.MalformedURLException,
                                                            java.io.FileNotFoundException
        Throws:
        java.io.IOException
        java.net.MalformedURLException
        java.io.FileNotFoundException
      • createRetryStrategy

        public static edu.sc.seis.fissuresUtil.cache.RetryStrategy createRetryStrategy​(int numRetries)
      • setCommandName

        public static void setCommandName​(java.lang.String name)
      • setConfig

        public static void setConfig​(org.w3c.dom.Element config)
      • getEventArm

        public static EventArm getEventArm()
      • getNetworkArm

        public static NetworkArm getNetworkArm()
      • getWaveformArmArray

        public static WaveformArm[] getWaveformArmArray()
      • createDoc

        public static org.w3c.dom.Document createDoc​(org.xml.sax.InputSource source,
                                                     java.lang.String filename)
                                              throws org.xml.sax.SAXException,
                                                     java.io.IOException,
                                                     javax.xml.parsers.ParserConfigurationException
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
        javax.xml.parsers.ParserConfigurationException
      • addResultMailer

        public static void addResultMailer​(java.util.Properties mailProps)
                                    throws edu.sc.seis.fissuresUtil.exceptionHandler.MissingPropertyException
        Throws:
        edu.sc.seis.fissuresUtil.exceptionHandler.MissingPropertyException
      • start

        public void start()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • allHopeAbandon

        public void allHopeAbandon​(java.lang.String message)
      • add

        public static void add​(ArmListener listener)
      • getArgs

        public static Args getArgs()
      • getConfig

        public static org.w3c.dom.Element getConfig()
      • checkGCJ

        public static void checkGCJ()
      • main

        public static void main​(java.lang.String[] args)
      • exit

        public static void exit​(java.lang.String reason)
      • add

        public static void add​(java.util.Properties newProps)
      • cataclysmicFailureOfUnbelievableProportions

        public static void cataclysmicFailureOfUnbelievableProportions()
      • simpleArmFailure

        public static void simpleArmFailure​(Arm arm,
                                            java.lang.String reason)
      • armFailure

        public static void armFailure​(Arm arm,
                                      java.lang.Throwable t)
      • wakeUpAllArms

        public static void wakeUpAllArms()
      • isArmFailure

        public static boolean isArmFailure()