1 /* 2 * $Id: DeploymentListener.java 22567 2011-07-27 23:20:32Z julien.eluard $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com 5 * 6 * The software in this package is published under the terms of the CPAL v1.0 7 * license, a copy of which has been included with this distribution in the 8 * LICENSE.txt file. 9 */ 10 11 package org.mule.module.launcher; 12 13 /** 14 * Defines a listener for deployment events. 15 */ 16 public interface DeploymentListener 17 { 18 19 /** 20 * Notifies that a deploy for a given application has started. 21 * 22 * @param appName the name of the application being deployed 23 */ 24 void onDeploymentStart(String appName); 25 26 /** 27 * Notifies that a deploy for a given application has successfully finished. 28 * 29 * @param appName the name of the application being deployed 30 */ 31 void onDeploymentSuccess(String appName); 32 33 /** 34 * Notifies that a deploy for a given application has finished with a failure. 35 * 36 * @param appName the name of the application being deployed 37 * @param cause the cause of the failure 38 */ 39 void onDeploymentFailure(String appName, Throwable cause); 40 41 /** 42 * Notifies that an un-deployment for a given application has started. 43 * 44 * @param appName the name of the application being un-deployed 45 */ 46 void onUndeploymentStart(String appName); 47 48 /** 49 * Notifies that an un-deployment for a given application has successfully finished. 50 * 51 * @param appName the name of the application being un-deployed 52 */ 53 void onUndeploymentSuccess(String appName); 54 55 /** 56 * Notifies that an un-deployment for a given application has finished with a failure. 57 * 58 * @param appName the name of the application being un-deployed 59 * @param cause the cause of the failure 60 */ 61 void onUndeploymentFailure(String appName, Throwable cause); 62 }