Package com.hazelcast.management

Examples of com.hazelcast.management.MapConfigAdapter


            dos.writeUTF("success");
        } else {
            MapConfig cfg = (MapConfig) mcs.callOnAddress(target, new GetMapConfigOperation(map));
            if (cfg != null) {
                dos.writeBoolean(true);
                new MapConfigAdapter(cfg).writeData(dos);
            } else {
                dos.writeBoolean(false);
            }
        }
    }
View Full Code Here


    public Object readResponse(ObjectDataInput in) throws IOException {
        update = in.readBoolean();

        if (!update) {
            if (in.readBoolean()) {
                final MapConfigAdapter adapter = new MapConfigAdapter();
                adapter.readData(in);
                return adapter.getMapConfig();
            } else {
                return null;
            }
        }
        return in.readUTF();
View Full Code Here

    @Override
    public void writeData(ObjectDataOutput out) throws IOException {
        out.writeUTF(map);
        out.writeBoolean(update);
        if (update) {
            new MapConfigAdapter(config).writeData(out);
        } else {
            target.writeData(out);
        }
    }
View Full Code Here

    @Override
    public void readData(ObjectDataInput in) throws IOException {
        map = in.readUTF();
        update = in.readBoolean();
        if (update) {
            final MapConfigAdapter adapter = new MapConfigAdapter();
            adapter.readData(in);
            config = adapter.getMapConfig();
        } else {
            target = new Address();
            target.readData(in);
        }
    }
View Full Code Here

    }

    @Override
    protected void writeInternal(ObjectDataOutput out) throws IOException {
        out.writeUTF(mapName);
        new MapConfigAdapter(mapConfig).writeData(out);
    }
View Full Code Here

    }

    @Override
    protected void readInternal(ObjectDataInput in) throws IOException {
        mapName = in.readUTF();
        MapConfigAdapter adapter = new MapConfigAdapter();
        adapter.readData(in);
        mapConfig = adapter.getMapConfig();
    }
View Full Code Here

    }

    @Override
    protected void writeInternal(ObjectDataOutput out) throws IOException {
        out.writeUTF(mapName);
        new MapConfigAdapter(mapConfig).writeData(out);
    }
View Full Code Here

    }

    @Override
    protected void readInternal(ObjectDataInput in) throws IOException {
        mapName = in.readUTF();
        MapConfigAdapter adapter = new MapConfigAdapter();
        adapter.readData(in);
        mapConfig = adapter.getMapConfig();
    }
View Full Code Here

            result.add("updateResult", "success");
        } else {
            MapConfig cfg = (MapConfig) mcs.callOnThis(new GetMapConfigOperation(mapName));
            if (cfg != null) {
                result.add("hasMapConfig", true);
                result.add("mapConfig", new MapConfigAdapter(cfg).toJson());
            } else {
                result.add("hasMapConfig", false);
            }
        }
        root.add("result", result);
View Full Code Here

    public Object readResponse(JsonObject json) {
        update = getBoolean(json, "update", false);
        if (!update) {
            boolean hasMapConfig = getBoolean(json, "hasMapConfig", false);
            if (hasMapConfig) {
                final MapConfigAdapter adapter = new MapConfigAdapter();
                adapter.fromJson(getObject(json, "mapConfig"));
                return adapter.getMapConfig();
            } else {
                return null;
            }
        }
        return getString(json, "updateResult");
View Full Code Here

TOP

Related Classes of com.hazelcast.management.MapConfigAdapter

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.