Package redis.clients.jedis.exceptions

Examples of redis.clients.jedis.exceptions.JedisConnectionException


    os.writeIntCrLf(arg.length);
    os.write(arg);
    os.writeCrLf();
      }
  } catch (IOException e) {
      throw new JedisConnectionException(e);
  }
    }
View Full Code Here


      } else if (b == DOLLAR_BYTE) {
    return processBulkReply(is);
      } else if (b == PLUS_BYTE) {
    return processStatusCodeReply(is);
      } else {
    throw new JedisConnectionException("Unknown reply: " + (char) b);
      }
  } catch (IOException e) {
      throw new JedisConnectionException(e);
  }
  return null;
    }
View Full Code Here

  int offset = 0;
  try {
      while (offset < len) {
    int size = is.read(read, offset, (len - offset));
    if (size == -1)
        throw new JedisConnectionException(
          "It seems like server has closed the connection.");
    offset += size;
      }
      // read 2 more bytes for the command delimiter
      is.readByte();
      is.readByte();
  } catch (IOException e) {
      throw new JedisConnectionException(e);
  }

  return read;
    }
View Full Code Here

    // can connect to sentinel, but master name seems to not
    // monitored
    throw new JedisException("Can connect to sentinel, but "
      + masterName + " seems to be not monitored...");
      } else {
    throw new JedisConnectionException(
      "All sentinels down, cannot determine where is "
        + masterName + " master is running...");
      }
  }
View Full Code Here

        pool.returnBrokenResource(jedis);
    }
      }
  }

  throw new JedisConnectionException("no reachable node in cluster");
    }
View Full Code Here

      }
      socket.setKeepAlive(true);
      socket.setSoTimeout(0);
  } catch (SocketException ex) {
      broken = true;
      throw new JedisConnectionException(ex);
  }
    }
View Full Code Here

  try {
      socket.setSoTimeout(timeout);
      socket.setKeepAlive(false);
  } catch (SocketException ex) {
      broken = true;
      throw new JedisConnectionException(ex);
  }
    }
View Full Code Here

    socket.setSoTimeout(timeout);
    outputStream = new RedisOutputStream(socket.getOutputStream());
    inputStream = new RedisInputStream(socket.getInputStream());
      } catch (IOException ex) {
    broken = true;
    throw new JedisConnectionException(ex);
      }
  }
    }
View Full Code Here

    if (!socket.isClosed()) {
        socket.close();
    }
      } catch (IOException ex) {
    broken = true;
    throw new JedisConnectionException(ex);
      }
  }
    }
View Full Code Here

    protected void flush() {
  try {
      outputStream.flush();
  } catch (IOException ex) {
      broken = true;
      throw new JedisConnectionException(ex);
  }
    }
View Full Code Here

TOP

Related Classes of redis.clients.jedis.exceptions.JedisConnectionException

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.