|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.util.RTKey
public class RTKey
Container for runtime property keys
Nested Class Summary | |
---|---|
static class |
RTKey.Entry
Container for an RTKey entry |
static class |
RTKey.EntryReference
Represents a reference to another RTKey.Entry |
Field Summary | |
---|---|
static java.lang.String |
_DB_LOG_MISSING_COLUMNS
|
static java.lang.String |
ADMIN_MODE
|
static java.lang.String |
COMMAND_LINE_CONF
|
static java.lang.String |
CONFIG_FILE
|
static java.lang.String |
CONFIG_FILE_DIR
|
static java.lang.String |
CONFIG_URL
|
static java.lang.String |
CONSTANT_PREFIX
|
static java.lang.String |
CONTEXT_NAME
|
static java.lang.String |
CONTEXT_PATH
|
static java.lang.String |
DB_ALLOW_UPDATE_KEY_FIELDS
|
static java.lang.String |
DB_DATASOURCE_CLASS
|
static java.lang.String |
DB_DATASOURCE_MAX_ACTIVE
|
static java.lang.String |
DB_DATASOURCE_MAX_IDLE
|
static java.lang.String |
DB_DATASOURCE_MAX_WAIT
|
static java.lang.String |
DB_DBCONNECTION_POOL
|
static java.lang.String |
DB_HOST
|
static java.lang.String |
DB_IGNORE_COLUMN_ERROR_
|
static java.lang.String |
DB_INACTIVE_TIMEOUT
|
static java.lang.String |
DB_INCLUDE_LAST_UPDATE_ACCT
|
static java.lang.String |
DB_INCLUDE_LAST_UPDATE_USER
|
static java.lang.String |
DB_MYSQL_TBLEXIST_SEL_COUNT
|
static java.lang.String |
DB_NAME
|
static java.lang.String |
DB_PASS
|
static java.lang.String |
DB_PORT
|
static java.lang.String |
DB_PROVIDER
|
static java.lang.String |
DB_SHOW_CONNECTIONS
|
static java.lang.String |
DB_SHOW_SQL
|
static java.lang.String |
DB_TABLE_LOCKING
|
static java.lang.String |
DB_TABLE_NAME_PREFIX
|
static java.lang.String |
DB_TYPEINT_
|
static java.lang.String |
DB_TYPESIZE_
|
static java.lang.String |
DB_URL
|
static java.lang.String |
DB_URL_DB
|
static java.lang.String |
DB_USER
|
static java.lang.String |
DB_UTF8
|
static java.lang.String |
DEBUG
|
static java.lang.String |
DEBUG_MODE
|
static java.lang.String |
DEFAULT_DATEFORMAT
|
static java.lang.String |
DEFAULT_LOCALE
|
static java.lang.String |
DEFAULT_TIMEFORMAT
|
protected static RTProperties |
defaultProperties
|
static java.lang.String |
DNS_CACHE_TIMEOUT
|
protected static java.util.Map<java.lang.String,RTKey.Entry> |
globalEntryMap
|
static java.lang.String |
HOST_IP
|
static java.lang.String |
HOST_NAME
|
static java.lang.String |
HTTP_PROXY_HOST
|
static java.lang.String |
HTTP_PROXY_PORT
|
static java.lang.String |
HTTP_USER_AGENT
|
static java.lang.String |
INCLUDE
|
static java.lang.String |
INCLUDE_OPT
|
static java.lang.String |
IS_WEBAPP
|
java.lang.String |
keyName
|
static java.lang.String |
LOCALE
|
static java.lang.String |
LOCALE_DATEFORMAT
|
static java.lang.String |
LOCALE_TIMEFORMAT
|
static java.lang.String |
LOG
|
static java.lang.String |
LOG_DIR
|
static java.lang.String |
LOG_EMAIL_EXCEPTIONS
|
static java.lang.String |
LOG_EMAIL_FROM
|
static java.lang.String |
LOG_EMAIL_TO
|
static java.lang.String |
LOG_FILE
|
static java.lang.String |
LOG_FILE_ENABLE
|
static java.lang.String |
LOG_FILE_ROTATE_DELETE_AGE
|
static java.lang.String |
LOG_FILE_ROTATE_EXTN
|
static java.lang.String |
LOG_FILE_ROTATE_SIZE
|
static java.lang.String |
LOG_INCL_DATE
|
static java.lang.String |
LOG_INCL_STACKFRAME
|
static java.lang.String |
LOG_JAVA_LOGGER
|
static java.lang.String |
LOG_LEVEL
|
static java.lang.String |
LOG_LEVEL_HEADER
|
static java.lang.String |
LOG_NAME
|
static java.lang.String |
LOG_REDIRECT_LOG
|
static java.lang.String |
LOG_REMOTE_LOGGING
|
static java.lang.String |
LOG_SENDMAIL_CLASS
|
static java.lang.String |
MAIN_CLASS
|
static java.lang.String |
MAIN_COMMAND
|
static java.lang.String |
MAIN_JAR
|
static java.lang.String |
NAME
|
static java.lang.String |
NULL_VALUE
|
protected static RTKey.Entry |
NullEntry
|
static java.lang.String |
OS_SUBTYPE
|
static java.lang.String |
OS_TYPE
|
static java.lang.String |
OSTOOLS_MEMORY_CHECK_ENABLE
|
static java.lang.String |
OSTOOLS_MEMORY_TREND_WEIGHT
|
static java.lang.String |
OSTOOLS_MEMORY_USAGE_WARN
|
static java.lang.String |
PROCESS_ID
|
static java.lang.String |
RT_CONTEXT_NAME
|
static java.lang.String |
RT_CONTEXT_PATH
|
static java.lang.String |
RT_PID_FILE
|
static java.lang.String |
RT_QUIET
|
static java.lang.String |
RT_VERBOSE
|
protected static RTKey.Entry[] |
runtimeKeys
|
static java.lang.String |
ServerSockeThread_maximumClientThreadPoolSize
|
static java.lang.String |
SESSION_ACCOUNT
|
static java.lang.String |
SESSION_IPADDRESS
|
static java.lang.String |
SESSION_LOCALE
|
static java.lang.String |
SESSION_NAME
|
static java.lang.String |
SESSION_USER
|
static java.lang.String |
SMTP_DEBUG
|
static java.lang.String |
SMTP_ENABLE_SSL
|
static java.lang.String |
SMTP_ENABLE_TLS
|
static java.lang.String |
SMTP_IGNORED_EMAIL_FILE
|
static java.lang.String[] |
SMTP_PROPERTIES
|
static java.lang.String |
SMTP_SERVER_HOST
|
static java.lang.String |
SMTP_SERVER_PASSWORD
|
static java.lang.String |
SMTP_SERVER_PORT
|
static java.lang.String |
SMTP_SERVER_RETRY_COUNT
|
static java.lang.String |
SMTP_SERVER_SYSADMIN_EMAIL
|
static java.lang.String |
SMTP_SERVER_TIMEOUT_MS
|
static java.lang.String |
SMTP_SERVER_USER
|
static java.lang.String |
SMTP_SERVER_USER_EMAIL
|
static java.lang.String |
SMTP_THREAD_MODEL
|
static java.lang.String |
SMTP_THREAD_MODEL_SHOW
|
static java.lang.String |
TEST_MODE
|
static java.lang.String |
ThreadPool_CronTask_
|
static java.lang.String |
ThreadPool_DeviceEventUpdate_
|
static java.lang.String |
ThreadPool_EventRuleAction_
|
static java.lang.String |
ThreadPool_SendMail_
|
static java.lang.String |
URL_CONNECT_TIMEOUT
|
static java.lang.String |
URL_READ_TIMEOUT
|
static java.lang.String |
VERSION
|
static java.lang.String |
WEBAPP_FILE
|
Constructor Summary | |
---|---|
RTKey(java.lang.String key)
Constructor |
Method Summary | |
---|---|
static void |
addRuntimeEntries(RTKey.Entry[] dftEntry)
|
static void |
addRuntimeEntry(RTKey.Entry dftEntry)
Adds an entry ( RTKey.Entry ) to RTKey |
int |
compareTo(RTKey otherKey)
Compares two RTKeys lexicographically. |
boolean |
equals(java.lang.Object otherKey)
Returns true if the specified key name is equal to the current key name. |
static RTProperties |
getDefaultProperties()
Gets all the ddefault properties in RTKey represented
as an RTProperties instance |
static java.lang.Object |
getDefaultProperty(java.lang.String key,
java.lang.Object dft)
Gets the default property value associated with the specified key. |
java.lang.String |
getName()
Gets the name of the property |
protected static RTKey.Entry |
getRuntimeEntry(java.lang.String key)
Gets the entry associated with the specified key |
protected static java.util.Map<java.lang.String,RTKey.Entry> |
getRuntimeEntryMap()
Gets the Map of all entries in RTKey |
static java.util.Iterator<java.lang.String> |
getRuntimeKeyIterator()
Gets an iterator over all of the entries |
static boolean |
hasDefault(java.lang.String key)
Returns true if the specified default property key is defined |
int |
hashCode()
Returns a hash code for this instance |
boolean |
isBlank()
Returns true if this key name contains an empty String |
static boolean |
isBlank(RTKey key)
Returns true if the specified key is null, or contains an empty String |
static void |
main(java.lang.String[] argv)
Main entry point for testing/debugging |
static void |
printDefaults(java.io.PrintStream out)
Prints all the default values from RTKey and RTConfig
to the specified PrintStream . |
RTKey |
rtSuffix(RTKey rtSfx)
Apply the specified partial key as a suffix to the key name contained in this RTKey |
RTKey |
rtSuffix(java.lang.String stSfx)
Apply the specified partial key as a suffix to the key name contained in this RTKey |
static void |
setDefaultProperty(java.lang.String key,
java.lang.Object val)
Sets the default property value of the property associated with the specified key |
java.lang.String |
suffix(java.lang.String stSfx)
Apply the specified partial key as a suffix to the key name contained in this RTKey |
java.lang.String |
toString()
Gets the name of the property |
java.lang.String |
trim()
Gets the name of the property |
static RTKey |
valueOf(java.lang.String s)
Create an RTKey instance for the specified String value |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NULL_VALUE
public static final java.lang.String DEFAULT_LOCALE
public static final java.lang.String DEFAULT_DATEFORMAT
public static final java.lang.String DEFAULT_TIMEFORMAT
public static final java.lang.String SESSION_NAME
public static final java.lang.String SESSION_LOCALE
public static final java.lang.String SESSION_ACCOUNT
public static final java.lang.String SESSION_USER
public static final java.lang.String SESSION_IPADDRESS
public static final java.lang.String RT_QUIET
public static final java.lang.String RT_VERBOSE
public static final java.lang.String RT_PID_FILE
public static final java.lang.String RT_CONTEXT_NAME
public static final java.lang.String RT_CONTEXT_PATH
public static final java.lang.String LOCALE
public static final java.lang.String LOCALE_DATEFORMAT
public static final java.lang.String LOCALE_TIMEFORMAT
public static final java.lang.String CONFIG_FILE_DIR
public static final java.lang.String WEBAPP_FILE
public static final java.lang.String CONFIG_FILE
public static final java.lang.String COMMAND_LINE_CONF
public static final java.lang.String TEST_MODE
public static final java.lang.String DEBUG
public static final java.lang.String DEBUG_MODE
public static final java.lang.String ADMIN_MODE
public static final java.lang.String HTTP_USER_AGENT
public static final java.lang.String HTTP_PROXY_HOST
public static final java.lang.String HTTP_PROXY_PORT
public static final java.lang.String URL_CONNECT_TIMEOUT
public static final java.lang.String URL_READ_TIMEOUT
public static final java.lang.String DNS_CACHE_TIMEOUT
public static final java.lang.String SMTP_DEBUG
public static final java.lang.String SMTP_SERVER_HOST
public static final java.lang.String SMTP_SERVER_PORT
public static final java.lang.String SMTP_SERVER_USER
public static final java.lang.String SMTP_SERVER_USER_EMAIL
public static final java.lang.String SMTP_SERVER_PASSWORD
public static final java.lang.String SMTP_SERVER_TIMEOUT_MS
public static final java.lang.String SMTP_SERVER_RETRY_COUNT
public static final java.lang.String SMTP_ENABLE_SSL
public static final java.lang.String SMTP_ENABLE_TLS
public static final java.lang.String SMTP_THREAD_MODEL
public static final java.lang.String SMTP_THREAD_MODEL_SHOW
public static final java.lang.String SMTP_IGNORED_EMAIL_FILE
public static final java.lang.String SMTP_SERVER_SYSADMIN_EMAIL
public static final java.lang.String[] SMTP_PROPERTIES
public static final java.lang.String LOG_NAME
public static final java.lang.String LOG_LEVEL
public static final java.lang.String LOG_LEVEL_HEADER
public static final java.lang.String LOG_JAVA_LOGGER
public static final java.lang.String LOG_REDIRECT_LOG
public static final java.lang.String LOG_REMOTE_LOGGING
public static final java.lang.String LOG_DIR
public static final java.lang.String LOG_FILE
public static final java.lang.String LOG_FILE_ENABLE
public static final java.lang.String LOG_FILE_ROTATE_SIZE
public static final java.lang.String LOG_FILE_ROTATE_EXTN
public static final java.lang.String LOG_FILE_ROTATE_DELETE_AGE
public static final java.lang.String LOG_INCL_DATE
public static final java.lang.String LOG_INCL_STACKFRAME
public static final java.lang.String LOG_EMAIL_EXCEPTIONS
public static final java.lang.String LOG_EMAIL_FROM
public static final java.lang.String LOG_EMAIL_TO
public static final java.lang.String LOG_SENDMAIL_CLASS
public static final java.lang.String DB_DBCONNECTION_POOL
public static final java.lang.String DB_DATASOURCE_CLASS
public static final java.lang.String DB_DATASOURCE_MAX_ACTIVE
public static final java.lang.String DB_DATASOURCE_MAX_IDLE
public static final java.lang.String DB_DATASOURCE_MAX_WAIT
public static final java.lang.String DB_PROVIDER
public static final java.lang.String DB_NAME
public static final java.lang.String DB_URL
public static final java.lang.String DB_URL_DB
public static final java.lang.String DB_HOST
public static final java.lang.String DB_PORT
public static final java.lang.String DB_USER
public static final java.lang.String DB_PASS
public static final java.lang.String DB_UTF8
public static final java.lang.String DB_TABLE_NAME_PREFIX
public static final java.lang.String DB_TABLE_LOCKING
public static final java.lang.String DB_INCLUDE_LAST_UPDATE_ACCT
public static final java.lang.String DB_INCLUDE_LAST_UPDATE_USER
public static final java.lang.String DB_SHOW_SQL
public static final java.lang.String DB_SHOW_CONNECTIONS
public static final java.lang.String DB_ALLOW_UPDATE_KEY_FIELDS
public static final java.lang.String DB_INACTIVE_TIMEOUT
public static final java.lang.String DB_MYSQL_TBLEXIST_SEL_COUNT
public static final java.lang.String DB_TYPESIZE_
public static final java.lang.String DB_TYPEINT_
public static final java.lang.String DB_IGNORE_COLUMN_ERROR_
public static final java.lang.String _DB_LOG_MISSING_COLUMNS
public static final java.lang.String OSTOOLS_MEMORY_CHECK_ENABLE
public static final java.lang.String OSTOOLS_MEMORY_TREND_WEIGHT
public static final java.lang.String OSTOOLS_MEMORY_USAGE_WARN
public static final java.lang.String ThreadPool_CronTask_
public static final java.lang.String ThreadPool_SendMail_
public static final java.lang.String ThreadPool_EventRuleAction_
public static final java.lang.String ThreadPool_DeviceEventUpdate_
public static final java.lang.String ServerSockeThread_maximumClientThreadPoolSize
public static final java.lang.String CONSTANT_PREFIX
public static final java.lang.String VERSION
public static final java.lang.String IS_WEBAPP
public static final java.lang.String MAIN_COMMAND
public static final java.lang.String MAIN_JAR
public static final java.lang.String MAIN_CLASS
public static final java.lang.String CONTEXT_NAME
public static final java.lang.String CONTEXT_PATH
public static final java.lang.String HOST_NAME
public static final java.lang.String HOST_IP
public static final java.lang.String OS_TYPE
public static final java.lang.String OS_SUBTYPE
public static final java.lang.String PROCESS_ID
public static final java.lang.String NAME
public static final java.lang.String CONFIG_URL
public static final java.lang.String LOG
public static final java.lang.String INCLUDE
public static final java.lang.String INCLUDE_OPT
protected static RTKey.Entry NullEntry
protected static RTKey.Entry[] runtimeKeys
protected static java.util.Map<java.lang.String,RTKey.Entry> globalEntryMap
protected static RTProperties defaultProperties
public java.lang.String keyName
Constructor Detail |
---|
public RTKey(java.lang.String key)
key
- The property nameMethod Detail |
---|
protected static java.util.Map<java.lang.String,RTKey.Entry> getRuntimeEntryMap()
Map
of all entries in RTKey
Map
of all entriespublic static java.util.Iterator<java.lang.String> getRuntimeKeyIterator()
public static void addRuntimeEntries(RTKey.Entry[] dftEntry)
public static void addRuntimeEntry(RTKey.Entry dftEntry)
RTKey.Entry
) to RTKey
protected static RTKey.Entry getRuntimeEntry(java.lang.String key)
key
- The key of the entry to get
public static boolean hasDefault(java.lang.String key)
key
- A property key
public static java.lang.Object getDefaultProperty(java.lang.String key, java.lang.Object dft)
dft
if none was found
key
- The key of the property to getdft
- The value to return if no propetry value was foundpublic static void setDefaultProperty(java.lang.String key, java.lang.Object val)
key
- The key of the property to setval
- The value to set the property topublic static RTProperties getDefaultProperties()
RTKey
represented
as an RTProperties
instance
RTProperties
instancepublic static void printDefaults(java.io.PrintStream out)
RTKey
and RTConfig
to the specified PrintStream
. Used for debugging/testing
out
- The PrintStream
public static boolean isBlank(RTKey key)
key
- The RTKey to test
public static RTKey valueOf(java.lang.String s)
s
- The property String
public java.lang.String getName()
public boolean isBlank()
public java.lang.String suffix(java.lang.String stSfx)
stSfx
- Property key suffix
public RTKey rtSuffix(RTKey rtSfx)
rtSfx
- Property key suffix
public RTKey rtSuffix(java.lang.String stSfx)
stSfx
- Property key suffix
public boolean equals(java.lang.Object otherKey)
equals
in class java.lang.Object
otherKey
- The key name to test for equality
public int compareTo(RTKey otherKey)
compareTo
in interface java.lang.Comparable<RTKey>
otherKey
- The key name to compare
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String trim()
public int hashCode()
hashCode
in class java.lang.Object
public static void main(java.lang.String[] argv)
argv
- Comand-line arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |