|
23 | 23 |
|
24 | 24 | import com.cloud.agent.api.Answer; |
25 | 25 | import com.cloud.agent.api.Command; |
| 26 | +import com.cloud.agent.manager.AgentAttache; |
26 | 27 | import com.cloud.agent.manager.Commands; |
| 28 | +import com.cloud.api.commands.UpdateHostPasswordCmd; |
27 | 29 | import com.cloud.dc.DataCenterVO; |
28 | 30 | import com.cloud.dc.HostPodVO; |
29 | 31 | import com.cloud.dc.PodCluster; |
30 | 32 | import com.cloud.exception.AgentUnavailableException; |
31 | | -import com.cloud.exception.DiscoveryException; |
32 | | -import com.cloud.exception.InvalidParameterValueException; |
33 | 33 | import com.cloud.exception.OperationTimedoutException; |
34 | 34 | import com.cloud.host.Host; |
35 | 35 | import com.cloud.host.Host.Type; |
36 | 36 | import com.cloud.host.HostStats; |
37 | | -import com.cloud.host.HostVO; |
38 | 37 | import com.cloud.host.Status; |
39 | 38 | import com.cloud.host.Status.Event; |
40 | 39 | import com.cloud.hypervisor.Hypervisor.HypervisorType; |
@@ -137,16 +136,16 @@ public enum OnError { |
137 | 136 | * @return id to unregister if needed. |
138 | 137 | */ |
139 | 138 | int registerForHostEvents(Listener listener, boolean connections, boolean commands, boolean priority); |
140 | | - |
141 | | - |
| 139 | + |
| 140 | + |
142 | 141 | /** |
143 | | - * Register to listen for initial agent connections. |
| 142 | + * Register to listen for initial agent connections. |
144 | 143 | * @param creator |
145 | 144 | * @param priority in listening for events. |
146 | 145 | * @return id to unregister if needed. |
147 | 146 | */ |
148 | 147 | int registerForInitialConnects(StartupCommandProcessor creator, boolean priority); |
149 | | - |
| 148 | + |
150 | 149 | /** |
151 | 150 | * Unregister for listening to host events. |
152 | 151 | * |
@@ -253,14 +252,16 @@ public enum OnError { |
253 | 252 |
|
254 | 253 | public boolean reconnect(final long hostId) throws AgentUnavailableException; |
255 | 254 |
|
256 | | - public List<HostVO> discoverHosts(Long dcId, Long podId, Long clusterId, String clusterName, String url, String username, String password, String hypervisor, List<String> hostTags) |
257 | | - throws IllegalArgumentException, DiscoveryException, InvalidParameterValueException; |
258 | | - |
259 | 255 | Answer easySend(Long hostId, Command cmd, int timeout); |
260 | 256 |
|
261 | 257 | boolean isHostNativeHAEnabled(long hostId); |
262 | 258 |
|
263 | 259 | Answer sendTo(Long dcId, HypervisorType type, Command cmd); |
264 | 260 |
|
265 | 261 | void notifyAnswersToMonitors(long agentId, long seq, Answer[] answers); |
| 262 | + |
| 263 | + AgentAttache simulateStart(Long id, ServerResource resource, Map<String, String> details, boolean old, List<String> hostTags, String allocationState) throws IllegalArgumentException; |
| 264 | + |
| 265 | + boolean updateHostPassword(UpdateHostPasswordCmd upasscmd); |
| 266 | + |
266 | 267 | } |
0 commit comments