private void sendLogLevelRequest() throws HadoopIllegalArgumentException, Exception {
      switch (operation) {
        case GETLEVEL:
          doGetLevel();
          break;
        case SETLEVEL:
          doSetLevel();
          break;
        default:
          throw new HadoopIllegalArgumentException("Expect either -getlevel or -setlevel");
      }
    }
Send HTTP request to the daemon.
@throws HadoopIllegalArgumentException if arguments are invalid.
@throws Exception                      if unable to connect
hbase-http/src/main/java/org/apache/hadoop/hbase/http/log/LogLevel.java