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
Modifier and TypeFieldDescriptionstatic String
static String
static String
static String[]
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String[]
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
static String
static String
static String
Formats a path object using a base root.static String
formatAsPercent(Double value)
static String
generatedToken(String owner, String secret, String service)
static String
getAbsolutePath(String relative)
static String
getBenchmarkCompleted(BenchmarkImplementation implementation, Benchmark benchmark)
static String
static String
static String
static String
getBenchmarkImplementationComplete(BenchmarkImplementation implementation)
static String
getBenchmarkImplementationTestBegin(BenchmarkImplementation implementation)
static String
getBenchmarkImplementationWarmup(BenchmarkImplementation implementation)
static String
getBenchmarkImplementationWarmupComplete(BenchmarkImplementation implementation)
static String
getBenchmarkProgressUpdate(BenchmarkImplementation implementation, Benchmark benchmark, String progress)
static String
static String
getBlockNotConfigured(String block)
static String
static String
getCommandError(String command)
static String
static String
getDBIdentifier(String DB, String collection, String plugin)
static String
static String
static String
getDeployFailError(String service)
static String
getdeployInstanceError(String instance, Throwable throwable)
static String
static String
getDeserializePayloadException(String message, Class clazz)
static String
getEmptyKeyStore(String keystorePath)
static String
getErrorCreateDirectory(String target)
static String
getErrorInvalidConfigurable(Class clazz)
static String
static String
getFileLoadDefaults(String path, Class<?> clazz)
static String
getFileMissingError(String filename)
static String
getFileReadError(String file)
static String
getFileWriteError(String file)
static String
static String
static String
static String
static String
getGeneratingSecret(String name, String key)
static String
getGeneratingShared(String key, String path)
static String
static String
getHandlerMissing(String handlerName)
static String
static String
getIdentityNotConfigured(String name)
static String
getIllegalPathToConfigurable(Class clazz)
static String
getIllegalTemplateTokenCount(String token, int count)
static String
getInvalidQueryFormat(String query)
static String
getKeystorePrompt(KeyStoreReference store)
static String
getKeystoreTooManyEntries(String path)
static String
static String
getMissingEntity(String key)
static String
getMissingKeyStore(String shortNameMissing)
static String
getMissingRole(String role)
static String
getNodeFailedToAcknowledge(String target, String route)
static String
getNodeNotFound(String node)
static String
getNodeNotReachable(String target, String route)
static String
static String
getNoSuchResource(String name)
static String
getNoSuchValidator(String name)
static String
static String
static String
static String
static String
static String
getRemoteBlockNotConfigured(String remote, String block)
static String
getRequestTooLarge(int maxRequestBytes)
static String
static String
getSecurityDependencyMissing(String target, String identifier)
static String
getSemaphoreTimeout(int timeoutMS)
static String
getService(String config)
static String
getServiceTimeout(String target, String route, int timeout)
static String
static String
getStorageLoaderError(Class plugin, String database, String collection)
static String
static String
getSystemNotInitialized(String name)
static String
getTimeOutEcxeption(String target, int timeout)
static String
static String
getUnsupportedDeployment(String node)
static String
getValueAlreadyPresent(String key)
static String
getValueByPathContainsNull(String field, String[] fields)
static String
getWatcherFailed(String cause)
static String
static String
static String
static String
static String
replaceTags(String text, String[] tags)
Replaces tags in a logging message.static String
static String
testDirectory(String name)
static String
static String
static String
Converts a throwables stack trace element into text.static String
timestamp(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
-