public class CompositeDeploymentListener extends Object implements DeploymentListener, DeploymentListenerManager
| Constructor and Description |
|---|
CompositeDeploymentListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeploymentListener(DeploymentListener listener) |
void |
onArtifactCreated(String artifactName,
org.mule.runtime.api.config.custom.CustomizationService customizationService)
Notifies the artifact creation for a given app.
|
void |
onArtifactInitialised(String artifactName,
org.mule.runtime.api.artifact.Registry registry)
Notifies the artifact initialisation for a given app.
|
void |
onArtifactStarted(String artifactName,
org.mule.runtime.api.artifact.Registry registry)
Notifies artifact start for a given app.
|
void |
onArtifactStopped(String artifactName,
org.mule.runtime.api.artifact.Registry registry)
Notifies artifact stop for a given app.
|
void |
onDeploymentFailure(String artifactName,
Throwable cause)
Notifies that a deploy for a given application has finished with a failure.
|
void |
onDeploymentStart(String artifactName)
Notifies that a deploy for a given application has started.
|
void |
onDeploymentSuccess(String appName)
Notifies that a deploy for a given application has successfully finished.
|
void |
onRedeploymentFailure(String artifactName,
Throwable cause)
Notifies that a redeploy for a given artifact has finished with a failure.
|
void |
onRedeploymentStart(String artifactName)
Notifies that a redeploy for a given artifact has started.
|
void |
onRedeploymentSuccess(String artifactName)
Notifies that a redeploy for a given artifact has successfully finished.
|
void |
onUndeploymentFailure(String artifactName,
Throwable cause)
Notifies that an un-deployment for a given application has finished with a failure.
|
void |
onUndeploymentStart(String artifactName)
Notifies that an un-deployment for a given application has started.
|
void |
onUndeploymentSuccess(String artifactName)
Notifies that an un-deployment for a given application has successfully finished.
|
void |
removeDeploymentListener(DeploymentListener listener) |
public void addDeploymentListener(DeploymentListener listener)
addDeploymentListener in interface DeploymentListenerManagerpublic void removeDeploymentListener(DeploymentListener listener)
removeDeploymentListener in interface DeploymentListenerManagerpublic void onDeploymentStart(String artifactName)
DeploymentListeneronDeploymentStart in interface DeploymentListenerartifactName - the name of the application being deployedpublic void onDeploymentSuccess(String appName)
DeploymentListeneronDeploymentSuccess in interface DeploymentListenerappName - the name of the application being deployedpublic void onDeploymentFailure(String artifactName, Throwable cause)
DeploymentListeneronDeploymentFailure in interface DeploymentListenerartifactName - the name of the application being deployedcause - the cause of the failurepublic void onUndeploymentStart(String artifactName)
DeploymentListeneronUndeploymentStart in interface DeploymentListenerartifactName - the name of the application being un-deployedpublic void onUndeploymentSuccess(String artifactName)
DeploymentListeneronUndeploymentSuccess in interface DeploymentListenerartifactName - the name of the application being un-deployedpublic void onUndeploymentFailure(String artifactName, Throwable cause)
DeploymentListeneronUndeploymentFailure in interface DeploymentListenerartifactName - the name of the application being un-deployedcause - the cause of the failurepublic void onArtifactCreated(String artifactName, org.mule.runtime.api.config.custom.CustomizationService customizationService)
DeploymentListeneronArtifactCreated in interface DeploymentListenerartifactName - name of the application that owns the mule contextcustomizationService - customization service for server pluginspublic void onArtifactInitialised(String artifactName, org.mule.runtime.api.artifact.Registry registry)
DeploymentListeneronArtifactInitialised in interface DeploymentListenerartifactName - name of the application that owns the mule contextregistry - mule registry for the application being deployedpublic void onArtifactStarted(String artifactName, org.mule.runtime.api.artifact.Registry registry)
DeploymentListeneronArtifactStarted in interface DeploymentListenerartifactName - name of the application that owns the mule contextregistry - mule registry for the application being deployedpublic void onArtifactStopped(String artifactName, org.mule.runtime.api.artifact.Registry registry)
DeploymentListeneronArtifactStopped in interface DeploymentListenerartifactName - name of the application that owns the mule contextregistry - mule registry for the application being deployedpublic void onRedeploymentStart(String artifactName)
DeploymentListenerDeploymentListener.onRedeploymentSuccess(String) will be invoked. Otherwise DeploymentListener.onRedeploymentFailure(String, Throwable) will be invoked. Same notifications will be fired for child artifacts.
A special scenario is when redeploying a domain bundle, an application existing in the old version of the bundle is not
available anymore. In that case, the redeployment of the mentioned application will fail, but the redeployment of the domain
will be successful.onRedeploymentStart in interface DeploymentListenerartifactName - the name of the artifact being deployedpublic void onRedeploymentSuccess(String artifactName)
DeploymentListeneronRedeploymentSuccess in interface DeploymentListenerartifactName - the name of the artifact being deployedpublic void onRedeploymentFailure(String artifactName, Throwable cause)
DeploymentListeneronRedeploymentFailure in interface DeploymentListenerartifactName - the name of the artifact being deployedcause - the cause of the failureCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.