|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.module.launcher.DeploymentService
public class DeploymentService
Nested Class Summary | |
---|---|
protected class |
DeploymentService.AppDirWatcher
Not thread safe. |
static interface |
DeploymentService.StartupListener
|
Field Summary | |
---|---|
static String |
APP_ANCHOR_SUFFIX
|
protected ScheduledExecutorService |
appDirMonitorTimer
|
protected ApplicationFactory |
appFactory
|
protected static int |
DEFAULT_CHANGES_CHECK_INTERVAL_MS
|
protected MuleDeployer |
deployer
|
protected Log |
logger
|
Constructor Summary | |
---|---|
DeploymentService(Map<Class<? extends MuleCoreExtension>,MuleCoreExtension> coreExtensions)
|
Method Summary | |
---|---|
void |
addDeploymentListener(DeploymentListener listener)
|
void |
addStartupListener(DeploymentService.StartupListener listener)
|
protected void |
addZombie(File marker)
|
void |
deploy(URL appArchiveUrl)
|
Application |
findApplication(String appName)
Find an active application. |
void |
fireOnDeploymentFailure(String appName,
Throwable cause)
Notifies all deployment listeners that the deploy for a given application has finished with a failure. |
void |
fireOnDeploymentStart(String appName)
Notifies all deployment listeners that the deploy for a given application has just started. |
void |
fireOnDeploymentSuccess(String appName)
Notifies all deployment listeners that the deploy for a given application has successfully finished. |
void |
fireOnUndeploymentFailure(String appName,
Throwable cause)
Notifies all deployment listeners that un-deployment for a given application has finished with a failure. |
void |
fireOnUndeploymentStart(String appName)
Notifies all deployment listeners that un-deployment for a given application has just started. |
void |
fireOnUndeploymentSuccess(String appName)
Notifies all deployment listeners that un-deployment for a given application has successfully finished. |
ApplicationFactory |
getAppFactory()
|
List<Application> |
getApplications()
|
protected MuleDeployer |
getDeployer()
|
ReentrantLock |
getLock()
|
Map<URL,Long> |
getZombieMap()
|
void |
onApplicationInstalled(Application a)
|
void |
removeDeploymentListener(DeploymentListener listener)
|
void |
removeStartupListener(DeploymentService.StartupListener listener)
|
protected void |
scheduleChangeMonitor(File appsDir)
|
void |
setDeployer(MuleDeployer deployer)
|
void |
start()
|
void |
stop()
|
protected void |
undeploy(Application app)
|
void |
undeploy(String appName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String APP_ANCHOR_SUFFIX
protected static final int DEFAULT_CHANGES_CHECK_INTERVAL_MS
protected ScheduledExecutorService appDirMonitorTimer
protected final transient Log logger
protected MuleDeployer deployer
protected ApplicationFactory appFactory
Constructor Detail |
---|
public DeploymentService(Map<Class<? extends MuleCoreExtension>,MuleCoreExtension> coreExtensions)
Method Detail |
---|
public void start()
protected void scheduleChangeMonitor(File appsDir)
public void stop()
public Application findApplication(String appName)
public List<Application> getApplications()
public Map<URL,Long> getZombieMap()
protected MuleDeployer getDeployer()
public void setDeployer(MuleDeployer deployer)
public ApplicationFactory getAppFactory()
public ReentrantLock getLock()
public void onApplicationInstalled(Application a)
protected void undeploy(Application app)
public void undeploy(String appName)
public void deploy(URL appArchiveUrl) throws IOException
IOException
protected void addZombie(File marker)
public void addStartupListener(DeploymentService.StartupListener listener)
public void removeStartupListener(DeploymentService.StartupListener listener)
public void addDeploymentListener(DeploymentListener listener)
public void removeDeploymentListener(DeploymentListener listener)
public void fireOnDeploymentStart(String appName)
appName
- the name of the application being deployed.public void fireOnDeploymentSuccess(String appName)
appName
- the name of the deployed application.public void fireOnDeploymentFailure(String appName, Throwable cause)
appName
- the name of the deployed application.cause
- the cause of the deployment failure.public void fireOnUndeploymentStart(String appName)
appName
- the name of the application being un-deployed.public void fireOnUndeploymentSuccess(String appName)
appName
- the name of the un-deployed application.public void fireOnUndeploymentFailure(String appName, Throwable cause)
appName
- the name of the un-deployed application.cause
- the cause of the deployment failure.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |