Package ch.iterate.openstack.swift.model

Examples of ch.iterate.openstack.swift.model.ContainerInfo


    }

    public ContainerInfo handleResponse(final HttpResponse response) throws ClientProtocolException, IOException {
        if(response.getStatusLine().getStatusCode() == HttpStatus.SC_NO_CONTENT ||
                response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
            return new ContainerInfo(region, container,
                    this.getContainerObjectCount(response), this.getContainerBytesUsed(response));
        }
        else if(response.getStatusLine().getStatusCode() == HttpStatus.SC_NOT_FOUND) {
            throw new ContainerNotFoundException(new Response(response));
        }
View Full Code Here


                        else {
                            logger.warn(String.format("Unexpected node name %s", data.getNodeName()));
                        }
                    }
                    if(name != null) {
                        ContainerInfo info = new ContainerInfo(region, name, count, size);
                        list.add(info);
                    }
                }
                return list;
            }
View Full Code Here

        this.container = container;
    }

    public ContainerInfo handleResponse(final HttpResponse response) throws ClientProtocolException, IOException {
        if(response.getStatusLine().getStatusCode() == HttpStatus.SC_NO_CONTENT) {
            return new ContainerInfo(region, container,
                    this.getContainerObjectCount(response), this.getContainerBytesUsed(response));
        }
        else if(response.getStatusLine().getStatusCode() == HttpStatus.SC_NOT_FOUND) {
            throw new ContainerNotFoundException(new Response(response));
        }
View Full Code Here

                        else {
                            logger.warn(String.format("Unexpected node name %s", data.getNodeName()));
                        }
                    }
                    if(name != null) {
                        ContainerInfo info = new ContainerInfo(region, name, count, size);
                        list.add(info);
                    }
                }
                return list;
            }
View Full Code Here

TOP

Related Classes of ch.iterate.openstack.swift.model.ContainerInfo

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.