public static void main(String[] args) {
    final VcrServer vcrServer;
    int exitCode = 0;
    try {
      InvocationOptions options = new InvocationOptions(args);
      Properties properties = Utils.loadProps(options.serverPropsFilePath);
      VerifiableProperties verifiableProperties = new VerifiableProperties(properties);
      ClusterMapConfig clusterMapConfig = new ClusterMapConfig(verifiableProperties);
      ClusterAgentsFactory clusterAgentsFactory =
          Utils.getObj(clusterMapConfig.clusterMapClusterAgentsFactory, clusterMapConfig,
              options.hardwareLayoutFilePath, options.partitionLayoutFilePath);
      logger.info("Bootstrapping VcrServer");
      vcrServer = new VcrServer(verifiableProperties, clusterAgentsFactory, new LoggingNotificationSystem(), null);
      // attach shutdown handler to catch control-c
      Runtime.getRuntime().addShutdownHook(new Thread() {
        public void run() {
          logger.info("Received shutdown signal. Shutting down VcrServer");
          vcrServer.shutdown();
        }
      });
      vcrServer.startup();
      vcrServer.awaitShutdown(Integer.MAX_VALUE);
    } catch (Exception e) {
      logger.error("Exception during bootstrap of VcrServer", e);
      exitCode = 1;
    }
    logger.info("Exiting VcrMain");
    System.exit(exitCode);
  }
Start point for creating an instance of {@link VcrServer} and starting/shutting it down.
ambry-vcr/src/main/java/com/github/ambry/vcr/VcrMain.java