View Javadoc

1   package org.lsst.ccs.config;
2   
3   import org.lsst.ccs.bus.CommandExecutor;
4   import org.lsst.ccs.bus.Command;
5   
6   /**
7    * A Command object for CCS delivering data to be run to start a subsystem.
8    * @author bamade
9    */
10  // Date: 26/06/12
11  
12      //TODO : review use!
13  public class BootCommand  extends Command {
14      private static final long serialVersionUID = 9028522241007700060L;
15      private DeploymentDescriptor descriptor ;
16      private String subsystemName ;
17      private String configName ;
18      private String tag ;
19      private Object configurationData ;
20  
21      /**
22       * creates a boot command
23       * @param destination
24       * @param subsystemName
25       * @param configName
26       * @param tag
27       * @param configurationData
28       */
29      public BootCommand(String destination ,String subsystemName, String configName, String tag,
30                         Object configurationData) {
31          super("",0, destination,null) ; //TODO: re-engineer that!
32          this.subsystemName = subsystemName;
33          this.configName = configName;
34          this.tag = tag;
35          this.configurationData = configurationData;
36      }
37  
38      public DeploymentDescriptor getDescriptor() {
39          return descriptor;
40      }
41  
42      public void setDescriptor(DeploymentDescriptor descriptor) {
43          this.descriptor = descriptor;
44      }
45  
46      public String getSubsystemName() {
47          return subsystemName;
48      }
49  
50      public String getConfigName() {
51          return configName;
52      }
53  
54      public String getTag() {
55          return tag;
56      }
57  
58      public Object getConfigurationData() {
59          return configurationData;
60      }
61  
62  
63      //@Override
64      public Object execute(CommandExecutor s) {
65         return null ;
66      }
67      @Override
68      public String getMessageType() {
69          return "lsst.bootCommand";
70      }
71  }