blob: 9c26def17fe69974241531f550d183d70980af7a [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.internal.sql.engine.prepare.ddl;
import org.jetbrains.annotations.Nullable;
/**
* ALTER ZONE ... SET statement.
*/
public class AlterZoneSetCommand extends AbstractZoneDdlCommand {
/** Quietly ignore this command if zone does not exists. */
private boolean ifExists;
/** Number of partitions. */
private Integer partitions;
/** Replicas number. */
private Integer replicas;
/** Data nodes filter expression. */
private String nodeFiler;
/** Data nodes auto adjust timeout. */
private Integer dataNodesAutoAdjust;
/** Data nodes auto adjust scale up timeout. */
private Integer dataNodesAutoAdjustScaleUp;
/** Data nodes auto adjust scale down timeout. */
private Integer dataNodesAutoAdjustScaleDown;
public boolean ifExists() {
return ifExists;
}
public void ifExists(boolean ifExists) {
this.ifExists = ifExists;
}
@Nullable public Integer partitions() {
return partitions;
}
public void partitions(Integer partitions) {
this.partitions = partitions;
}
@Nullable public Integer replicas() {
return replicas;
}
public void replicas(Integer replicas) {
this.replicas = replicas;
}
@Nullable public String nodeFilter() {
return nodeFiler;
}
public void nodeFilter(String nodeFiler) {
this.nodeFiler = nodeFiler;
}
@Nullable public Integer dataNodesAutoAdjust() {
return dataNodesAutoAdjust;
}
public void dataNodesAutoAdjust(Integer dataNodesAutoAdjust) {
this.dataNodesAutoAdjust = dataNodesAutoAdjust;
}
@Nullable public Integer dataNodesAutoAdjustScaleUp() {
return dataNodesAutoAdjustScaleUp;
}
public void dataNodesAutoAdjustScaleUp(Integer dataNodesAutoAdjustScaleUp) {
this.dataNodesAutoAdjustScaleUp = dataNodesAutoAdjustScaleUp;
}
@Nullable public Integer dataNodesAutoAdjustScaleDown() {
return dataNodesAutoAdjustScaleDown;
}
public void dataNodesAutoAdjustScaleDown(Integer dataNodesAutoAdjustScaleDown) {
this.dataNodesAutoAdjustScaleDown = dataNodesAutoAdjustScaleDown;
}
}