com.northernwall.hadrian.config.Const Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Hadrian Show documentation
Show all versions of Hadrian Show documentation
Hadrian is a DevOps UI, Inventory, and Auditing system that plugs into other tools to execute actions.
/*
* Copyright 2015 Richard Thurston.
*
* 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.northernwall.hadrian.config;
import com.squareup.okhttp.MediaType;
public class Const {
public static final String STATUS_NO = "-";
public static final String STATUS_INFO = "info";
public static final String STATUS_WIP = "wip";
public static final String STATUS_ERROR = "error";
public static final String HTTP = "http://";
public static final String HTTPS = "https://";
public static final String HTTP_GET = "GET";
public static final String HTTP_POST = "POST";
public static final String HTTP_PUT = "PUT";
public static final String HTTP_DELETE = "DELETE";
public static final String COOKIE_SESSION = "session";
public static final String COOKIE_PORTAL_NAME = "portalname";
public static final int COOKIE_EXPRIY = 24*60*60*1000;
public static final String HOST = "{host}";
public static final String END_POINT = "{endPoint}";
public static final String NO_CHANGE = "[No Change]";
public static final String SERVICE_TYPE_SERVICE = "Service";
public static final String SERVICE_TYPE_SHARED_LIBRARY = "Shared Library";
public static final String ATTR_SESSION = "session";
public static final String ATTR_USER = "user";
public static final String TEXT = "text/plain; charset=utf-8";
public static final String HTML = "text/html; charset=utf-8";
public static final String JSON = "application/json; charset=utf-8";
public static final MediaType JSON_MEDIA_TYPE = MediaType.parse(JSON);
public static final String MAVEN_SNAPSHOT = "SNAPSHOT";
public static final String GIT_UI_URL = "gitUiUrl";
public static final String GIT_UI_URL_DEFAULT = "http://127.0.0.1/";
public static final String GIT_PATH_URL = "gitPathUrl";
public static final String GIT_PATH_PATTERN_GROUP = "{group}";
public static final String GIT_PATH_PATTERN_PROJECT = "{project}";
public static final String GIT_PATH_URL_DETAULT = "[email protected]:"+GIT_PATH_PATTERN_GROUP+"/"+GIT_PATH_PATTERN_PROJECT+".git";
//Properties file constants
public static final String PROPERTIES_FILENAME = "hadrian.properties";
public static final String LOGBACK_CONFIG = "logback.config";
public static final String LOGBACK_FILENAME = "logback.filename";
public static final String LOGBACK_FILENAME_DEFAULT = "logback.xml";
public static final String JETTY_PORT = "jetty.port";
public static final int JETTY_PORT_DEFAULT = 9090;
public static final String JETTY_IDLE_TIMEOUT = "jetty.idleTimeout";
public static final int JETTY_IDLE_TIMEOUT_DEFAULT = 5000;
public static final String JETTY_ACCEPT_QUEUE_SIZE = "jetty.acceptQueueSize";
public static final int JETTY_ACCEPT_QUEUE_SIZE_DEFAULT = 100;
public static final String SERVICE_BUILD_URL = "serviceBuild.url";
public static final String SERVICE_BUILD_USERNAME = "serviceBuild.username";
public static final String SERVICE_BUILD_PASSWORD = "serviceBuild.password";
public static final String HOST_DETAILS_HELPER_FACTORY_CLASS_NAME = "hostDetailsHelper.factoryClassName";
public static final String HOST_DETAILS_HELPER_FACTORY_CLASS_NAME_DEFAULT = "com.northernwall.hadrian.details.simple.SimpleHostDetailsHelperFactory";
public static final String HOST_DETAILS_URL = "host.detailsUrl";
public static final String HOST_DETAILS_ATTRIBUTES = "host.detailsAttrs";
public static final String VIP_DETAILS_HELPER_FACTORY_CLASS_NAME = "vipDetailsHelper.factoryClassName";
public static final String VIP_DETAILS_HELPER_FACTORY_CLASS_NAME_DEFAULT = "com.northernwall.hadrian.details.simple.SimpleVipDetailsHelperFactory";
public static final String VIP_DETAILS_URL = "vipDetailsHelper.vipDetailsUrl";
public static final String VIP_POOL_DETAILS_URL = "vipDetailsHelper.poolDetailsUrl";
public static final String DOCUMENT_TOKENS = "document.tokens";
public static final String EMAIL_SMTP_HOSTNAME = "email.smtp.hostname";
public static final String EMAIL_SMTP_POST = "email.smtp.port";
public static final int EMAIL_SMTP_POST_DEFAULT = 25; //465;
public static final String EMAIL_SMTP_SSL = "email.smtp.ssl";
public static final boolean EMAIL_SMTP_SSL_DEFAULT = false;
public static final String EMAIL_SMTP_USERNAME = "email.smtp.username";
public static final String EMAIL_SMTP_PASSWORD = "email.smtp.password";
public static final String EMAIL_TO= "email.emailTo";
public static final String EMAIL_FROM = "email.emailFrom";
public static final String MESSAGE_PROCESSORS = "messageProcessors";
public static final String MESSAGE_PROCESSORS_DEFAULT = "com.northernwall.hadrian.messaging.email.EmailMessageProcessor";
public static final String MODULE_ARTIFACT_HELPER_FACTORY_CLASS_NAME = "module.artifact.FactoryClassName";
public static final String MODULE_ARTIFACT_HELPER_FACTORY_CLASS_NAME_DEFAULT = "com.northernwall.hadrian.module.maven.MavenHelperFactory";
public static final String MODULE_CONFIG_HELPER_FACTORY_CLASS_NAME = "module.config.FactoryClassName";
public static final String MAVEN_MAX_VERSIONS = "maven.maxVersions";
public static final int MAVEN_MAX_VERSIONS_DEFAULT = 15;
public static final String MAVEN_URL = "maven.http.url";
public static final String MAVEN_URL_DEFAULT = "http://127.0.0.1/mvnrepo/internal/";
public static final String MAVEN_USERNAME = "maven.http.username";
public static final String MAVEN_USERNAME_DEFAULT = "-";
public static final String MAVEN_PASSWORD = "maven.http.password";
public static final String MAVEN_PASSWORD_DEFAULT = "-";
public static final String DATA_ACCESS_FACTORY_CLASS_NAME = "dataAccess.factoryClassName";
public static final String DATA_ACCESS_FACTORY_CLASS_NAME_DEFAULT = "com.northernwall.hadrian.db.inMemory.InMemoryDataAccessFactory";
public static final String CASS_NODES = "dataAccess.cassandra.nodes";
public static final String CASS_NODES_DEFAULT = "127.0.0.1";
public static final String CASS_DATA_CENTER = "dataAccess.cassandra.dataCenter";
public static final String CASS_USERNAME = "dataAccess.cassandra.username";
public static final String CASS_PASSWORD = "dataAccess.cassandra.password";
public static final String CASS_CREATE_KEY_SPACE = "dataAccess.cassandra.createKeyspace";
public static final boolean CASS_CREATE_KEY_SPACE_DEFAULT = true;
public static final String CASS_KEY_SPACE = "dataAccess.cassandra.keyspace";
public static final String CASS_KEY_SPACE_DEFAULT = "hadrian";
public static final String CASS_REPLICATION_FACTOR = "dataAccess.cassandra.replicationFactor";
public static final int CASS_REPLICATION_FACTOR_DEFAULT = 1;
public static final String CASS_AUDIT_TTL_DAYS = "dataAccess.cassandra.auditTtlDays";
public static final int CASS_AUDIT_TTL_DAYS_DEFAULT = 732;
public static final String CASS_STATUS_TTL_DAYS = "dataAccess.cassandra.auditTtlDays";
public static final int CASS_STATUS_TTL_DAYS_DEFAULT = 2;
public static final String IN_MEMORY_DATA_FILE_NAME = "dataAccess.inMemory.dataFileName";
public static final String IN_MEMORY_DATA_FILE_NAME_DEFAULT = "data.json";
public static final String ACCESS_HANDLER_FACTORY_CLASS_NAME = "accessHandler.factoryClassName";
public static final String ACCESS_HANDLER_FACTORY_CLASS_NAME_DEFAULT = "com.northernwall.hadrian.access.simple.SimpleAccessHandlerFactory";
public static final String ACCESS_HELPER_FACTORY_CLASS_NAME = "accessHelper.factoryClassName";
public static final String ACCESS_HELPER_FACTORY_CLASS_NAME_DEFAULT = "com.northernwall.hadrian.access.simple.SimpleAccessHelperFactory";
public static final String LEADER_CLASS_NAME = "leader.className";
public static final String LEADER_CLASS_NAME_DEFAULT = "com.northernwall.hadrian.schedule.SimpleLeader";
public static final String CONFIG_MAVEN_GROUP_ID = "config.mavenGroupId";
public static final String CONFIG_MAVEN_GROUP_ID_DEFAULT = "";
public static final String CONFIG_VERSION_URL = "config.versionUrl";
public static final String CONFIG_VERSION_URL_DEFAULT = HOST+".mydomain.com:9090/version";
public static final String CONFIG_AVAILABILITY_URL = "config.availabilityUrl";
public static final String CONFIG_AVAILABILITY_URL_DEFAULT = HOST+".mydomain.com:9090/availability";
public static final String CONFIG_SMOKE_TEST_URL = "config.smokeTestUrl";
public static final String CONFIG_SMOKE_TEST_URL_DEFAULT = "service.mydomain.com:9090/smokeTest?endPoint="+END_POINT;
public static final String CONFIG_DEPLOYMENT_FOLDER = "config.deploymentFolder";
public static final String CONFIG_DEPLOYMENT_FOLDER_DEFAULT = "/home/app";
public static final String CONFIG_DATA_FOLDER = "config.dataFolder";
public static final String CONFIG_DATA_FOLDER_DEFAULT = "/var/app/data";
public static final String CONFIG_LOGS_FOLDER = "config.logsFolder";
public static final String CONFIG_LOGS_FOLDER_DEFAULT = "/var/app/logs";
public static final String CONFIG_SECURITY_GROUP_NAME = "config.securityGroupName";
public static final String CONFIG_SECURITY_GROUP_NAME_DEFAULT = "Security Group";
public static final String CONFIG_MIN_CPU = "config.minCpu";
public static final int CONFIG_MIN_CPU_DEFAULT = 2;
public static final String CONFIG_MAX_CPU = "config.maxCpu";
public static final int CONFIG_MAX_CPU_DEFAULT = 4;
public static final String CONFIG_MIN_MEMORY = "config.minMemory";
public static final int CONFIG_MIN_MEMORY_DEFAULT = 2;
public static final String CONFIG_MAX_MEMORY = "config.maxMemory";
public static final int CONFIG_MAX_MEMORY_DEFAULT = 32;
public static final String CONFIG_MIN_STORAGE = "config.minStorage";
public static final int CONFIG_MIN_STORAGE_DEFAULT = 25;
public static final String CONFIG_MAX_STORAGE = "config.maxStorage";
public static final int CONFIG_MAX_STORAGE_DEFAULT = 100;
public static final String CONFIG_HOST_SPECIAL_INSTRUCTIONS = "config.hostSpecialInstructions";
public static final String CONFIG_HOST_SPECIAL_INSTRUCTIONS_DEFAULT = "If special instructions are provided then this host provisioning request will be reviewed and processed manually.";
public static final String CONFIG_HOST_SPECIAL_INSTRUCTIONS_TRUE_SLA = "config.hostSpecialInstructionsTrueSla";
public static final String CONFIG_HOST_SPECIAL_INSTRUCTIONS_TRUE_SLA_DEFAULT = "2 days";
public static final String CONFIG_HOST_SPECIAL_INSTRUCTIONS_FALSE_SLA = "config.hostSpecialInstructionsFalseSla";
public static final String CONFIG_HOST_SPECIAL_INSTRUCTIONS_FALSE_SLA_DEFAULT = "1 hour";
public static final String CONFIG_ENABLE_HOST_PROVISIONING = "config.enableHostProvisioning";
public static final boolean CONFIG_ENABLE_HOST_PROVISIONING_DEFAULT = false;
public static final String CONFIG_ENABLE_HOST_REBOOT = "config.enableHostReboot";
public static final boolean CONFIG_ENABLE_HOST_REBOOT_DEFAULT = false;
public static final String CONFIG_ENABLE_VIP_PROVISIONING = "config.enableVipProvisioning";
public static final boolean CONFIG_ENABLE_VIP_PROVISIONING_DEFAULT = false;
public static final String CONFIG_ENABLE_VIP_MIGRATION = "config.enableVipMigration";
public static final boolean CONFIG_ENABLE_VIP_MIGRATION_DEFAULT = false;
public static final String CONFIG_DATA_CENTERS = "config.dataCenters";
public static final String CONFIG_DATA_CENTERS_DEFAULT = "dc";
public static final String CONFIG_ENVIRONMENTS = "config.environments";
public static final String CONFIG_ENVIRONMENTS_DEFAULT = "[{\"name\":\"Prod\",\"pattern\":\"{dc}-prd-{abbr}-\",\"allowSnapshots\":false,\"warning\":\"Please be aware that your change will affect Production.\",\"description\":\"Production systems\"},{\"name\":\"CIE\",\"pattern\":\"{dc}-cie-{abbr}-\",\"description\":\"Customer Integration Environment\"},{\"name\":\"Sandbox\",\"pattern\":\"{dc}-tst-{abbr}-\",\"description\":\"Manual testing and system integration\"},{\"name\":\"Reg\",\"pattern\":\"{dc}-tst-{abbr}reg-\",\"allowUrl\":true,\"description\":\"Automated regression testing\"}]";
public static final String CONFIG_ENVIRONMENTS_DC = "{dc}";
public static final String CONFIG_ENVIRONMENTS_ABBR = "{abbr}";
public static final String CONFIG_PLATFORMS = "config.platforms";
public static final String CONFIG_PLATFORMS_DEFAULT = "Java7, Java8";
public static final String CONFIG_PROTOCOL_MODES = "config.protocolModes";
public static final String CONFIG_PROTOCOL_MODES_DEFAULT = "[{\"name\":\"HTTP\",\"code\":\"HTTP\",\"modifiers\":[],\"outbound\":[{\"name\":\"HTTP\",\"code\":\"HTTP\",\"modifiers\":[]}]},{\"name\":\"HTTPS\",\"code\":\"HTTPS\",\"modifiers\":[{\"name\":\"Redirect HTTP to HTTPS\",\"code\":\"Redirect\"},{\"name\":\"Mutual Authentication\",\"code\":\"MutualAuth\"}],\"outbound\":[{\"name\":\"HTTP\",\"code\":\"HTTP\",\"modifiers\":[]}]},{\"name\":\"HTTP and HTTPS\",\"code\":\"HTTP+HTTPS\",\"modifiers\":[{\"name\":\"Mutual Authentication\",\"code\":\"MutualAuth\"}],\"outbound\":[{\"name\":\"HTTP\",\"code\":\"HTTP\",\"modifiers\":[]}]},{\"name\":\"TCP\",\"code\":\"TCP\",\"modifiers\":[],\"outbound\":[{\"name\":\"TCP\",\"code\":\"TCP\",\"modifiers\":[{\"name\":\"Availability Check via HTTP\",\"code\":\"HttpCheck\",\"httpCheckPortRequired\":true}]}],\"vipPortRequired\":true}]";
public static final String CONFIG_PRIORITY_MODES = "config.priorityModes";
public static final String CONFIG_PRIORITY_MODES_DEFAULT = "Regional DCs, All DCs, Local DC";
public static final String CONFIG_DOMAINS = "config.domains";
public static final String CONFIG_DOMAINS_DEFAULT = "northernwall.com";
public static final String CONFIG_ARTIFACT_TYPES = "config.artifactTypes";
public static final String CONFIG_ARTIFACT_TYPES_DEFAULT = "jar, war, targz";
public static final String CONFIG_SCOPES = "config.scopes";
public static final String CONFIG_SCOPES_DEFAULT = "Not in scope, In scope";
public static final String CONFIG_FOLDER_WHITE_LIST = "config.folderWhiteList";
public static final String CHECK_RESOLVE_HOSTNAME = "check.resolveHostname";
public static final boolean CHECK_RESOLVE_HOSTNAME_DEFAULT = true;
public static final String CHECK_HOSTNAME_PATTERN = "check.hostnamePattern";
public static final String MOTD_SHOW = "motd.show";
public static final String MOTD_TEXT = "motd.text";
private Const() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy