Package org.red5.server.tomcat
Class WarDeployer
java.lang.Object
org.red5.server.tomcat.WarDeployer
- All Implemented Interfaces:
DisposableBean,InitializingBean
This service provides the means to auto-deploy a war.
- Author:
- Paul Gregoire ([email protected])
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprotected classFilters directory content -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intHow often to check for new war filesprivate static AtomicBooleanprivate booleanExpand WAR files in the webapps directory prior to start upprivate ScheduledFuture<WarDeployer.DeployJob>private org.slf4j.Loggerprivate ScheduledExecutorServiceprivate StringDeployment directory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeploy(boolean startApplication) voiddestroy()static StringgetApplicationName(String applicationWarName) intReturns the LoaderMBean.voidsetCheckInterval(int checkInterval) voidsetExpandWars(boolean expandWars) Whether or not to expand war files prior to start up.voidsetWebappFolder(String webappFolder) void
-
Field Details
-
log
private org.slf4j.Logger log -
deploying
-
scheduler
-
future
-
checkInterval
private int checkIntervalHow often to check for new war files -
webappFolder
Deployment directory -
expandWars
private boolean expandWarsExpand WAR files in the webapps directory prior to start up
-
-
Constructor Details
-
WarDeployer
public WarDeployer()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Throws:
Exception
-
deploy
public void deploy(boolean startApplication) -
getApplicationName
-
destroy
- Specified by:
destroyin interfaceDisposableBean- Throws:
Exception
-
setCheckInterval
public void setCheckInterval(int checkInterval) -
getCheckInterval
public int getCheckInterval() -
getWebappFolder
-
setWebappFolder
-
setExpandWars
public void setExpandWars(boolean expandWars) Whether or not to expand war files prior to start up.- Parameters:
expandWars- to expand or not
-
getLoader
Returns the LoaderMBean.- Returns:
- LoadeerMBean
-
undeploy
-