IoT CAS Frameworks/IOT_Server/Multi-point_Event_Router_Framework/Event_Receiver_Mapper/EventReceiverMapper/src/com/prokosha/eventreceivermapper/EventReceiverMapper.java
public void ini() throws Exception {
        pro = new Properties();
        String szPropFile = "AddressConfig.properties";
        String szUserHome_dir = System.getProperty("user.home");
        System.out.println("user home dir   :" + szUserHome_dir);
        String FileName = szUserHome_dir + System.getProperty("file.separator") + szPropFile;
        System.out.println("user home dir szFilePath" + FileName);
        FileInputStream flInptStrm = new FileInputStream(FileName);
        pro.load(flInptStrm);
        flInptStrm.close();

        //  setClientsLifeSpan();
        mutliClient = pro.getProperty("enable.MultipleClients");
        if (mutliClient == null) {
            throw (new Exception("configure 'enable.MultipleClients' to one of the value ['true', 'false', 'enabled', 'disabled'] in 'AddressConfig.properties' file."));
        }

        String value = pro.getProperty("enabledEventProcessors").trim();
        gszArrProcessorGroup = value.split(",");

        System.out.println("EventProcessors = " + value);
        value = pro.getProperty("enabledEventTypes").trim();
        gszArrEventTypeGroup = value.split(",");
        System.out.println("eventTypes = " + value);
        flInptStrm = null;
    }
/**
     * initialize the Properties class Object and load the properties from the
     * configuration file.
     */
initialize the Properties class Object and load the properties from the
configuration file.
initialize the Properties class Object and load the properties from the configuration file .
public void ini() throws Exception {
        pro = new Properties();
        String szPropFile = "AddressConfig.properties";
        String szUserHome_dir = System.getProperty("user.home");
        System.out.println("user home dir   :" + szUserHome_dir);
        String FileName = szUserHome_dir + System.getProperty("file.separator") + szPropFile;
        System.out.println("user home dir szFilePath" + FileName);
        FileInputStream flInptStrm = new FileInputStream(FileName);
        pro.load(flInptStrm);
        flInptStrm.close();
        mutliClient = pro.getProperty("enable.MultipleClients");
        if (mutliClient == null) {
            throw (new Exception("configure 'enable.MultipleClients' to one of the value ['true', 'false', 'enabled', 'disabled'] in 'AddressConfig.properties' file."));
        }
        String value = pro.getProperty("enabledEventProcessors").trim();
        gszArrProcessorGroup = value.split(",");
        System.out.println("EventProcessors = " + value);
        value = pro.getProperty("enabledEventTypes").trim();
        gszArrEventTypeGroup = value.split(",");
        System.out.println("eventTypes = " + value);
        flInptStrm = null;
    }
public void ini ( ) throws Exception { pro = new Properties ( ) ; String szPropFile = "AddressConfig.properties" ; String szUserHome_dir = System . getProperty ( "user.home" ) ; System . out . println ( "user home dir   :" + szUserHome_dir ) ; String FileName = szUserHome_dir + System . getProperty ( "file.separator" ) + szPropFile ; System . out . println ( "user home dir szFilePath" + FileName ) ; FileInputStream flInptStrm = new FileInputStream ( FileName ) ; pro . load ( flInptStrm ) ; flInptStrm . close ( ) ; mutliClient = pro . getProperty ( "enable.MultipleClients" ) ; if ( mutliClient == null ) { throw ( new Exception ( "configure 'enable.MultipleClients' to one of the value ['true', 'false', 'enabled', 'disabled'] in 'AddressConfig.properties' file." ) ) ; } String value = pro . getProperty ( "enabledEventProcessors" ) . trim ( ) ; gszArrProcessorGroup = value . split ( "," ) ; System . out . println ( "EventProcessors = " + value ) ; value = pro . getProperty ( "enabledEventTypes" ) . trim ( ) ; gszArrEventTypeGroup = value . split ( "," ) ; System . out . println ( "eventTypes = " + value ) ; flInptStrm = null ; }
initialize the Properties class Object and load the properties from the
 configuration file.
initialize the Properties class Object and load the properties from the configuration file .
//  setClientsLifeSpan();