View Javadoc

1   package org.lsst.ccs.bus;
2   
3   public abstract class CommandAckOrReply extends BusMessage implements  CommandBusMessage {
4   
5       private static final long serialVersionUID = -1691401504247310619L;
6        // deprecated
7       // Command originalCommand;
8       String correlId;
9       String destination;
10  
11      @Deprecated
12      public CommandAckOrReply() {
13          super();
14      }
15      //added by bamade
16  
17      protected CommandAckOrReply(Command command, String origin) {
18          //setOriginalCommand(command);
19          this.correlId = command.getCorrelId();
20          setDestination(command.getOrigin());
21          setOrigin(origin);
22      }
23  
24      public String getCorrelId() {
25          return correlId;
26      }
27  
28      @Deprecated
29      public void setCorrelId(String correlId) {
30          this.correlId = correlId;
31      }
32  
33      @Deprecated
34      public Command getOriginalCommand() {
35          //return originalCommand;
36          return null;
37      }
38  
39      @Deprecated
40      public void setOriginalCommand(Command originalCommand) {
41          //this.originalCommand = originalCommand;
42      }
43  
44      public String getDestination() {
45          return destination;
46      }
47  
48      public void setDestination(String destination) {
49          this.destination = destination;
50      }
51  }