CaosDBServer#
- public class CaosDBServer extends Application#
Fields#
REQUEST_ERRORS_LOGGER#
REQUEST_TIME_LOGGER#
Methods#
addPostShutdownHook#
addPreShutdownHook#
createInboundRoot#
- public Restlet createInboundRoot()#
Specify the dispatching restlet that maps URIs to their associated resources for processing.
- Returns:
A Router restlet that implements dispatching.
getComponent#
- public static Component getComponent()#
getServerInfo#
- public static ServerInfo getServerInfo()#
getServerProperties#
- public static Properties getServerProperties()#
getServerProperty#
getShiroConfig#
- public static Ini getShiroConfig()#
getTimeZoneFromDate#
initBackend#
- public static void initBackend()#
initCaching#
- public static void initCaching()#
initOneTimeTokens#
- public static void initOneTimeTokens()#
initServerProperties#
- public static void initServerProperties()#
initShiro#
- public static void initShiro()#
initShiro#
- public static void initShiro(Ini config)#
initTimeZone#
- public static void initTimeZone()#
Precedence order:
ServerProperty “TIMEZONE”
JVM property “user.timezone”
Environment variable “TZ”
Output of posix’ “date +%Z”
- Throws:
isDebugMode#
- public static boolean isDebugMode()#
main#
- public static void main(String[] args)#
This main method starts up a web application that will listen on a port defined in the config file.
- Parameters:
args – One option temporarily (for testing) available: silent: If present: disable System.out-stream (stream to a NullPrintStream). This makes the response of the database amazingly faster.
- Throws:
Exception– If problems occur.
scheduleJob#
- public static void scheduleJob(JobDetail job, Trigger trigger)#
setProperty#
useCache#
- public static boolean useCache()#