public interface DeploymentListener
Modifier and Type | Method and Description |
---|---|
default void |
onArtifactCreated(String artifactName,
CustomizationService customizationService)
Notifies the artifact creation for a given app.
|
default void |
onArtifactInitialised(String artifactName,
Registry registry)
Notifies the artifact initialisation for a given app.
|
default void |
onArtifactStarted(String artifactName,
Registry registry)
Notifies artifact start for a given app.
|
default void |
onArtifactStopped(String artifactName,
Registry registry)
Notifies artifact stop for a given app.
|
default void |
onDeploymentFailure(String artifactName,
Throwable cause)
Notifies that a deploy for a given application has finished with a failure.
|
default void |
onDeploymentStart(String artifactName)
Notifies that a deploy for a given application has started.
|
default void |
onDeploymentSuccess(String artifactName)
Notifies that a deploy for a given application has successfully finished.
|
default void |
onRedeploymentFailure(String artifactName,
Throwable cause)
Notifies that a redeploy for a given artifact has finished with a failure.
|
default void |
onRedeploymentStart(String artifactName)
Notifies that a redeploy for a given artifact has started.
|
default void |
onRedeploymentSuccess(String artifactName)
Notifies that a redeploy for a given artifact has successfully finished.
|
default void |
onUndeploymentFailure(String artifactName,
Throwable cause)
Notifies that an un-deployment for a given application has finished with a failure.
|
default void |
onUndeploymentStart(String artifactName)
Notifies that an un-deployment for a given application has started.
|
default void |
onUndeploymentSuccess(String artifactName)
Notifies that an un-deployment for a given application has successfully finished.
|
default void onDeploymentStart(String artifactName)
artifactName
- the name of the application being deployeddefault void onDeploymentSuccess(String artifactName)
artifactName
- the name of the application being deployeddefault void onDeploymentFailure(String artifactName, Throwable cause)
artifactName
- the name of the application being deployedcause
- the cause of the failuredefault void onUndeploymentStart(String artifactName)
artifactName
- the name of the application being un-deployeddefault void onUndeploymentSuccess(String artifactName)
artifactName
- the name of the application being un-deployeddefault void onUndeploymentFailure(String artifactName, Throwable cause)
artifactName
- the name of the application being un-deployedcause
- the cause of the failuredefault void onRedeploymentStart(String artifactName)
onRedeploymentSuccess(String)
will be invoked. Otherwise 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.artifactName
- the name of the artifact being deployeddefault void onRedeploymentSuccess(String artifactName)
artifactName
- the name of the artifact being deployeddefault void onRedeploymentFailure(String artifactName, Throwable cause)
artifactName
- the name of the artifact being deployedcause
- the cause of the failuredefault void onArtifactCreated(String artifactName, CustomizationService customizationService)
artifactName
- name of the application that owns the mule contextcustomizationService
- customization service for server pluginsdefault void onArtifactInitialised(String artifactName, Registry registry)
artifactName
- name of the application that owns the mule contextregistry
- mule registry for the application being deployeddefault void onArtifactStarted(String artifactName, Registry registry)
artifactName
- name of the application that owns the mule contextregistry
- mule registry for the application being deployedCopyright © 2018. All rights reserved.