com.netflix.nfsidecar.config.CommonConfig Maven / Gradle / Ivy
/**
* Copyright 2017 Netflix, Inc.
*
* 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.netflix.nfsidecar.config;
import java.util.List;
import com.netflix.archaius.api.annotations.Configuration;
import com.netflix.archaius.api.annotations.DefaultValue;
import com.netflix.archaius.api.annotations.PropertyName;
@Configuration(prefix = "dbsidecar.common")
public interface CommonConfig {
/**
* @return Get the Region name
*/
@DefaultValue("")
@PropertyName(name = "region")
public String getRegion();
@DefaultValue("")
@PropertyName(name = "rack")
public String getRack();
@PropertyName(name = "zones.available")
public List getRacks();
/**
* Get the security group associated with nodes in this cluster
*/
@PropertyName(name = "acl.groupname")
public String getACLGroupName();
/*****************************************************************/
/**
* Get the peer-to-peer port used by Dynomite to communicate with other
* Dynomite nodes.
*
* @return the peer-to-peer port used for intra-cluster communication
*/
@DefaultValue("8101") //TODO: For a common default value we probably have to result to defined FP
public int getStoragePeerPort();
@DefaultValue("false")
@PropertyName(name = "dyno.backup.snapshot.enabled") //TODO: For a common default value we probably have to result to defined FP
public boolean isBackupEnabled();
@DefaultValue("false")
@PropertyName(name = "dyno.backup.restore.enabled") //TODO: For a common default value we probably have to result to defined FP
public boolean isRestoreEnabled();
@DefaultValue("day")
@PropertyName(name = "dyno.backup.schedule") //TODO: For a common default value we probably have to result to defined FP
public String getBackupSchedule();
@DefaultValue("12")
@PropertyName(name = "dyno.backup.hour") //TODO: For a common default value we probably have to result to defined FP
public int getBackupHour();
@DefaultValue("20101010")
@PropertyName(name = "dyno.backup.restore.date")
public String getRestoreDate();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy