Search in sources :

Example 1 with UpdateConfigOperation

use of com.hazelcast.internal.management.operation.UpdateConfigOperation in project hazelcast by hazelcast.

the class ManagementDataSerializerHook method createFactory.

@Override
@SuppressWarnings("unchecked")
public DataSerializableFactory createFactory() {
    ConstructorFunction<Integer, IdentifiedDataSerializable>[] constructors = new ConstructorFunction[LEN];
    constructors[UPDATE_MAP_CONFIG] = arg -> new UpdateMapConfigOperation();
    constructors[SET_LICENSE] = arg -> new SetLicenseOperation();
    constructors[CHANGE_CLUSTER_STATE] = arg -> new ChangeClusterStateOperation();
    constructors[UPDATE_PERMISSION_CONFIG_OPERATION] = arg -> new UpdatePermissionConfigOperation();
    constructors[RELOAD_CONFIG_OPERATION] = arg -> new ReloadConfigOperation();
    constructors[UPDATE_CONFIG_OPERATION] = arg -> new UpdateConfigOperation();
    return new ArrayDataSerializableFactory(constructors);
}
Also used : UpdatePermissionConfigOperation(com.hazelcast.internal.management.operation.UpdatePermissionConfigOperation) SetLicenseOperation(com.hazelcast.internal.management.operation.SetLicenseOperation) ReloadConfigOperation(com.hazelcast.internal.management.operation.ReloadConfigOperation) UpdateConfigOperation(com.hazelcast.internal.management.operation.UpdateConfigOperation) UpdateMapConfigOperation(com.hazelcast.internal.management.operation.UpdateMapConfigOperation) ArrayDataSerializableFactory(com.hazelcast.internal.serialization.impl.ArrayDataSerializableFactory) ConstructorFunction(com.hazelcast.internal.util.ConstructorFunction) ChangeClusterStateOperation(com.hazelcast.internal.management.operation.ChangeClusterStateOperation)

Aggregations

ChangeClusterStateOperation (com.hazelcast.internal.management.operation.ChangeClusterStateOperation)1 ReloadConfigOperation (com.hazelcast.internal.management.operation.ReloadConfigOperation)1 SetLicenseOperation (com.hazelcast.internal.management.operation.SetLicenseOperation)1 UpdateConfigOperation (com.hazelcast.internal.management.operation.UpdateConfigOperation)1 UpdateMapConfigOperation (com.hazelcast.internal.management.operation.UpdateMapConfigOperation)1 UpdatePermissionConfigOperation (com.hazelcast.internal.management.operation.UpdatePermissionConfigOperation)1 ArrayDataSerializableFactory (com.hazelcast.internal.serialization.impl.ArrayDataSerializableFactory)1 ConstructorFunction (com.hazelcast.internal.util.ConstructorFunction)1