Package voldemort.store

Examples of voldemort.store.UnreachableStoreException


                                             (VectorClock) version,
                                             reroute);
            input = executeRequest(method, outputBytes);
            return requestFormat.readDeleteResponse(input);
        } catch(IOException e) {
            throw new UnreachableStoreException("Could not connect to " + storeUrl + " for "
                                                + getName(), e);
        } finally {
            IOUtils.closeQuietly(input);
        }
    }
View Full Code Here


                                          transforms,
                                          reroute);
            input = executeRequest(method, outputBytes);
            return requestFormat.readGetResponse(input);
        } catch(IOException e) {
            throw new UnreachableStoreException("Could not connect to " + storeUrl + " for "
                                                + getName(), e);
        } finally {
            IOUtils.closeQuietly(input);
        }
    }
View Full Code Here

                                             transforms,
                                             reroute);
            input = executeRequest(method, outputBytes);
            return requestFormat.readGetAllResponse(input);
        } catch(IOException e) {
            throw new UnreachableStoreException("Could not connect to " + storeUrl + " for "
                                                + getName(), e);
        } finally {
            IOUtils.closeQuietly(input);
        }
    }
View Full Code Here

                                          (VectorClock) versioned.getVersion(),
                                          reroute);
            input = executeRequest(method, outputBytes);
            requestFormat.readPutResponse(input);
        } catch(IOException e) {
            throw new UnreachableStoreException("Could not connect to " + storeUrl + " for "
                                                + getName(), e);
        } finally {
            IOUtils.closeQuietly(input);
        }
    }
View Full Code Here

            response = httpClient.execute(method);
            int statusCode = response.getStatusLine().getStatusCode();
            if(statusCode != HttpURLConnection.HTTP_OK) {
                String message = response.getStatusLine().getReasonPhrase();
                VoldemortIOUtils.closeQuietly(response);
                throw new UnreachableStoreException("HTTP request to store " + getName()
                                                    + " returned status code " + statusCode + " "
                                                    + message);
            }
            return new DataInputStream(response.getEntity().getContent());
        } catch(IOException e) {
            VoldemortIOUtils.closeQuietly(response);
            throw new UnreachableStoreException("Could not connect to " + storeUrl + " for "
                                                + getName(), e);
        }
    }
View Full Code Here

                                                 key,
                                                 reroute);
            input = executeRequest(method, outputBytes);
            return requestFormat.readGetVersionResponse(input);
        } catch(IOException e) {
            throw new UnreachableStoreException("Could not connect to " + storeUrl + " for "
                                                + getName(), e);
        } finally {
            IOUtils.closeQuietly(input);
        }
    }
View Full Code Here

TOP

Related Classes of voldemort.store.UnreachableStoreException

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.