Package org.jredis

Examples of org.jredis.ProviderException


          if(e.getCause() instanceof RedisException) {
            throw (RedisException) e.getCause();
          }
          else {
            e.printStackTrace();
            throw new ProviderException("on pendingResponse.get()", e);
          }
        }
     
        // check response status
        //
View Full Code Here


      for(ClusterNodeSpec node : nodes) {
        mapNode(node);
      }
      if(nodeMap.size() != (nodeReplicationCnt/4) * nodes.size() * 4) {
        Log.error("nodeMap size: " + nodeMap.size() + " | expected: " + nodeReplicationCnt * nodes.size());
        throw new ProviderException ("[BUG]: expecting node map size to be multiple of replication count * cluster node count");
      }
    }
    catch (ClassCastException e) {
      throw new ProviderException ("[BUG] KetamaNodeMappingAlgorithm requires a KetamaHashAlgorithm");
    }
  }
View Full Code Here

  }
   
  /* (non-Javadoc) @see org.jredis.cluster.ClusterModel.Support#onNodeAddition(org.jredis.cluster.ClusterNodeSpec) */
    @Override
    protected boolean onNodeAddition (ClusterNodeSpec newNode) {
      throw new ProviderException("[BUG] basic KetamaClusterModel does NOT support reconfiguration of nodes");
    }
View Full Code Here

    }

  /* (non-Javadoc) @see org.jredis.cluster.ClusterModel.Support#onNodeRemoval(org.jredis.cluster.ClusterNodeSpec) */
    @Override
    protected boolean onNodeRemoval (ClusterNodeSpec newNode) {
      throw new ProviderException("[BUG] basic KetamaClusterModel does NOT support reconfiguration of nodes");
    }
View Full Code Here

    /** called by child classes to indicate if & when their read operation has completed */
    protected final boolean didRead (boolean value) { return didRead = value;}
   
    /** a bit aggressive but to force out the little bugs .. */
    protected final void assertResponseRead () {
      if(!didRead) throw new ProviderException ("Response has not been read yet! -- whose bad?");
    }
View Full Code Here

        break;
     
      }
    }
    catch (Exception e) {
      throw new ProviderException("Problem writing to the buffer" + e.getLocalizedMessage());
    }
    return createRequest(buffer);
  }
View Full Code Here

    /* (non-Javadoc)
     * @see com.alphazero.jredis.connector.Message#read(java.io.InputStream)
     */
//    @Override
    public void read(InputStream in) throws ClientRuntimeException, ProviderException {
      throw new ProviderException("Request.read is not supported by this class! [Apr 2, 2009]");
    }
View Full Code Here

    try {
      this.serviceRequest(Command.QUIT);
    }
    catch (RedisException e) { /* NotConnectedException is OK */
      e.printStackTrace();
      throw new ProviderException ("Quit raised an unexpected RedisException -- Bug");
    }
//    return true;
  }
View Full Code Here

    try {
      MultiBulkResponse MultiBulkResponse = (MultiBulkResponse) this.serviceRequest(Command.SINTER, keybytes);
      multiBulkData = MultiBulkResponse.getMultiBulkData();
    }
    catch (ClassCastException e){
      throw new ProviderException("Expecting a MultiBulkResponse here => " + e.getLocalizedMessage(), e);
    }
    return multiBulkData;
  }
View Full Code Here

    try {
      MultiBulkResponse MultiBulkResponse = (MultiBulkResponse) this.serviceRequest(Command.SUNION, keybytes);
      multiBulkData = MultiBulkResponse.getMultiBulkData();
    }
    catch (ClassCastException e){
      throw new ProviderException("Expecting a MultiBulkResponse here => " + e.getLocalizedMessage(), e);
    }
    return multiBulkData;
  }
View Full Code Here

TOP

Related Classes of org.jredis.ProviderException

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.