Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/altara/mars/engine/ProbeEvent.java


1   /* MARS Network Monitoring Engine
2      Copyright (C) 1999 Brian H. Trammell
3      Copyright (C) 2002 Leapfrog Research & Development, LLC
4   
5     This program is free software; you can redistribute it and/or
6     modify it under the terms of the GNU General Public License
7     as published by the Free Software Foundation; either version 2
8     of the License, or (at your option) any later version.
9   
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14    
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, it is available at 
17    http:///www.gnu.org/copyleft/gpl.html, or by writing to the
18    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19    Boston, MA  02111-1307, USA.
20  */
21  
22  package org.altara.mars.engine;
23  
24  import java.util.*;
25  import org.altara.mars.*;
26  
27  /** Represents a single run of a probe. Used to notify user-side 
28    components that a probe has been run and a service's status updated.
29    This is useful to show the user something is happening, or for
30    really nitpicky logging.
31  */
32  
33  public class ProbeEvent extends EventObject {
34  
35    private Status newStatus;
36  
37    public ProbeEvent (Service service, Status newStatus) {
38      super(service);
39      this.newStatus = newStatus;
40    }
41  
42    public Service getService() {
43      return (Service)source;
44    }
45  
46    public Status getNewStatus() {
47      return newStatus;
48    }
49  }