Package org.jredis

Examples of org.jredis.ClientRuntimeException


      Assert.notNull(synchConnection, "connection delegate", ClientRuntimeException.class);
    }
    catch (UnknownHostException e) {
      String msg = "Couldn't obtain InetAddress for "+host;
      Log.problem (msg+"  => " + e.getLocalizedMessage());
      throw new ClientRuntimeException(msg, e);
    }
    return synchConnection;
  }
View Full Code Here


        connInUse[i] = false;
      }
      catch (Exception e) {
        // TODO: remove this stacktrace
        e.printStackTrace();
        throw new ClientRuntimeException("Could not create connection for service", e);
      }   
    }
  }
View Full Code Here

    this.errorMsg = errMsg;
  }
//  @Override
  public Modality getModality()
  {
    throw new ClientRuntimeException (errorMsg);
  }
View Full Code Here

//  @Override
  public Response serviceRequest(Command cmd, byte[]... args) throws RedisException, ClientRuntimeException,
      ProviderException
  {
    throw new ClientRuntimeException (errorMsg);
  }
View Full Code Here

//  @Override
  public Future<Response> queueRequest(Command cmd, byte[]... args)
      throws ClientRuntimeException, ProviderException
  {
    throw new ClientRuntimeException (errorMsg);
  }
View Full Code Here

  /* (non-Javadoc) @see org.jredis.connector.Connection#serviceRequest(org.jredis.protocol.Command, byte[][]) */
  @Override
  public Response serviceRequest(Command cmd, byte[]... args) throws RedisException, ClientRuntimeException,
      ProviderException
  {
    throw new ClientRuntimeException (errorMsg);
  }
View Full Code Here

  /* (non-Javadoc) @see org.jredis.connector.Connection#queueRequest(org.jredis.protocol.Command, byte[][]) */
  @Override
  public Future<Response> queueRequest(Command cmd, byte[]... args)
      throws ClientRuntimeException, ProviderException
  {
    throw new ClientRuntimeException (errorMsg);
  }
View Full Code Here

      handler = (Protocol) handlerClass.getConstructor().newInstance();
      Assert.isTrue(handler.isCompatibleWithVersion(version.id), "supports version " + version.id, ProviderException.class);
    }
    catch (SecurityException e) {
      Log.problem("SecurityException when attempting to instantiate a " + handlerClass.getCanonicalName());
      throw new ClientRuntimeException ("Check the security policy -- we have a problem => "+ e.getLocalizedMessage(), e);
    }
    catch (Exception e) {
      String bugMsg =
        "Couldn't instantiate handler of class " +
        handlerClass.getCanonicalName() + " to service protocal version " +
View Full Code Here

          md5 = MessageDigest.getInstance("MD5");
      md5.reset();
      md5.update(b);
        }
        catch (NoSuchAlgorithmException e) {
          throw new ClientRuntimeException("MD5 Message Digest algorithm is not present in this JRE", e);
        }
    return md5.digest();
  }
View Full Code Here

        Response response = null;
        try {
                  response = JRedisPipeline.this.queueRequest(cmd, args).get();
                }
                catch (InterruptedException e) {
                  throw new ClientRuntimeException("Interrupted!", e);
                }
                catch (ExecutionException e) {
                  Throwable cause = e.getCause();
                  if(cause instanceof RedisException)
                    throw (RedisException) cause;
                  else if(cause instanceof ProviderException)
                    throw (ProviderException) cause;
                  else if(cause instanceof ClientRuntimeException)
                    throw (ClientRuntimeException)cause;
                  else throw new ClientRuntimeException("Exception in pipeline exec of requested command", cause);
                }
                return response;
            }
    };
  }
View Full Code Here

TOP

Related Classes of org.jredis.ClientRuntimeException

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.