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);
}
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);
}
Aggregations