Class Bootstrap


  • public class Bootstrap
    extends Object
    This class is responsible for bootstrapping the WAR.
    • Field Detail

      • JVM_OPT_BOOTSTRAP

        public static final String JVM_OPT_BOOTSTRAP
        Directory where bootstrap file resides.
        See Also:
        Constant Field Values
    • Method Detail

      • load

        public static void load()
                         throws Exception
        Loads System Property with the bootstrap file that is found in JVM_OPT_BOOTSTRAP stated directory.
        Throws:
        Exception - if properties cannot be loaded.
      • load

        public static Properties load​(String basedir,
                                      boolean bServer)
                               throws Exception
        Loads System Property with the bootstrap file that is found in a directory.
        Parameters:
        basedir - Directory where bootstrap file resides. bootstrap file can contain either an URL where we can go fetch the server configuration properties or a file that contains the properties.
        bServer - true if server.
        Throws:
        Exception - if properties cannot be loaded.
      • bootstrap

        public static boolean bootstrap​(BootstrapData bootstrapInfo,
                                        boolean reinit)
                                 throws Exception
        Returns true if able to bootstrap the system.
        Parameters:
        bootstrapInfo - object that contains information on how to fetch the server configuration properties.
        reinit - true to re initialize the system.
        Throws:
        Exception - if there are errors in bootstrapping.
      • modifyDSAMEUserPassword

        public static void modifyDSAMEUserPassword​(String password)
                                            throws IOException
        Modifies the dsameuser password in bootstrap file.
        Parameters:
        password - New Password.
        Throws:
        IOException - if modification fails.