| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ProcessListener |
|
| 1.0;1 |
| 1 | /* | |
| 2 | Copyright (C) 2007 Grid Systems, S.A. | |
| 3 | ||
| 4 | This library is free software; you can redistribute it and/or | |
| 5 | modify it under the terms of the GNU Lesser General Public | |
| 6 | License as published by the Free Software Foundation; either | |
| 7 | version 2.1 of the License, or (at your option) any later version. | |
| 8 | ||
| 9 | This library is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | Lesser General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU Lesser General Public | |
| 15 | License along with this library; if not, write to the Free Software | |
| 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
| 17 | */ | |
| 18 | package nextgrid.api.pem; | |
| 19 | ||
| 20 | /** | |
| 21 | * A process listener receives notifications on state changes of processes. | |
| 22 | * | |
| 23 | * @author Rodrigo Ruiz | |
| 24 | */ | |
| 25 | public interface ProcessListener extends POMListener { | |
| 26 | ||
| 27 | /** | |
| 28 | * A process has been evaluated. | |
| 29 | * | |
| 30 | * @param event The event | |
| 31 | */ | |
| 32 | void processEvaluated(ProcessEvent event); | |
| 33 | ||
| 34 | /** | |
| 35 | * A process has been selected. | |
| 36 | * | |
| 37 | * @param event The event | |
| 38 | */ | |
| 39 | void processSelected(ProcessEvent event); | |
| 40 | ||
| 41 | /** | |
| 42 | * A process enaction has started. | |
| 43 | * | |
| 44 | * @param event The event | |
| 45 | */ | |
| 46 | void processStarted(ProcessEvent event); | |
| 47 | ||
| 48 | /** | |
| 49 | * A process has completed its execution. | |
| 50 | * | |
| 51 | * @param event The event | |
| 52 | */ | |
| 53 | void processFinished(ProcessEvent event); | |
| 54 | ||
| 55 | /** | |
| 56 | * A process execution has failed. | |
| 57 | * | |
| 58 | * @param event Event containing the exception | |
| 59 | */ | |
| 60 | void processFailed(ProcessEvent event); | |
| 61 | } |