Package com.netflix.ice.reader

Examples of com.netflix.ice.reader.ApplicationGroup


    }

    private String getJson(Map<String, ApplicationGroup> appgroups) throws JSONException {
        JSONObject json = new JSONObject();
        for (String name: appgroups.keySet()) {
            ApplicationGroup appgroup = appgroups.get(name);
            json.put(name, appgroup.getJSON());
        }

        return json.toString();
    }
View Full Code Here


            Map<String, ApplicationGroup> appgroups = Maps.newHashMap();
            Iterator<String> keys = json.keys();
            while (keys.hasNext()) {
                String key = keys.next();
                String str = json.getString(key);
                appgroups.put(key, new ApplicationGroup(str));
            }

            return appgroups;
        }
        catch (JSONException e) {
View Full Code Here

        }
    }

    public boolean deleteApplicationGroup(String name) {
        Map<String, ApplicationGroup> appgroups = getApplicationGroups();
        ApplicationGroup appgroup = appgroups.remove(name);

        try {
            String json = getJson(appgroups);
            s3Client.putObject(config.workS3BucketName, config.workS3BucketPrefix + "appgroups", new ByteArrayInputStream(json.getBytes()), new ObjectMetadata());
View Full Code Here

TOP

Related Classes of com.netflix.ice.reader.ApplicationGroup

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.