View Javadoc

1   package org.lsst.ccs.bus;
2   
3   /**
4    * Represents a special status message for notifications of the end of execution of susbsystem with name/configuration/tag.
5    * this message may be lost.
6    * TODO: check if this is to be merged with normal heartBeat status
7    * @author bamade
8    */
9   // Date: 20/06/12
10  
11  public class StatusForEnd extends Status  implements SubsystemToken{
12      private static final long serialVersionUID = -1905244484012474170L;
13      String configurationName ;
14      String tag ;
15      boolean inTestContext ;
16      boolean master;
17      boolean slave ;
18  
19      public StatusForEnd(String configurationName, String tag, boolean master, boolean slave) {
20          this.configurationName = configurationName;
21          this.tag = tag;
22          this.master = master ;
23          this.slave = slave ;
24      }
25  
26  
27      public String getConfigurationName() {
28          return configurationName;
29      }
30  
31       void setConfigurationName(String configurationName) {
32          this.configurationName = configurationName;
33      }
34  
35      public String getTag() {
36          return tag;
37      }
38  
39      void setTag(String tag) {
40          this.tag = tag;
41      }
42  
43      public boolean isInTestContext() {
44          return inTestContext;
45      }
46  
47      public void setInTestContext(boolean inTestContext) {
48          this.inTestContext = inTestContext;
49      }
50  
51      public String toString() {
52          return super.toString() + " end for : " + configurationName + " " +tag ;
53      }
54  
55      public boolean isMaster() {
56          return master;
57      }
58  
59      public boolean isSlave() {
60          return slave;
61      }
62  }