Generalization of a background process that runs in a thread, and can be stopped.
Custom handler interface for the admin web site.
Custom handler interface for the admin web site. The standard render
calls are implemented in
terms of a single handle
call. For more functionality, check out subclasses like
FolderResourceHandler
and CgiRequestHandler
.
This allows us to turn on and off Finagle's tracing.
This allows us to turn on and off Finagle's tracing.
See: https://github.com/twitter/finagle
Serve static pages as java resources.
Support for heapster profiling (google perftools compatible):
Support for heapster profiling (google perftools compatible):
https://github.com/mariusaeriksen/heapster
Background process that performs some task periodically, over a given duration.
Background process that performs some task periodically, over a given duration. If the duration is a useful multiple of seconds, the first event will be staggered so that it takes place on an even multiple. (For example, a minutely event will first trigger at the top of a minute.)
The periodic()
method implements the periodic event.
Displays registry data for the service.
Use information in a local build.properties
file to determine runtime
environment info like the package name, version, and installation path.
Use information in a local build.properties
file to determine runtime
environment info like the package name, version, and installation path.
This can be used to automatically load config files from a config/
path
relative to the executable jar.
An example of how to generate a build.properties
file is included in
sbt standard-project: <http://github.com/twitter/standard-project>
You have to pass in an object from your package in order to identify the
location of the build.properties
file. The ClassLoader for the given object
is used to load the buid.properties file, which is first searched for relative
to the given class (class-package-name/build.properties), and if not found there,
then it is searched for with an absolute path ("/build.properties").
A simple http service for serving up information pulled from a build.properties file.
A simple http service for serving up information pulled from a build.properties file. The ClassLoader for the given object is used to load the buid.properties file, which is first searched for relative to the given object's class's package (class-package-name/build.properties), and if not found there, then it is searched for with an absolute path ("/build.properties").
A service is any task that can be shutdown or reloaded by the admin server.
Collect stats over a rolling window of the last hour and report them to a web handler, for generating ad-hoc realtime graphs.
Can turn trace recording on and off for the entire service.
Deal with requests from the mesos executor
Single server object that can track multiple Service implementations and multiplex the shutdown & quiesce commands.
(Since version 9.5.6)
Generalization of a background process that runs in a thread, and can be stopped. Stopping the thread waits for it to finish running.
The code block will be run inside a "forever" loop, so it should either call a method that can be interrupted (like sleep) or block for a low timeout.