IoT CAS Frameworks/IOT_Server/Multi-point_Event_Router_Framework/Event_Receiver_Mapper/EventReceiverMapper/src/com/prokosha/eventreceivermapper/EventProcessor.java
public void closeDataProcessor() {
        //System.out.println("Closing Socket and PrintWriter for host : " + gszEventProcessorHost + "...........");
        try {
            try {
                if (writer != null) {
                    writer.close();
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            try {
                if (out != null) {
                    out.close();
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            try {
                if (skt != null) {
                    skt.shutdownInput();
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            try {
                if (skt != null) {
                    skt.shutdownOutput();
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            try {
                if (skt != null) {
                    skt.setSoTimeout(500);
                    skt.close();
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            entered = false;
            writer = null;
            out = null;
            skt = null;
            //dataStorage = null;
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
/**
     * call this method to close all the connections to the current sender
     */
call this method to close all the connections to the current sender
call this method to close all the connections to the current sender
public void closeDataProcessor() {
        try {
            try {
                if (writer != null) {
                    writer.close();
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            try {
                if (out != null) {
                    out.close();
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            try {
                if (skt != null) {
                    skt.shutdownInput();
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            try {
                if (skt != null) {
                    skt.shutdownOutput();
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            try {
                if (skt != null) {
                    skt.setSoTimeout(500);
                    skt.close();
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            entered = false;
            writer = null;
            out = null;
            skt = null;
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
public void closeDataProcessor ( ) { try { try { if ( writer != null ) { writer . close ( ) ; } } catch ( Exception ex ) { ex . printStackTrace ( ) ; } try { if ( out != null ) { out . close ( ) ; } } catch ( Exception ex ) { ex . printStackTrace ( ) ; } try { if ( skt != null ) { skt . shutdownInput ( ) ; } } catch ( Exception ex ) { ex . printStackTrace ( ) ; } try { if ( skt != null ) { skt . shutdownOutput ( ) ; } } catch ( Exception ex ) { ex . printStackTrace ( ) ; } try { if ( skt != null ) { skt . setSoTimeout ( 500 ) ; skt . close ( ) ; } } catch ( Exception ex ) { ex . printStackTrace ( ) ; } entered = false ; writer = null ; out = null ; skt = null ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
call this method to close all the connections to the current sender
call this method to close all the connections to the current sender
//System.out.println("Closing Socket and PrintWriter for host : " + gszEventProcessorHost + "..........."); //dataStorage = null;