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 (mondain@gmail.com)
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
protected class
Filters directory content -
Field Summary
Modifier and TypeFieldDescriptionprivate int
How often to check for new war filesprivate static AtomicBoolean
private boolean
Expand WAR files in the webapps directory prior to start upprivate ScheduledFuture<WarDeployer.DeployJob>
private org.slf4j.Logger
private ScheduledExecutorService
private String
Deployment directory -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
deploy
(boolean startApplication) void
destroy()
int
Returns the LoaderMBean.void
setCheckInterval
(int checkInterval) void
setExpandWars
(boolean expandWars) Whether or not to expand war files prior to start up.void
setWebappFolder
(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:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
deploy
public void deploy(boolean startApplication) -
destroy
- Specified by:
destroy
in 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
-