public class PreheatTask extends Object implements Runnable
Runnable
that does a GET request on a an internal URI, making sure
that the resource is ready to use without the delay of compilation and
initializing resources, such as connecting to databases, etc.DefrostTask
Constructor and Description |
---|
PreheatTask(String applicationInternalName,
String resourceUri,
Application application,
String applicationLoggerName)
Constructor.
|
PreheatTask(String applicationInternalName,
String resourceUri,
Context context,
Logger logger)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static PreheatTask[] |
forDocumentSource(DocumentSource<Executable> documentSource,
String applicationInternalName,
Application application,
String applicationLoggerName)
Creates a preheat task for each document descriptor in a document source.
|
static Logger |
getLogger(String applicationLoggerName)
Gets the logger used for preheating an application.
|
void |
run() |
String |
toString() |
public PreheatTask(String applicationInternalName, String resourceUri, Application application, String applicationLoggerName)
applicationInternalName
- The internal application nameresourceUri
- The internal URIapplication
- The applicationapplicationLoggerName
- The application logger namepublic static Logger getLogger(String applicationLoggerName)
applicationLoggerName
- The application logger namepublic static PreheatTask[] forDocumentSource(DocumentSource<Executable> documentSource, String applicationInternalName, Application application, String applicationLoggerName)
documentSource
- The document sourceapplicationInternalName
- The internal application nameapplication
- The applicationapplicationLoggerName
- The application logger nameCopyright © 2009-2016 Three Crickets LLC.