|
17 | 17 | package com.cloud.agent.api; |
18 | 18 |
|
19 | 19 | public class StopAnswer extends RebootAnswer { |
20 | | - Integer vncPort; |
| 20 | + |
| 21 | + private String hypervisortoolsversion; |
21 | 22 | Integer timeOffset; |
22 | 23 |
|
23 | 24 | protected StopAnswer() { |
24 | 25 | } |
25 | 26 |
|
26 | | - public StopAnswer(StopCommand cmd, String details, Integer vncPort, Integer timeOffset, boolean success) { |
| 27 | + public StopAnswer(StopCommand cmd, String details, String hypervisortoolsversion, Integer timeOffset, boolean success) { |
27 | 28 | super(cmd, details, success); |
28 | | - this.vncPort = vncPort; |
| 29 | + this.hypervisortoolsversion = hypervisortoolsversion; |
29 | 30 | this.timeOffset = timeOffset; |
30 | 31 | } |
31 | 32 |
|
32 | | - public StopAnswer(StopCommand cmd, String details, Integer vncPort, boolean success) { |
| 33 | + public StopAnswer(StopCommand cmd, String details, boolean success) { |
33 | 34 | super(cmd, details, success); |
34 | | - this.vncPort = vncPort; |
| 35 | + this.hypervisortoolsversion = null; |
35 | 36 | this.timeOffset = null; |
36 | 37 | } |
37 | 38 |
|
38 | | - public StopAnswer(StopCommand cmd, String details, boolean success) { |
39 | | - super(cmd, details, success); |
40 | | - vncPort = null; |
41 | | - timeOffset = null; |
42 | | - } |
43 | 39 |
|
44 | 40 | public StopAnswer(StopCommand cmd, Exception e) { |
45 | 41 | super(cmd, e); |
| 42 | + this.hypervisortoolsversion = null; |
| 43 | + this.timeOffset = null; |
46 | 44 | } |
47 | 45 |
|
48 | | - @Override |
49 | | - public Integer getVncPort() { |
50 | | - return vncPort; |
| 46 | + public String getHypervisorToolsVersion() { |
| 47 | + return hypervisortoolsversion; |
51 | 48 | } |
52 | 49 |
|
53 | 50 | public Integer getTimeOffset() { |
|
0 commit comments