Package com.basho.riak.pbc.RPB

Examples of com.basho.riak.pbc.RPB.RpbSetClientIdReq


  public void setClientID(ByteString id) throws IOException {
      if(id.size() > Constants.RIAK_CLIENT_ID_LENGTH) {
          id = ByteString.copyFrom(id.toByteArray(), 0, Constants.RIAK_CLIENT_ID_LENGTH);
      }
    RpbSetClientIdReq req = RPB.RpbSetClientIdReq.newBuilder().setClientId(
        id).build();
    RiakConnection c = getConnection(false);
    try {
      c.send(MSG_SetClientIdReq, req);
      c.receive_code(MSG_SetClientIdResp);
View Full Code Here


     * @param c
     *            the connection to set the Id on
     * @throws IOException
     */
    private void setClientIdOnConnection(RiakConnection c, byte[] clientId) throws IOException {
        RpbSetClientIdReq req = RPB.RpbSetClientIdReq.newBuilder().setClientId(ByteString.copyFrom(clientId)).build();

        try {
            c.send(RiakMessageCodes.MSG_SetClientIdReq, req);
            c.receive_code(RiakMessageCodes.MSG_SetClientIdResp);
            c.setClientId(clientId);
View Full Code Here

     * @param c
     *            the connection to set the Id on
     * @throws IOException
     */
    private void setClientIdOnConnection(RiakConnection c, byte[] clientId) throws IOException {
        RpbSetClientIdReq req = RPB.RpbSetClientIdReq.newBuilder().setClientId(ByteString.copyFrom(clientId)).build();

        try {
            c.send(RiakMessageCodes.MSG_SetClientIdReq, req);
            c.receive_code(RiakMessageCodes.MSG_SetClientIdResp);
            c.setClientId(clientId);
View Full Code Here

     * @param c
     *            the connection to set the Id on
     * @throws IOException
     */
    private void setClientIdOnConnection(RiakConnection c, byte[] clientId) throws IOException {
        RpbSetClientIdReq req = RPB.RpbSetClientIdReq.newBuilder().setClientId(ByteString.copyFrom(clientId)).build();

        try {
            c.send(RiakMessageCodes.MSG_SetClientIdReq, req);
            c.receive_code(RiakMessageCodes.MSG_SetClientIdResp);
            c.setClientId(clientId);
View Full Code Here

  }

  // /////////////////////

  public void setClientID(ByteString id) throws IOException {
    RpbSetClientIdReq req = RPB.RpbSetClientIdReq.newBuilder().setClientId(
        id).build();
    RiakConnection c = getConnection();
    try {
      c.send(MSG_SetClientIdReq, req);
      c.receive_code(MSG_SetClientIdResp);
View Full Code Here

     * @param c
     *            the connection to set the Id on
     * @throws IOException
     */
    private void setClientIdOnConnection(RiakConnection c, byte[] clientId) throws IOException {
        RpbSetClientIdReq req = RPB.RpbSetClientIdReq.newBuilder().setClientId(ByteString.copyFrom(clientId)).build();

        try {
            c.send(RiakMessageCodes.MSG_SetClientIdReq, req);
            c.receive_code(RiakMessageCodes.MSG_SetClientIdResp);
            c.setClientId(clientId);
View Full Code Here

TOP

Related Classes of com.basho.riak.pbc.RPB.RpbSetClientIdReq

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.