class ListGatewayCommand extends GfshCommand {

  static String getStatus(GatewaySenderMXBean mbean) {
    if (!mbean.isRunning()) {
      return CliStrings.GATEWAY_NOT_RUNNING;
    }
    if (mbean.isPaused()) {
      return CliStrings.SENDER_PAUSED;
    }
    if (mbean.isConnected()) {
      return CliStrings.GATEWAY_RUNNING_CONNECTED;
    }
    // can only reach here when running, not paused and not connected
    return CliStrings.GATEWAY_RUNNING_NOT_CONNECTED;
  }

}