Package net.rubyeye.xmemcached.exception

Examples of net.rubyeye.xmemcached.exception.UnknownCommandException


  protected final boolean decodeError(String line) {
    if (line.startsWith("ERROR")) {
      String[] splits = line.split("ERROR");
      String errorMsg = splits.length >= 2 ? splits[1]
          : "Unknow command " + getCommandType();
      setException(new UnknownCommandException(
          "Response error,error message:" + errorMsg));
      countDownLatch();
      return true;
    } else if (line.startsWith("CLIENT_ERROR")) {
      setException(new MemcachedClientException(getErrorMsg(line,
View Full Code Here


  protected void readStatus(ByteBuffer buffer) {
    this.responseStatus = ResponseStatus.parseShort(buffer.getShort());
    switch (this.responseStatus) {
    case NOT_SUPPORTED:
    case UNKNOWN_COMMAND:
      setException(new UnknownCommandException());
      break;
    case AUTH_REQUIRED:
    case FUTHER_AUTH_REQUIRED:
    case VALUE_TOO_BIG:
    case INVALID_ARGUMENTS:
View Full Code Here

  protected void readStatus(ByteBuffer buffer) {
    this.responseStatus = ResponseStatus.parseShort(buffer.getShort());
    switch (this.responseStatus) {
    case NOT_SUPPORTED:
    case UNKNOWN_COMMAND:
      this.setException(new UnknownCommandException());
      break;
    case AUTH_REQUIRED:
    case FUTHER_AUTH_REQUIRED:
    case VALUE_TOO_BIG:
    case INVALID_ARGUMENTS:
View Full Code Here

      break;
    case PREPEND:
      this.opCode = noreply ? OpCode.PREPEND_QUIETLY : OpCode.PREPEND;
      break;
    default:
      throw new UnknownCommandException(
          "Not a append or prepend command:" + cmdType.name());
    }
  }
View Full Code Here

  @Override
  protected void readStatus(ByteBuffer buffer) {
    ResponseStatus responseStatus = ResponseStatus.parseShort(buffer
        .getShort());
    if (responseStatus == ResponseStatus.UNKNOWN_COMMAND) {
      setException(new UnknownCommandException());
    }
  }
View Full Code Here

  protected final boolean decodeError(String line) {
    if (line.startsWith("ERROR")) {
      String[] splits = line.split("ERROR");
      String errorMsg = splits.length >= 2 ? splits[1]
          : "Unknow command " + getCommandType();
      setException(new UnknownCommandException(
          "Response error,error message:" + errorMsg + ",key="
              + this.key));
      countDownLatch();
      return true;
    } else if (line.startsWith("CLIENT_ERROR")) {
View Full Code Here

TOP

Related Classes of net.rubyeye.xmemcached.exception.UnknownCommandException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.