|
32 | 32 |
|
33 | 33 | import javax.naming.ConfigurationException; |
34 | 34 |
|
35 | | -import org.apache.cloudstack.managed.context.ManagedContextRunnable; |
36 | 35 | import org.apache.log4j.Logger; |
37 | 36 |
|
| 37 | +import com.google.gson.Gson; |
| 38 | + |
| 39 | +import org.apache.cloudstack.managed.context.ManagedContextRunnable; |
| 40 | + |
38 | 41 | import com.cloud.agent.Agent.ExitStatus; |
39 | 42 | import com.cloud.agent.api.AgentControlAnswer; |
40 | 43 | import com.cloud.agent.api.Answer; |
|
61 | 64 | import com.cloud.utils.NumbersUtil; |
62 | 65 | import com.cloud.utils.net.NetUtils; |
63 | 66 | import com.cloud.utils.script.Script; |
64 | | -import com.google.gson.Gson; |
65 | 67 |
|
66 | 68 | /** |
67 | 69 | * |
@@ -130,19 +132,6 @@ private void disableRpFilter() { |
130 | 132 | } |
131 | 133 | } |
132 | 134 |
|
133 | | - private boolean copyCertToDirectory(String certificate, String filePath) |
134 | | - throws IOException { |
135 | | - boolean success; |
136 | | - // copy cert to the dir |
137 | | - FileWriter fstream = new FileWriter(filePath); |
138 | | - BufferedWriter out = new BufferedWriter(fstream); |
139 | | - out.write(certificate); |
140 | | - // Close the output stream |
141 | | - out.close(); |
142 | | - success = true; |
143 | | - return success; |
144 | | - } |
145 | | - |
146 | 135 | protected Answer execute(final CheckConsoleProxyLoadCommand cmd) { |
147 | 136 | return executeProxyLoadScan(cmd, cmd.getProxyVmId(), |
148 | 137 | cmd.getProxyVmName(), cmd.getProxyManagementIp(), |
@@ -204,6 +193,7 @@ protected String getDefaultScriptsDir() { |
204 | 193 | return null; |
205 | 194 | } |
206 | 195 |
|
| 196 | + @Override |
207 | 197 | public Type getType() { |
208 | 198 | return Host.Type.ConsoleProxy; |
209 | 199 | } |
|
0 commit comments