org.mule.module.launcher
Class ArtifactDeploymentStatusTracker

java.lang.Object
  extended by org.mule.module.launcher.AbstractDeploymentListener
      extended by org.mule.module.launcher.ArtifactDeploymentStatusTracker
All Implemented Interfaces:
DeploymentListener

public class ArtifactDeploymentStatusTracker
extends AbstractDeploymentListener

Keeps track of the deployment status of the artifact listening to the deployment notifications


Nested Class Summary
static class ArtifactDeploymentStatusTracker.DeploymentState
           
 
Field Summary
protected  Map<String,ArtifactDeploymentStatusTracker.DeploymentState> deploymentStates
           
 
Constructor Summary
ArtifactDeploymentStatusTracker()
           
 
Method Summary
 Map<String,ArtifactDeploymentStatusTracker.DeploymentState> getDeploymentStates()
           
 void onDeploymentFailure(String artifactName, Throwable failureCause)
          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 artifactName)
          Notifies that a deploy for a given application has successfully finished.
 
Methods inherited from class org.mule.module.launcher.AbstractDeploymentListener
onMuleContextConfigured, onMuleContextCreated, onMuleContextInitialised, onUndeploymentFailure, onUndeploymentStart, onUndeploymentSuccess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deploymentStates

protected Map<String,ArtifactDeploymentStatusTracker.DeploymentState> deploymentStates
Constructor Detail

ArtifactDeploymentStatusTracker

public ArtifactDeploymentStatusTracker()
Method Detail

getDeploymentStates

public Map<String,ArtifactDeploymentStatusTracker.DeploymentState> getDeploymentStates()

onDeploymentStart

public void onDeploymentStart(String artifactName)
Description copied from interface: DeploymentListener
Notifies that a deploy for a given application has started.

Specified by:
onDeploymentStart in interface DeploymentListener
Overrides:
onDeploymentStart in class AbstractDeploymentListener
Parameters:
artifactName - the name of the application being deployed

onDeploymentSuccess

public void onDeploymentSuccess(String artifactName)
Description copied from interface: DeploymentListener
Notifies that a deploy for a given application has successfully finished.

Specified by:
onDeploymentSuccess in interface DeploymentListener
Overrides:
onDeploymentSuccess in class AbstractDeploymentListener
Parameters:
artifactName - the name of the application being deployed

onDeploymentFailure

public void onDeploymentFailure(String artifactName,
                                Throwable failureCause)
Description copied from interface: DeploymentListener
Notifies that a deploy for a given application has finished with a failure.

Specified by:
onDeploymentFailure in interface DeploymentListener
Overrides:
onDeploymentFailure in class AbstractDeploymentListener
Parameters:
artifactName - the name of the application being deployed
failureCause - the cause of the failure


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.