View Javadoc
1   package com.github.sbugat.rundeckmonitor;
2   
3   /**
4    * Class containing the current state of the monitor.
5    * 
6    * @author Sylvain Bugat
7    * 
8    */
9   public final class RundeckMonitorState {
10  
11  	/** Failed jobs flag. */
12  	private boolean failedJobs;
13  
14  	/** Late/long jobs flag. */
15  	private boolean lateJobs;
16  
17  	/** Disconnected flag. */
18  	private boolean disconnected;
19  
20  	/**
21  	 * Get the failed flag.
22  	 * 
23  	 * @return failed flag
24  	 */
25  	public boolean isFailedJobs() {
26  		return failedJobs;
27  	}
28  
29  	/**
30  	 * Set the failed flag.
31  	 * 
32  	 * @param failedJobsArg failed flag
33  	 */
34  	public void setFailedJobs(final boolean failedJobsArg) {
35  		failedJobs = failedJobsArg;
36  	}
37  
38  	/**
39  	 * Get the long/late flag.
40  	 * 
41  	 * @return long/late flag
42  	 */
43  	public boolean isLateJobs() {
44  		return lateJobs;
45  	}
46  
47  	/**
48  	 * Set the long/late flag.
49  	 * 
50  	 * @param lateJobsArg long/late flag
51  	 */
52  	public void setLateJobs(final boolean lateJobsArg) {
53  		lateJobs = lateJobsArg;
54  	}
55  
56  	/**
57  	 * Get the disconnected flag.
58  	 * 
59  	 * @return true if disconnected
60  	 */
61  	public boolean isDisconnected() {
62  		return disconnected;
63  	}
64  
65  	/**
66  	 * Set the disconnected state.
67  	 * 
68  	 * @param disconnectedArg disconnected state
69  	 */
70  	public void setDisconnected(final boolean disconnectedArg) {
71  		disconnected = disconnectedArg;
72  	}
73  }