All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.nacos.config.server.service.dump.DumpRequest Maven / Gradle / Ivy

There is a newer version: 3.0.0-ALPHA.2
Show newest version

/*
 * Copyright 1999-2018 Alibaba Group Holding Ltd.
 *
 * Licensed 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 com.alibaba.nacos.config.server.service.dump;

/**
 * dump request.
 * @author shiyiyue
 */
public class DumpRequest {
    
    String dataId;
    
    String group;
    
    String tenant;
    
    private boolean isBeta;
    
    private boolean isBatch;
    
    private String tag;
    
    private long lastModifiedTs;
    
    private String sourceIp;
    
    public String getDataId() {
        return dataId;
    }
    
    public void setDataId(String dataId) {
        this.dataId = dataId;
    }
    
    public String getGroup() {
        return group;
    }
    
    public void setGroup(String group) {
        this.group = group;
    }
    
    public String getTenant() {
        return tenant;
    }
    
    public void setTenant(String tenant) {
        this.tenant = tenant;
    }
    
    public boolean isBeta() {
        return isBeta;
    }
    
    public void setBeta(boolean beta) {
        isBeta = beta;
    }
    
    public boolean isBatch() {
        return isBatch;
    }
    
    public void setBatch(boolean batch) {
        isBatch = batch;
    }
    
    public String getTag() {
        return tag;
    }
    
    public void setTag(String tag) {
        this.tag = tag;
    }
    
    public long getLastModifiedTs() {
        return lastModifiedTs;
    }
    
    public void setLastModifiedTs(long lastModifiedTs) {
        this.lastModifiedTs = lastModifiedTs;
    }
    
    public String getSourceIp() {
        return sourceIp;
    }
    
    public void setSourceIp(String sourceIp) {
        this.sourceIp = sourceIp;
    }
    
    /**
     * create dump request.
     * @param dataId dataId.
     * @param group group.
     * @param tenant tenant.
     * @param lastModifiedTs lastModifiedTs.
     * @param sourceIp sourceIp.
     * @return
     */
    public static DumpRequest create(String dataId, String group, String tenant, long lastModifiedTs, String sourceIp) {
        DumpRequest dumpRequest = new DumpRequest();
        dumpRequest.dataId = dataId;
        dumpRequest.group = group;
        dumpRequest.tenant = tenant;
        dumpRequest.lastModifiedTs = lastModifiedTs;
        dumpRequest.sourceIp = sourceIp;
        return dumpRequest;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy