Search in sources :

Example 6 with MapConfigDTO

use of com.hazelcast.internal.management.dto.MapConfigDTO in project hazelcast by hazelcast.

the class UpdateMapConfigOperation method writeInternal.

@Override
protected void writeInternal(ObjectDataOutput out) throws IOException {
    out.writeUTF(mapName);
    new MapConfigDTO(mapConfig).writeData(out);
}
Also used : MapConfigDTO(com.hazelcast.internal.management.dto.MapConfigDTO)

Example 7 with MapConfigDTO

use of com.hazelcast.internal.management.dto.MapConfigDTO in project hazelcast by hazelcast.

the class ManagementDataSerializerHook method createFactory.

@Override
@SuppressWarnings("unchecked")
public DataSerializableFactory createFactory() {
    ConstructorFunction<Integer, IdentifiedDataSerializable>[] constructors = new ConstructorFunction[LEN];
    constructors[SCRIPT_EXECUTOR] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new ScriptExecutorOperation();
        }
    };
    constructors[UPDATE_MANAGEMENT_CENTER_URL] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new UpdateManagementCenterUrlOperation();
        }
    };
    constructors[UPDATE_MAP_CONFIG] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new UpdateMapConfigOperation();
        }
    };
    constructors[MAP_CONFIG_DTO] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapConfigDTO();
        }
    };
    constructors[ADD_WAN_CONFIG] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        @Override
        public IdentifiedDataSerializable createNew(Integer arg) {
            return new AddWanConfigOperation();
        }
    };
    return new ArrayDataSerializableFactory(constructors);
}
Also used : IdentifiedDataSerializable(com.hazelcast.nio.serialization.IdentifiedDataSerializable) ScriptExecutorOperation(com.hazelcast.internal.management.operation.ScriptExecutorOperation) UpdateManagementCenterUrlOperation(com.hazelcast.internal.management.operation.UpdateManagementCenterUrlOperation) MapConfigDTO(com.hazelcast.internal.management.dto.MapConfigDTO) UpdateMapConfigOperation(com.hazelcast.internal.management.operation.UpdateMapConfigOperation) ArrayDataSerializableFactory(com.hazelcast.internal.serialization.impl.ArrayDataSerializableFactory) ConstructorFunction(com.hazelcast.util.ConstructorFunction) AddWanConfigOperation(com.hazelcast.internal.management.operation.AddWanConfigOperation)

Aggregations

MapConfigDTO (com.hazelcast.internal.management.dto.MapConfigDTO)7 MapConfig (com.hazelcast.config.MapConfig)2 UpdateMapConfigOperation (com.hazelcast.internal.management.operation.UpdateMapConfigOperation)2 JsonObject (com.eclipsesource.json.JsonObject)1 HazelcastInstance (com.hazelcast.core.HazelcastInstance)1 Member (com.hazelcast.core.Member)1 AddWanConfigOperation (com.hazelcast.internal.management.operation.AddWanConfigOperation)1 GetMapConfigOperation (com.hazelcast.internal.management.operation.GetMapConfigOperation)1 ScriptExecutorOperation (com.hazelcast.internal.management.operation.ScriptExecutorOperation)1 UpdateManagementCenterUrlOperation (com.hazelcast.internal.management.operation.UpdateManagementCenterUrlOperation)1 ArrayDataSerializableFactory (com.hazelcast.internal.serialization.impl.ArrayDataSerializableFactory)1 IdentifiedDataSerializable (com.hazelcast.nio.serialization.IdentifiedDataSerializable)1 TestHazelcastInstanceFactory (com.hazelcast.test.TestHazelcastInstanceFactory)1 ConstructorFunction (com.hazelcast.util.ConstructorFunction)1 Before (org.junit.Before)1