Coverage Report - nextgrid.api.pem.DiscoveryListener
 
Classes in this File Line Coverage Branch Coverage Complexity
DiscoveryListener
N/A
N/A
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 class implementing this interface can be registered on a Process instance
 22  
  * to receive notification on discovery-related events.
 23  
  *
 24  
  * @author Rodrigo Ruiz
 25  
  */
 26  
 public interface DiscoveryListener extends POMListener {
 27  
 
 28  
   /**
 29  
    * Invoked before the discovery process start, once a
 30  
    * {@link nextgrid.api.env.ProcessDiscoverer} instance is
 31  
    * selected for usage.
 32  
    *
 33  
    * @param event Event data
 34  
    */
 35  
   void discovererSelected(DiscoveryEvent event);
 36  
 
 37  
   /**
 38  
    * Called before a discovery starts on a process.
 39  
    *
 40  
    * @param event Event data
 41  
    */
 42  
   void discoveryStarting(DiscoveryEvent event);
 43  
 
 44  
   /**
 45  
    * Called after a discovery finishes (successfully).
 46  
    *
 47  
    * @param event Event data
 48  
    */
 49  
   void discoveryFinished(DiscoveryEvent event);
 50  
 
 51  
   /**
 52  
    * Called after a discovery fails.
 53  
    *
 54  
    * @param event Event data
 55  
    */
 56  
   void discoveryFailed(DiscoveryEvent event);
 57  
 }