IoT CAS Frameworks/IOT_Server/Report_Generator_Framework/IT/source/DashBoard-JSONgenerator/src/com/merit/dashboard/Controller.java
private void createThread_1(String forCustomer, String sz_tomcat_home) {
        /*//forCustomerName = forCustomer;
        String[] tVals = {"Hour", "Day", "Week", "Month", "Year"};
        ArrayList<String> al_customer_list = getCustomerList();
        long iTime = 1000 * 20;
        int count = 0;
        boolean flag = false;
        boolean firstRun = true;

        while (true) {
            System.out.println("\nCustomer List Size===" + al_customer_list.size() + "\n");
            log.debug("\nCustomer List Size===" + al_customer_list.size() + "\n");

            if (al_customer_list.size() > 0) {
                for (int j = 0; j < al_customer_list.size(); j++) {
                    for (int i = 0; i < tVals.length; i++) {
                        if(firstRun){
                            flag = true;
                        }else {
                            flag = ServiceThreadListener.tickTimer.getFlagForTvals(tVals[i]);
                        }
                        if(firstRun || flag){
                            generateDirectoryStructureByCustomerID(al_customer_list.get(j), tVals[i], sz_tomcat_home);
                            runTheCode(al_customer_list.get(j), tVals[i], sz_tomcat_home);
                            count++;
                            System.out.println("************************End Of " + tVals[i] + " Generated " + count + " *******************");
                        }
                    }
                }
                firstRun = false;
                System.out.println("*******************************First run of Loop has completed to generate all the data for {Hour, Day, Week, Month, Year}****************************************");
                try {
                    Thread.sleep(iTime);
                    count = 0;
                } catch (Exception interruptedException) {
                    System.out.println(interruptedException.getMessage());
                    log.error(interruptedException.getMessage());
                }
            } else {
                System.out.println("********Customer List Empty ***********");
            }
        }*/
    }
/**
     * This method we are calling generateDirectoryStructureByCustomerID() and
     * runTheCode() method
     *
     * @param forCustomer customerId
     * @param sz_tomcat_home where you want to create a directory
     *
     */
This method we are calling generateDirectoryStructureByCustomerID() and
runTheCode() method

@param forCustomer customerId
@param sz_tomcat_home where you want to create a directory
This method we are calling generateDirectoryStructureByCustomerID () and runTheCode () method @param forCustomer customerId @param sz_tomcat_home where you want to create a directory
private void createThread_1(String forCustomer, String sz_tomcat_home) {
        /*//forCustomerName = forCustomer;
        String[] tVals = {"Hour", "Day", "Week", "Month", "Year"};
        ArrayList<String> al_customer_list = getCustomerList();
        long iTime = 1000 * 20;
        int count = 0;
        boolean flag = false;
        boolean firstRun = true;
        while (true) {
            System.out.println("\nCustomer List Size===" + al_customer_list.size() + "\n");
            log.debug("\nCustomer List Size===" + al_customer_list.size() + "\n");
            if (al_customer_list.size() > 0) {
                for (int j = 0; j < al_customer_list.size(); j++) {
                    for (int i = 0; i < tVals.length; i++) {
                        if(firstRun){
                            flag = true;
                        }else {
                            flag = ServiceThreadListener.tickTimer.getFlagForTvals(tVals[i]);
                        }
                        if(firstRun || flag){
                            generateDirectoryStructureByCustomerID(al_customer_list.get(j), tVals[i], sz_tomcat_home);
                            runTheCode(al_customer_list.get(j), tVals[i], sz_tomcat_home);
                            count++;
                            System.out.println("************************End Of " + tVals[i] + " Generated " + count + " *******************");
                        }
                    }
                }
                firstRun = false;
                System.out.println("*******************************First run of Loop has completed to generate all the data for {Hour, Day, Week, Month, Year}****************************************");
                try {
                    Thread.sleep(iTime);
                    count = 0;
                } catch (Exception interruptedException) {
                    System.out.println(interruptedException.getMessage());
                    log.error(interruptedException.getMessage());
                }
            } else {
                System.out.println("********Customer List Empty ***********");
            }
        }*/
    }
private void createThread_1 ( String forCustomer , String sz_tomcat_home ) { /*//forCustomerName = forCustomer;
        String[] tVals = {"Hour", "Day", "Week", "Month", "Year"};
        ArrayList<String> al_customer_list = getCustomerList();
        long iTime = 1000 * 20;
        int count = 0;
        boolean flag = false;
        boolean firstRun = true;

        while (true) {
            System.out.println("\nCustomer List Size===" + al_customer_list.size() + "\n");
            log.debug("\nCustomer List Size===" + al_customer_list.size() + "\n");

            if (al_customer_list.size() > 0) {
                for (int j = 0; j < al_customer_list.size(); j++) {
                    for (int i = 0; i < tVals.length; i++) {
                        if(firstRun){
                            flag = true;
                        }else {
                            flag = ServiceThreadListener.tickTimer.getFlagForTvals(tVals[i]);
                        }
                        if(firstRun || flag){
                            generateDirectoryStructureByCustomerID(al_customer_list.get(j), tVals[i], sz_tomcat_home);
                            runTheCode(al_customer_list.get(j), tVals[i], sz_tomcat_home);
                            count++;
                            System.out.println("************************End Of " + tVals[i] + " Generated " + count + " *******************");
                        }
                    }
                }
                firstRun = false;
                System.out.println("*******************************First run of Loop has completed to generate all the data for {Hour, Day, Week, Month, Year}****************************************");
                try {
                    Thread.sleep(iTime);
                    count = 0;
                } catch (Exception interruptedException) {
                    System.out.println(interruptedException.getMessage());
                    log.error(interruptedException.getMessage());
                }
            } else {
                System.out.println("********Customer List Empty ***********");
            }
        }*/ }
This method we are calling generateDirectoryStructureByCustomerID() and
 runTheCode() method
This method we are calling generateDirectoryStructureByCustomerID () and runTheCode () method