Example #1
0
 private void reset(String[] args) throws Exception {
   Map controllerMap = TCPServer.getControllerList();
   if (!controllerMap.isEmpty()) {
     Set controllerSet = controllerMap.keySet();
     Iterator controllerIterator = controllerSet.iterator();
     while (controllerIterator.hasNext()) {
       Controller ctrl = (Controller) controllerMap.get(controllerIterator.next());
       telnet.sendCommand("del " + ctrl.getId());
       TCPServer.getControllerList().remove(ctrl.getSessionId());
     }
   }
 }