/** * Perform service shutdown */ protected void stopService() throws Exception { // unsubscribe for notifications super.unsubscribe(); log.debug("Stopping heartbeat controller ..."); this.heartbeat.stop(); this.heartbeat = null; // gc log.debug("Stopping trap emitter ..."); this.trapEmitter.stop(); this.trapEmitter = null; log.debug("Stopping snmp agent ..."); // this.agentSession.close(); // this.agentSession = null; session.close(); log.info("SNMP agent stopped"); }
/** * Perform service shutdown */ protected void stopService() throws Exception { // unsubscribe for notifications super.unsubscribe(); log.debug("Stopping heartbeat controller ..."); this.heartbeat.stop(); this.heartbeat = null; // gc log.debug("Stopping trap emitter ..."); this.trapEmitter.stop(); this.trapEmitter = null; log.debug("Stopping snmp agent ..."); // this.agentSession.close(); // this.agentSession = null; session.close(); log.info("SNMP agent stopped"); }