예제 #1
0
 /**
  * Sets up an Ambry frontend server.
  *
  * @throws Exception
  */
 @BeforeClass
 public static void setup() throws Exception {
   ambryRestServer =
       new RestServer(FRONTEND_VERIFIABLE_PROPS, CLUSTER_MAP, new LoggingNotificationSystem());
   ambryRestServer.start();
   nettyClient = new NettyClient("localhost", SERVER_PORT);
 }
예제 #2
0
 /** Shuts down the Ambry frontend server. */
 @AfterClass
 public static void teardown() {
   if (nettyClient != null) {
     nettyClient.close();
   }
   if (ambryRestServer != null) {
     ambryRestServer.shutdown();
   }
 }