View Javadoc

1   package org.lsst.ccs.bus;
2   
3   
4   /**
5    * Represents a special status message for notifications of a startup with name/configuration/tag.
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 StatusForStart extends Status implements SubsystemToken{
12      private static final long serialVersionUID = -8365961919139348601L;
13      String configurationName ;
14      String tag ;
15      boolean inTestContext;
16      boolean master;
17      boolean slave ;
18  
19  
20      public StatusForStart(String configurationName, String tag, boolean master, boolean slave) {
21          this.configurationName = configurationName;
22          this.tag = tag;
23          this.master = master ;
24          this.slave = slave ;
25      }
26  
27  
28      public String getConfigurationName() {
29          return configurationName;
30      }
31  
32       void setConfigurationName(String configurationName) {
33          this.configurationName = configurationName;
34      }
35  
36      public String getTag() {
37          return tag;
38      }
39  
40      void setTag(String tag) {
41          this.tag = tag;
42      }
43  
44      public boolean isInTestContext() {
45          return inTestContext;
46      }
47  
48      public void setInTestContext(boolean inTestContext) {
49          this.inTestContext = inTestContext;
50      }
51  
52      public boolean isMaster() {
53          return master;
54      }
55  
56      public boolean isSlave() {
57          return slave;
58      }
59  
60      public String toString() {
61          return super.toString() + " beginning for : " + configurationName + " " +tag ;
62      }
63  }