Class CoreStrings
java.lang.Object
com.codingchili.core.configuration.CoreStrings
Store json keys and protocol headers so that they are easily maintained.
Extend this class in service implementations to add more constants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic Stringstatic Stringstatic String[]static Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic String[]static Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringstatic Stringstatic Stringstatic StringFormats a path object using a base root.static StringformatAsPercent(Double value)static StringgeneratedToken(String owner, String secret, String service)static StringgetAbsolutePath(String relative)static StringgetBenchmarkCompleted(BenchmarkImplementation implementation, Benchmark benchmark)static Stringstatic Stringstatic Stringstatic StringgetBenchmarkImplementationComplete(BenchmarkImplementation implementation)static StringgetBenchmarkImplementationTestBegin(BenchmarkImplementation implementation)static StringgetBenchmarkImplementationWarmup(BenchmarkImplementation implementation)static StringgetBenchmarkImplementationWarmupComplete(BenchmarkImplementation implementation)static StringgetBenchmarkProgressUpdate(BenchmarkImplementation implementation, Benchmark benchmark, String progress)static Stringstatic StringgetBlockNotConfigured(String block)static Stringstatic StringgetCommandError(String command)static Stringstatic StringgetDBIdentifier(String DB, String collection, String plugin)static Stringstatic Stringstatic StringgetDeployFailError(String service)static StringgetdeployInstanceError(String instance, Throwable throwable)static Stringstatic StringgetDeserializePayloadException(String message, Class clazz)static StringgetEmptyKeyStore(String keystorePath)static StringgetErrorCreateDirectory(String target)static StringgetErrorInvalidConfigurable(Class clazz)static Stringstatic StringgetFileLoadDefaults(String path, Class<?> clazz)static StringgetFileMissingError(String filename)static StringgetFileReadError(String file)static StringgetFileWriteError(String file)static Stringstatic Stringstatic Stringstatic Stringstatic StringgetGeneratingSecret(String name, String key)static StringgetGeneratingShared(String key, String path)static Stringstatic StringgetHandlerMissing(String handlerName)static Stringstatic StringgetIdentityNotConfigured(String name)static StringgetIllegalPathToConfigurable(Class clazz)static StringgetIllegalTemplateTokenCount(String token, int count)static StringgetInvalidQueryFormat(String query)static StringgetKeystorePrompt(KeyStoreReference store)static StringgetKeystoreTooManyEntries(String path)static Stringstatic StringgetMissingEntity(String key)static StringgetMissingKeyStore(String shortNameMissing)static StringgetMissingRole(String role)static StringgetNodeFailedToAcknowledge(String target, String route)static StringgetNodeNotFound(String node)static StringgetNodeNotReachable(String target, String route)static Stringstatic StringgetNoSuchResource(String name)static StringgetNoSuchValidator(String name)static Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic StringgetRemoteBlockNotConfigured(String remote, String block)static StringgetRequestTooLarge(int maxRequestBytes)static Stringstatic StringgetSecurityDependencyMissing(String target, String identifier)static StringgetSemaphoreTimeout(int timeoutMS)static StringgetService(String config)static StringgetServiceTimeout(String target, String route, int timeout)static Stringstatic StringgetStorageLoaderError(Class plugin, String database, String collection)static Stringstatic StringgetSystemNotInitialized(String name)static StringgetTimeOutEcxeption(String target, int timeout)static Stringstatic StringgetUnsupportedDeployment(String node)static StringgetValueAlreadyPresent(String key)static StringgetValueByPathContainsNull(String field, String[] fields)static StringgetWatcherFailed(String cause)static Stringstatic Stringstatic Stringstatic Stringstatic StringreplaceTags(String text, String[] tags)Replaces tags in a logging message.static Stringstatic StringtestDirectory(String name)static Stringstatic Stringstatic StringConverts a throwables stack trace element into text.static Stringtimestamp(long ms)
-
Field Details
-
VERSION
-
GITHUB
- See Also:
- Constant Field Values
-
AUTHOR
- See Also:
- Constant Field Values
-
PATH_LAUNCHER
- See Also:
- Constant Field Values
-
PATH_SECURITY
- See Also:
- Constant Field Values
-
PATH_SYSTEM
- See Also:
- Constant Field Values
-
PATH_STORAGE
- See Also:
- Constant Field Values
-
PATH_VALIDATOR
- See Also:
- Constant Field Values
-
DIR_ROOT
- See Also:
- Constant Field Values
-
DIR_CURRENT
- See Also:
- Constant Field Values
-
DIR_SEPARATOR
- See Also:
- Constant Field Values
-
DIR_CONFIG
- See Also:
- Constant Field Values
-
DIR_SYSTEM
- See Also:
- Constant Field Values
-
DIR_SERVICES
- See Also:
- Constant Field Values
-
EMPTY
- See Also:
- Constant Field Values
-
DIR_UP
- See Also:
- Constant Field Values
-
STORAGE_ARRAY
- See Also:
- Constant Field Values
-
DB_DIR
- See Also:
- Constant Field Values
-
WATCHER_COMPLETED
- See Also:
- Constant Field Values
-
WATCHER_PAUSED
- See Also:
- Constant Field Values
-
WATCHER_RESUMED
- See Also:
- Constant Field Values
-
EXT_JSON
- See Also:
- Constant Field Values
-
EXT_YAML
- See Also:
- Constant Field Values
-
EXT_YML
- See Also:
- Constant Field Values
-
EXT_KRYO
- See Also:
- Constant Field Values
-
EXT_HTML
- See Also:
- Constant Field Values
-
EXT_DB
- See Also:
- Constant Field Values
-
EXT_TXT
- See Also:
- Constant Field Values
-
ANY
- See Also:
- Constant Field Values
-
NODE_LOGGING
- See Also:
- Constant Field Values
-
LOCALHOST
- See Also:
- Constant Field Values
-
PROTOCOL_REAL_IP
- See Also:
- Constant Field Values
-
PROTOCOL_CONNECTION
- See Also:
- Constant Field Values
-
PROTOCOL_ROUTES
- See Also:
- Constant Field Values
-
PROTOCOL_STATUS
- See Also:
- Constant Field Values
-
PROTOCOL_ROUTE
- See Also:
- Constant Field Values
-
PROTOCOL_TARGET
- See Also:
- Constant Field Values
-
PROTOCOL_LOGGING
- See Also:
- Constant Field Values
-
PROTOCOL_DOCUMENTATION
- See Also:
- Constant Field Values
-
DEFAULT_KEYSTORE
- See Also:
- Constant Field Values
-
COMMAND_PREFIX
- See Also:
- Constant Field Values
-
GENERATE_SECRETS
- See Also:
- Constant Field Values
-
GENERATE_TOKENS
- See Also:
- Constant Field Values
-
GENERATE_PRESHARED
- See Also:
- Constant Field Values
-
GENERATE
- See Also:
- Constant Field Values
-
RECONFIGURE
- See Also:
- Constant Field Values
-
HELP
- See Also:
- Constant Field Values
-
BENCHMARK
- See Also:
- Constant Field Values
-
PARAM_ITERATIONS
- See Also:
- Constant Field Values
-
PARAM_HTML
-
PARAM_TEMPLATE
-
DEPLOY
- See Also:
- Constant Field Values
-
ID_TOKEN
- See Also:
- Constant Field Values
-
ID_NAME
- See Also:
- Constant Field Values
-
ID_FILE
- See Also:
- Constant Field Values
-
ID_NODE
- See Also:
- Constant Field Values
-
ID_DATA
- See Also:
- Constant Field Values
-
PROTOCOL_MESSAGE
- See Also:
- Constant Field Values
-
ID_VERSION
- See Also:
- Constant Field Values
-
ID_BYTES
- See Also:
- Constant Field Values
-
ID_PATH
- See Also:
- Constant Field Values
-
ID_MODIFIED
- See Also:
- Constant Field Values
-
ID_UPDATED
- See Also:
- Constant Field Values
-
ID_SIZE
- See Also:
- Constant Field Values
-
ID_DOMAIN
- See Also:
- Constant Field Values
-
ID_PING
- See Also:
- Constant Field Values
-
ID_BUFFER
- See Also:
- Constant Field Values
-
ID_TYPE
- See Also:
- Constant Field Values
-
ID_REMOTE
- See Also:
- Constant Field Values
-
ID_ATTRIBUTES
- See Also:
- Constant Field Values
-
ID_CONFIGURATION
- See Also:
- Constant Field Values
-
ID_RANGE
- See Also:
- Constant Field Values
-
ID_DEFAULT
- See Also:
- Constant Field Values
-
ID_IDENTITY
- See Also:
- Constant Field Values
-
ID_SYSTEM
- See Also:
- Constant Field Values
-
ID_TIME
- See Also:
- Constant Field Values
-
ID_KEY
- See Also:
- Constant Field Values
-
ID_PLUGIN
- See Also:
- Constant Field Values
-
ID_DB
- See Also:
- Constant Field Values
-
ID_COLLECTION
- See Also:
- Constant Field Values
-
ID_CLASS
- See Also:
- Constant Field Values
-
ID_CONTEXT
- See Also:
- Constant Field Values
-
ID_USERNAME
- See Also:
- Constant Field Values
-
ID_PASSWORD
- See Also:
- Constant Field Values
-
ID_REGISTERED
- See Also:
- Constant Field Values
-
ID_STATUS
- See Also:
- Constant Field Values
-
ID_COUNT
- See Also:
- Constant Field Values
-
ID_MESSAGE
- See Also:
- Constant Field Values
-
ID_QUERY
- See Also:
- Constant Field Values
-
ID_OPTIONS
- See Also:
- Constant Field Values
-
ID_HANDLER
- See Also:
- Constant Field Values
-
ID_UNDEFINED
- See Also:
- Constant Field Values
-
DEFAULT_DB
- See Also:
- Constant Field Values
-
LOG_APPLICATION
- See Also:
- Constant Field Values
-
LOG_AT
- See Also:
- Constant Field Values
-
LOG_EVENT
- See Also:
- Constant Field Values
-
LOG_SOURCE
- See Also:
- Constant Field Values
-
LOG_VERSION
- See Also:
- Constant Field Values
-
LOG_USER_AGENT
- See Also:
- Constant Field Values
-
LOG_AGENT
- See Also:
- Constant Field Values
-
LOG_CONTEXT
- See Also:
- Constant Field Values
-
LOG_TIME
- See Also:
- Constant Field Values
-
LOG_NODE
- See Also:
- Constant Field Values
-
LOG_HOST
- See Also:
- Constant Field Values
-
LOG_SECURITY
- See Also:
- Constant Field Values
-
LOG_SERVICE_START
- See Also:
- Constant Field Values
-
LOG_SERVICE_STOP
- See Also:
- Constant Field Values
-
LOG_SERVICE_FAIL
- See Also:
- Constant Field Values
-
LOG_LISTENER_STOP
- See Also:
- Constant Field Values
-
LOG_LISTENER_START
- See Also:
- Constant Field Values
-
LOG_LISTENER
- See Also:
- Constant Field Values
-
LOG_MESSAGE
- See Also:
- Constant Field Values
-
LOG_LEVEL
- See Also:
- Constant Field Values
-
LOG_VERTX
- See Also:
- Constant Field Values
-
LOG_METRICS
- See Also:
- Constant Field Values
-
LOG_STACKTRACE
- See Also:
- Constant Field Values
-
LOG_HANDLER_MISSING
- See Also:
- Constant Field Values
-
LOG_FILE_LOADED
- See Also:
- Constant Field Values
-
LOG_FILE_SAVED
- See Also:
- Constant Field Values
-
LOG_FILE_ERROR
- See Also:
- Constant Field Values
-
LOG_CONFIG_DEFAULTED
- See Also:
- Constant Field Values
-
LOG_CONFIGURATION_INVALID
- See Also:
- Constant Field Values
-
LOG_CACHE_CLEARED
- See Also:
- Constant Field Values
-
LOG_ERROR
- See Also:
- Constant Field Values
-
LOG_TIMER_CHANGE
- See Also:
- Constant Field Values
-
LOG_PREVIOUS
- See Also:
- Constant Field Values
-
LOG_NEW
- See Also:
- Constant Field Values
-
LOG_BENCHMARK
- See Also:
- Constant Field Values
-
LOG_NODE_TIMEOUT
- See Also:
- Constant Field Values
-
LOG_NODE_UNREACHABLE
- See Also:
- Constant Field Values
-
LOG_NODE_FAILURE
- See Also:
- Constant Field Values
-
LOG_VALUE_EXPIRED
- See Also:
- Constant Field Values
-
LOG_VALUE_EXPIRED_MISSING
- See Also:
- Constant Field Values
-
LOG_STORAGE_CLEARED
- See Also:
- Constant Field Values
-
LOG_STORAGE_COLLECTION
- See Also:
- Constant Field Values
-
LOG_STORAGE_DB
- See Also:
- Constant Field Values
-
LOG_STORAGE_WATCHER
- See Also:
- Constant Field Values
-
LOG_HIDDEN_TAGS
-
ERROR_TOKEN_FACTORY
- See Also:
- Constant Field Values
-
ERROR_NOT_CLUSTERED
- See Also:
- Constant Field Values
-
ERROR_NOT_AUTHORIZED
- See Also:
- Constant Field Values
-
ERROR_LAUNCHER_STARTUP
- See Also:
- Constant Field Values
-
LAUNCHER_SHUTDOWN_STARTED
- See Also:
- Constant Field Values
-
LAUNCHER_SHUTDOWN_COMPLETED
- See Also:
- Constant Field Values
-
ERROR_VALIDATION_FAILURE
- See Also:
- Constant Field Values
-
ERROR_CONFIGURATION_MISMATCH
- See Also:
- Constant Field Values
-
ERROR_ALREADY_INITIALIZED
- See Also:
- Constant Field Values
-
ERROR_STORAGE_EXCEPTION
- See Also:
- Constant Field Values
-
CONFIGURED_BLOCKS
- See Also:
- Constant Field Values
-
ERROR_PATCH_RELOADED
- See Also:
- Constant Field Values
-
BENCHMARK_CONSOLE_REPORT_COLUMNS
-
-
Constructor Details
-
CoreStrings
public CoreStrings()
-
-
Method Details
-
cannotDocumentBeforeUse
-
cannotSetModelBeforeUse
-
getMissingRole
-
getBindAddress
-
getLoopbackAddress
-
getRequestTooLarge
-
getParam
-
getHandlerMissing
-
getHandlerMissing
-
throwableToString
Converts a throwables stack trace element into text.- Parameters:
e- the throwable to convert.- Returns:
- a string of the throwables stack elements.
-
replaceTags
Replaces tags in a logging message.- Parameters:
text- the source texttags- the handler of the tag without enclosing brackets.- Returns:
- the source text with any matching tags removed.
-
remove
-
getDeployFailError
-
getdeployInstanceError
-
getFileReadError
-
getFileWriteError
-
getDBIdentifier
-
getFileMissingError
-
getDBPath
-
format
Formats a path object using a base root.- Parameters:
path- the path to be formattedroot- the relative root to remove from the path- Returns:
- a relative path string that is the same on all filesystems.
-
getRemoteBlockNotConfigured
-
getBlockNotConfigured
-
getNoServicesConfiguredForBlock
-
getUnsupportedDeployment
-
getUnableToDetermineKeystoreType
-
getNodeNotFound
-
getGeneratingSecret
-
getCommandError
-
generatedToken
-
getService
-
format
-
getStartupText
-
quote
-
testDirectory
-
getIllegalPathToConfigurable
-
testDirectory
-
testFile
-
testFile
-
getSystemNotInitialized
-
getIdentityNotConfigured
-
getStorageLoaderError
-
getErrorCreateDirectory
-
getErrorInvalidConfigurable
-
getFileLoadDefaults
-
getNoSuchResource
-
getStorageLoaderMissingArgument
-
getNothingToUpdateException
-
getNothingToRemoveException
-
getValueAlreadyPresent
-
getCommandAlreadyExistsException
-
getReconfigureDescription
-
getDeployDescription
-
getDescriptionMissing
-
getGenerateSecretsDescription
-
getGenerateTokensDescription
-
getGenerateAllDescription
-
getCommandExecutorHelpDescription
-
getBenchmarkDescription
-
getBenchmarkGroupStarted
-
getBenchmarkGroupCompleted
-
getBenchmarkImplementationWarmup
-
getBenchmarkImplementationWarmupComplete
public static String getBenchmarkImplementationWarmupComplete(BenchmarkImplementation implementation) -
getBenchmarkImplementationTestBegin
-
getBenchmarkImplementationComplete
-
getBenchmarkProgressUpdate
public static String getBenchmarkProgressUpdate(BenchmarkImplementation implementation, Benchmark benchmark, String progress) -
getBenchmarkCompleted
public static String getBenchmarkCompleted(BenchmarkImplementation implementation, Benchmark benchmark) -
getIllegalTemplateTokenCount
-
formatAsPercent
-
getMissingEntity
-
getMissingKeyStore
-
getEmptyKeyStore
-
getSecurityDependencyMissing
-
timestamp
-
getHashMismatchException
-
getWatcherFailed
-
getInvalidQueryFormat
-
getNoSuchValidator
-
getSemaphoreTimeout
-
getFileFriendlyDate
-
getAbsolutePath
-
currentPath
-
getDeserializePayloadException
-
getTimeOutEcxeption
-
getNodeNotReachable
-
getNodeFailedToAcknowledge
-
getServiceTimeout
-
getKeystorePrompt
-
getValueByPathContainsNull
-
getReflectionErrorInSerializer
-
getRestNotSupportedByWebsocketListener
-
getKeystoreTooManyEntries
-
pad
-
leftPad
-