com.jelastic.api.common.Constants Maven / Gradle / Ivy
The newest version!
/*Server class MD5: 7405fbcc8490cc67bf2d4877984cd2e3*/
package com.jelastic.api.common;
import java.util.Arrays;
import java.util.List;
/**
* @name Jelastic API Client
* @version 8.11.2
* @copyright Jelastic, Inc.
*/
public interface Constants {
String KEY_NODE_PARAMS_PATTERN = "{0}_NODE_PARAMS";
String HCORE_CONTEXT_PATH = "/1.0";
String KEY_OPERATE_NODE_TRIGGER_PATTERN = "{0}_OPERATE_NODE_TRIGGER";
String PARAMS_SEPARATOR = ";";
String THREE_DOTS = "...";
String COMMA_SEPARATOR = ",";
String DOT_SEPARATOR = ".";
String EMPTY_PARAMETER_VALUE = "EMPTY_PARAMETER_VALUE";
String ASTERISK = "*";
String SPACE_SEPARATOR = " ";
String ASSIGN = "=";
String HYPHEN_SEPARATOR = "-";
String QUESTION_MARK = "?";
String QUESTION_MARK_QUOTED = "\\?";
String QUESTION_MARK_ENCODED = "%3F";
String AND_MARK = "&";
String AND_MARK_ENCODED = "%26";
String UNDERLINE_SEPARATOR = "_";
String SINGLE_QUOTE = "'";
String DOUBLE_QUOTES = "\"";
String PATH_SEPARATOR = "/";
String SEMICOLON_SEPARATOR = ";";
String COLON_SEPARATOR = ":";
String PROTOCOL_SEPARATOR = "://";
String UNDERSCORE = "_";
String PERCENT = "%";
String EXCLAMATION = "!";
String ROLE = "role";
String APPID = "appid";
String RESOURCES_APPID = "resources";
Integer SERVER_PORT = 8080;
String SESSION = "session";
String TARGET_APPID = "targetAppid";
String ENV_NAME = "envName";
String DOMAIN = "domain";
String APPLICATION_RIGHT = "applicationRight";
String NEW_LINE_CHAR = "\n";
String TAB_CHAR = "\t";
String CONTEXT_ROOT = "ROOT";
String CORE_IP_ADDRESS_PROP = "core.host.ip.address";
String HTTP_PROTOCOL = "http";
String HTTPS_PROTOCOL = "https";
String REST_API_PROTOCOL = "rest";
String ENDPOINT_RDP_NAME = "RDP";
Integer ENDPOINT_RDP_PORT = 3389;
String ENDPOINT_RDP_PROTOCOL = "TCP";
String ENDPOINT_DEPLOY_NAME = "DEPLOY";
Integer ENDPOINT_DEPLOY_PORT = 8172;
String ENDPOINT_DEPLOY_PROTOCOL = "TCP";
String WINDOWS_ADMINISTARTOR = "Administrator";
String LINUX_ADMINISTARTOR = "root";
String WINDOWS_HOSTNAME_PREFIX = "CT";
String ENDPOINT_BUSY_PUBLIC_PORTS = "endpoint.ports";
String ANONYMOUS_LOGIN = "__GUEST__";
String GIT_DEFAULT_USER = "git";
String GIT_DEFAULT_BRANCH = "master";
String UID_SEPARATOR = "x";
String EMPTY_STRING = "";
String DEFAULT_SYSTEM_APPID = "1dd8d191d38fff45e62564fcf67fdcd6";
String PLATFORM_MAINTENANCE_PREFFIX = "portal.";
String PLATFORM_PREFFIX = "app.";
String TARIFF_PLAN_TYPE_DEFAULT = "default";
long DISK_MEGABYTE_PER_CAPACITY = 1024l;
String SIGNATURE_PREFFIX = "lds:";
String RESELLER_CACHE_ADMIN_LOCK_KEY = "reseller_admin_key";
String RESELLER_USER_LOCK_KEY = "reseller_user_key";
String RESELLER_OWNER_UID_LOCK_KEY = "reseller_owner_uid_key";
String RESELLER_CACHE_APPID_LOCK_KEY = "reseller_appid_key";
Integer RESELLER_CACHE_LIVE_TIME = 2 * 60 * 60;
int CACHE_LOCK_TIMEOUT = 60;
String RESELLER_HOSTER_KEY = "hoster";
String CONTAINER_OPERATION_LOCK_KEY = "{0}_ct_lock";
String FILE_FILTER_FULL_PATTERN = ".*";
String FILE_RW_PERMISSIONS = "rw";
String FILE_READ_ONLY_PERMISSIONS = "r";
String FILE_RWD_PERMISSIONS = "rwd";
String GET_STATUS_LOCK_KEY = "status_lock_key";
int FAVORITES_MAX_FILE_SIZE = 1024 * 1024;
String FAVORITES_CONFIG_FOLDER = "/etc/jelastic/";
String FAVORITES_READ_COMMAND = "find " + FAVORITES_CONFIG_FOLDER + " -type f -regex '" + FAVORITES_CONFIG_FOLDER + "fav\\(o\\|ou\\)rites.conf' -size -" + FAVORITES_MAX_FILE_SIZE + "c -exec cat {} \\; -quit";
String FAVORITES_CONFIG_DIRECTORIES_SECTION = "directories";
String FAVORITES_CONFIG_FILES_SECTION = "files";
String ALPINE_LINUX_NAME = "alpine";
String UBUNTU_OS = "ubuntu";
int CONTAINER_OPERATION_LOCK_EXPIRATION = 10 * 60;
int CONTAINER_OPERATION_TRY_TO_LOCK_TIMEOUT = 20 * 60;
long ONE_DAY_IN_MS = 1000 * 60 * 60 * 24;
long ONE_MINUTE_IN_MS = 1000 * 60;
int CACHE_MAX_KEY_EXPIRATION_TIME = 2592000;
String HARDNODE_INSTALLATION_UID_INITIATOR = "hardnode.installation.uid.initiator";
String KEY = "baombKmmhlmBIsGokIeTEaXmFVuLNhIGsvkPGsKcLaHMvvwXfG";
String BILLING_SOURCE = "BILL";
String JELASTIC_SOURCE = "JEL";
String STATISTIC_SOURCE = "STAT";
String JELPOOL_SOURCE = "JEL-POOL";
long MAX_REQUEST_NUMBER = 100;
String CONTAINER_DESCRIPTION_JELASTIC = "jelastic";
String CONTAINER_DESCRIPTION_INFRA = "infra";
String EXP_IP_DETACH = "DETACH_EXT";
String CHECK_SUM_PRIVATE_KEY = "125xderEdS45Sizz#$55dd";
int GROUP_OPERATION_DELAY_DEFAULT = 5 * 60;
String ENV_PARAMS_SEPARATOR = ",";
String DOCKER_TAG_ENGINE_SEPARATOR = "-";
String PRIVATE_KEY_HEADERS_REGEXP = "[\n]?-----(?:BEGIN|END)(?:[ ]+RSA)?[ ]+PRIVATE[ ]+KEY-----[\n]?";
String WHITE_SPACE_REGEX = " ([\n])";
String ID = "id";
String JELASTIC_PACKAGE_SUFFIX = "conf-jelastic";
String VERSION_REGEXP = "\\d+(\\.\\d+)+";
String FILE_URI_SCHEMA_PREFIX = "file://";
String CONFIGURATION_SERVICE_URL = "configuration.service.url";
String CONFIGURATION_SERVICE_URL_SEPARATOR = ";";
int WAITING_MASTER_NODE_TIMEOUT_IN_MINUTES = 15;
String MASTER_ID_ENV_VAR = "MASTER_ID";
String MASTER_HOST_ENV_VAR = "MASTER_HOST";
String MASTER_IP_ENV_VAR = "MASTER_IP";
String SSL_HEADER = "X-Forwarded-Proto";
String DEFAULT_HA_NETWORK = "10.0.0.0/27";
String CACHE_FIREWALL_LABEL = "Allow {0} ({1,number,#})";
String BUILD_PROJECT_ATTR = "deployment.build_project.attr";
String PROJECT_REPOSITORY_ATTR = "deployment.project_repository.attr";
String PROJECT_ATTR = "cmp.project";
String ACTIONKEY_PARAM_NAME = "actionkey";
List FIREWALL_NOT_SUPPORTED_NODE_TYPES = Arrays.asList("haproxy", "apache-lb");
String OS_TEMPLATE_NAME_PREFIX = "os-";
String EMAIL_AT_SIGN = "@";
String FAILED_CLONE_EID = "CLONING_FAILED";
String PARAMS = "params";
String ARGS = "args";
String ADD_HD_NODE_METHODS = "[" + "\"administration.cluster.AddHardWareNodeMessage\"," + "\"administration.cluster.EditHdNode\"," + "\"administration.cluster.GetHdNodes\"," + "\"administration.cluster.GetLastHardWareNodeMessage\"," + "\"administration.cluster.L2Update\"," + "\"administration.host.UpdateHostFirewall\"," + "\"administration.host.CheckHostConnection\"," + "\"administration.cluster.GetEnvInfo\"," + "\"administration.virtualnetwork.AddVirtualNetwork\"," + "\"administration.virtualnetwork.ApplyVirtualNetworks\"" + "]";
String HARDNODE_ADD_COMMAND_TOKEN_PLACEHOLDER = "";
String HARDNODE_ADD_COMMAND_DOMAIN_PLACEHOLDER = "";
String HARDNODE_ADD_COMMAND_HARD_NODE_GROUP_PLACEHOLDER = "";
String HARDNODE_ADD_COMMAND_TOKEN = "hardnode.add.command.token.uid{0}";
String HARDNODE_ADD_COMMAND_METHODS = "[\"administration.cluster.AddHdNode\", \"administration.cluster.GetHdNodes\", \"administration.cluster.GetRegions\"]";
int APPID_LENGTH = 32;
String DOCKER_HOST_PREFIX = "tcp://";
int DOCKER_HOST_PORT = 5555;
String TRACKED_ACTION_ID_ATTR = "tracked.action.id.attr";
String CLEAR_HOSTS_MAP_CACHE_URI = ":83/jrouter/flush_cache";
String CARTRIDGE_DEFAULT_CONFIG = "{\"userName\":\"root\",\"password\":\"paSSw0rd\",\"useRsaKey\":false,\"osTemplate\":\".centos-jelastic-6-x86_64\",\"osConfigTemplate\":\"jelastic\",\"emailTemplate\":\"cartridge_node_added\",\"packages\":[\"cartridge-conf-jelastic\"]}";
String ACTION_ENV_ROLLBACK_CONTAINER_BY_ID = "ControlService.RollbackContainerById";
String UPGRADE_TASK_ID = "JE-000";
String CLONE_ATTRIBUTE_MARK = "is_env_cloning";
String IP_MANAGE_LOCK_KEY = "IP_MANAGE_LOCK_KEY";
int IP_MANAGE_LOCK_LEASE = 30;
String APPSTORE_APPID = "appstore";
String CONSOLE_WRITE_LOG = "console/WriteLog";
String UID = "uid";
String IDS = "ids";
String COMMA_OR_SEMICOLON_SEPARATOR = Constants.PARAMS_SEPARATOR + "|" + Constants.COMMA_SEPARATOR;
String NONE = "none";
String NULL = "null";
String YES = "yes";
String NO = "no";
String SLASH = "/";
String MASKED_STRING = "********";
String LEFT_BRACER = "{";
String ADDRESS_ALREADY_IN_USE = "Address already in use";
String IP_ADDRESS_IS_ALREADY_IN_USE = "IP address is already in use";
String ACCOUNT_APPID_PREFIX = "account:";
String SUBSCRIPTION_ID = "subscriptionId";
String SUBSCRIPTION_ITEM_ID = "subscriptionItemId";
String SUBSCRIPTION_ITEM_RESOURCE_ID = "subscriptionItemResourceId";
String MARKETPLACE_INSTALLATION_ID = "installationId";
String SUBSCRIPTION_SERVICE_PLAN_ID = "servicePlanId";
String IS_LOCAL = "isLocal";
String POLICIES = "policies";
String ENVIRONMENT_POLICIES = "environmentPolicies";
String CACHE_SYSTEM_TEST_KEY = "CACHE_SYSTEM_TEST_KEY";
String AUTO_HORIZONTAL_SCALING = "autoHorizontalScaling";
String LINE_SEPARATOR_PROPERTY_NAME = "line.separator";
String[] JAVADOC_TAGS = new String[] { "@author", "@version", "@param", "@return", "@exception", "@see", "@since", "@serial", "@deprecated", "@throws", "@serialField", "@serialData", "@link", "@descr" };
String DISABLED = "DISABLED";
String ACTIVATION_KEY = "activationKey";
String ACCESSIBLE_REGIONS = "collaboration.regions.accessible";
int SSH_KEY_TITLE_MAX_LENGTH = 255;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy