Beispiel #1
0
  @Override
  public void run() {
    HBaseTcpServer server = new HBaseTcpServer(this);
    server.start();

    HBasePgServer pgServer = null;
    if (HBasePgServer.isPgServerEnable(getConfiguration())) {
      pgServer = new HBasePgServer(this);
      pgServer.start();
    }

    try {
      super.run();
    } finally {
      server.stop();
      if (pgServer != null) pgServer.stop();
    }
  }