Class PortalWarmup
java.lang.Object
org.exoplatform.portal.application.PortalWarmup
- All Implemented Interfaces:
Runnable
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()static Threadstart(org.exoplatform.container.ExoContainer container, PortalApplication application) Starts the warm-up thread, unless in developer mode or disabled byENABLED_PROPERTY.
-
Field Details
-
ENABLED_PROPERTY
false: neither the templates' compilation nor the request runs.- See Also:
-
URL_PROPERTY
The URL of the warm-up request; empty: the login page on the loopback.- See Also:
-
-
Method Details
-
start
public static Thread start(org.exoplatform.container.ExoContainer container, PortalApplication application) Starts the warm-up thread, unless in developer mode or disabled byENABLED_PROPERTY.- Parameters:
container- the portal containerapplication- the portal application, whose pages render the templates the warm-up compiles- Returns:
- the started thread, else null
-
run
-