示例#1
0
 /**
  * JUnit special method called to shutdown the test. This instance will stop the VoltDB server
  * using the VoltServerConfig instance provided.
  */
 @Override
 public void tearDown() throws Exception {
   m_config.shutDown();
   for (final Client c : m_clients) {
     c.close();
   }
   synchronized (m_clientChannels) {
     for (final SocketChannel sc : m_clientChannels) {
       try {
         ConnectionUtil.closeConnection(sc);
       } catch (final IOException e) {
         e.printStackTrace();
       }
     }
     m_clientChannels.clear();
   }
   m_clients.clear();
 }