|
16 | 16 | // under the License. |
17 | 17 | package com.cloud.agent; |
18 | 18 |
|
| 19 | +import com.cloud.agent.Agent.ExitStatus; |
| 20 | +import com.cloud.agent.dao.StorageComponent; |
| 21 | +import com.cloud.agent.dao.impl.PropertiesStorage; |
| 22 | +import com.cloud.resource.ServerResource; |
| 23 | +import com.cloud.utils.LogUtils; |
| 24 | +import com.cloud.utils.NumbersUtil; |
| 25 | +import com.cloud.utils.ProcessUtil; |
| 26 | +import com.cloud.utils.PropertiesUtil; |
| 27 | +import com.cloud.utils.backoff.BackoffAlgorithm; |
| 28 | +import com.cloud.utils.backoff.impl.ConstantTimeBackoff; |
| 29 | +import com.cloud.utils.exception.CloudRuntimeException; |
| 30 | +import org.apache.commons.daemon.Daemon; |
| 31 | +import org.apache.commons.daemon.DaemonContext; |
| 32 | +import org.apache.commons.daemon.DaemonInitException; |
| 33 | +import org.apache.commons.lang.math.NumberUtils; |
| 34 | +import org.apache.commons.lang3.StringUtils; |
| 35 | +import org.apache.log4j.Logger; |
| 36 | +import org.apache.log4j.xml.DOMConfigurator; |
| 37 | + |
| 38 | +import javax.naming.ConfigurationException; |
19 | 39 | import java.io.File; |
20 | 40 | import java.io.FileNotFoundException; |
21 | 41 | import java.io.IOException; |
|
30 | 50 | import java.util.Properties; |
31 | 51 | import java.util.UUID; |
32 | 52 |
|
33 | | -import javax.naming.ConfigurationException; |
34 | | - |
35 | | -import org.apache.commons.daemon.Daemon; |
36 | | -import org.apache.commons.daemon.DaemonContext; |
37 | | -import org.apache.commons.daemon.DaemonInitException; |
38 | | -import org.apache.commons.lang.math.NumberUtils; |
39 | | -import org.apache.commons.lang3.StringUtils; |
40 | | -import org.apache.log4j.Logger; |
41 | | -import org.apache.log4j.xml.DOMConfigurator; |
42 | | - |
43 | | -import com.cloud.agent.Agent.ExitStatus; |
44 | | -import com.cloud.agent.dao.StorageComponent; |
45 | | -import com.cloud.agent.dao.impl.PropertiesStorage; |
46 | | -import com.cloud.resource.ServerResource; |
47 | | -import com.cloud.utils.LogUtils; |
48 | | -import com.cloud.utils.NumbersUtil; |
49 | | -import com.cloud.utils.ProcessUtil; |
50 | | -import com.cloud.utils.PropertiesUtil; |
51 | | -import com.cloud.utils.backoff.BackoffAlgorithm; |
52 | | -import com.cloud.utils.backoff.impl.ConstantTimeBackoff; |
53 | | -import com.cloud.utils.exception.CloudRuntimeException; |
54 | | - |
55 | 53 | public class AgentShell implements IAgentShell, Daemon { |
56 | 54 | private static final Logger s_logger = Logger.getLogger(AgentShell.class.getName()); |
57 | 55 |
|
@@ -423,13 +421,13 @@ private void launchAgentFromClassInfo(String resourceClassNames) throws Configur |
423 | 421 | } catch (final ClassNotFoundException e) { |
424 | 422 | throw new ConfigurationException("Resource class not found: " + name + " due to: " + e.toString()); |
425 | 423 | } catch (final SecurityException e) { |
426 | | - throw new ConfigurationException("Security excetion when loading resource: " + name + " due to: " + e.toString()); |
| 424 | + throw new ConfigurationException("Security exception when loading resource: " + name + " due to: " + e.toString()); |
427 | 425 | } catch (final NoSuchMethodException e) { |
428 | | - throw new ConfigurationException("Method not found excetion when loading resource: " + name + " due to: " + e.toString()); |
| 426 | + throw new ConfigurationException("Method not found exception when loading resource: " + name + " due to: " + e.toString()); |
429 | 427 | } catch (final IllegalArgumentException e) { |
430 | | - throw new ConfigurationException("Illegal argument excetion when loading resource: " + name + " due to: " + e.toString()); |
| 428 | + throw new ConfigurationException("Illegal argument exception when loading resource: " + name + " due to: " + e.toString()); |
431 | 429 | } catch (final InstantiationException e) { |
432 | | - throw new ConfigurationException("Instantiation excetion when loading resource: " + name + " due to: " + e.toString()); |
| 430 | + throw new ConfigurationException("Instantiation exception when loading resource: " + name + " due to: " + e.toString()); |
433 | 431 | } catch (final IllegalAccessException e) { |
434 | 432 | throw new ConfigurationException("Illegal access exception when loading resource: " + name + " due to: " + e.toString()); |
435 | 433 | } catch (final InvocationTargetException e) { |
|
0 commit comments