View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.module.launcher;
8   
9   /**
10   * Defines a listener for deployment events.
11   */
12  public interface DeploymentListener
13  {
14  
15      /**
16       * Notifies that a deploy for a given application has started.
17       *
18       * @param appName the name of the application being deployed
19       */
20      void onDeploymentStart(String appName);
21  
22      /**
23       * Notifies that a deploy for a given application has successfully finished.
24       *
25       * @param appName the name of the application being deployed
26       */
27      void onDeploymentSuccess(String appName);
28  
29      /**
30       * Notifies that a deploy for a given application has finished with a failure.
31       *
32       * @param appName the name of the application being deployed
33       * @param cause       the cause of the failure
34       */
35      void onDeploymentFailure(String appName, Throwable cause);
36  }