reduce agent package size

This commit is contained in:
Edison Su 2011-06-13 18:14:42 -04:00
parent 1ac7276942
commit 5b19a5e731
3 changed files with 26 additions and 11 deletions

View File

@ -484,19 +484,19 @@ public class AgentShell implements IAgentShell {
ServerResource resource = (ServerResource)constructor.newInstance(); ServerResource resource = (ServerResource)constructor.newInstance();
launchAgent(getNextAgentId(), resource); launchAgent(getNextAgentId(), resource);
} catch (final ClassNotFoundException e) { } catch (final ClassNotFoundException e) {
throw new ConfigurationException("Resource class not found: " + name); throw new ConfigurationException("Resource class not found: " + name + " due to: " + e.toString());
} catch (final SecurityException e) { } catch (final SecurityException e) {
throw new ConfigurationException("Security excetion when loading resource: " + name); throw new ConfigurationException("Security excetion when loading resource: " + name + " due to: " + e.toString());
} catch (final NoSuchMethodException e) { } catch (final NoSuchMethodException e) {
throw new ConfigurationException("Method not found excetion when loading resource: " + name); throw new ConfigurationException("Method not found excetion when loading resource: " + name + " due to: " + e.toString());
} catch (final IllegalArgumentException e) { } catch (final IllegalArgumentException e) {
throw new ConfigurationException("Illegal argument excetion when loading resource: " + name); throw new ConfigurationException("Illegal argument excetion when loading resource: " + name + " due to: " + e.toString());
} catch (final InstantiationException e) { } catch (final InstantiationException e) {
throw new ConfigurationException("Instantiation excetion when loading resource: " + name); throw new ConfigurationException("Instantiation excetion when loading resource: " + name + " due to: " + e.toString());
} catch (final IllegalAccessException e) { } catch (final IllegalAccessException e) {
throw new ConfigurationException("Illegal access exception when loading resource: " + name); throw new ConfigurationException("Illegal access exception when loading resource: " + name + " due to: " + e.toString());
} catch (final InvocationTargetException e) { } catch (final InvocationTargetException e) {
throw new ConfigurationException("Invocation target exception when loading resource: " + name); throw new ConfigurationException("Invocation target exception when loading resource: " + name + " due to: " + e.toString());
} }
} }
} }

3
debian/cloud-agent-deps.install vendored Normal file
View File

@ -0,0 +1,3 @@
/usr/share/java/cloud-gson.jar
/usr/share/java/cloud-libvirt-0.4.5.jar
/usr/share/java/cloud-apache-log4j-extras-1.0.jar

20
debian/control vendored
View File

@ -17,6 +17,18 @@ Description: Cloud.com library dependencies
not shipped by distributions, required to run the Cloud.com not shipped by distributions, required to run the Cloud.com
Cloud Stack. Cloud Stack.
Package: cloud-agent-deps
Provides: cloud-agent-deps
Conflicts: cloud-agent-deps
Replaces: cloud-agent-deps
Architecture: any
Depends: openjdk-6-jre
Description: Cloud.com agent library dependencies
This package contains a number of third-party dependencies
not shipped by distributions, required to run the Cloud.com
Cloud Stack.
Package: cloud-utils Package: cloud-utils
Provides: vmops-utils Provides: vmops-utils
Conflicts: vmops-utils Conflicts: vmops-utils
@ -86,7 +98,7 @@ Provides: vmops-core
Conflicts: vmops-core Conflicts: vmops-core
Replaces: vmops-core Replaces: vmops-core
Architecture: any Architecture: any
Depends: openjdk-6-jre, cloud-deps (= ${source:Version}), cloud-utils (= ${source:Version}) Depends: openjdk-6-jre, cloud-utils (= ${source:Version})
Description: Cloud.com core library Description: Cloud.com core library
The Cloud.com core libraries provide a set of Java classes used The Cloud.com core libraries provide a set of Java classes used
in the Cloud.com Cloud Stack. in the Cloud.com Cloud Stack.
@ -131,7 +143,7 @@ Description: Cloud.com Python library
Package: cloud-agent-libs Package: cloud-agent-libs
Architecture: any Architecture: any
Depends: openjdk-6-jre, cloud-utils (= ${source:Version}), cloud-core (= ${source:Version}), cloud-deps (= ${source:Version}), libcommons-httpclient-java, libcommons-collections-java, libcommons-dbcp-java, libcommons-pool-java, libcommons-logging-java Depends: openjdk-6-jre, cloud-utils (= ${source:Version}), cloud-core (= ${source:Version}), cloud-agent-deps (= ${source:Version}), libcommons-httpclient-java, libcommons-collections-java, libcommons-dbcp-java, libcommons-pool-java, libcommons-logging-java
Description: Cloud.com agent libraries Description: Cloud.com agent libraries
The Cloud.com agent libraries are used by the Cloud Agent and the Cloud The Cloud.com agent libraries are used by the Cloud Agent and the Cloud
Console Proxy. Console Proxy.
@ -141,7 +153,7 @@ Provides: vmops-agent
Conflicts: vmops-agent Conflicts: vmops-agent
Replaces: vmops-agent Replaces: vmops-agent
Architecture: any Architecture: any
Depends: openjdk-6-jre, cloud-utils (= ${source:Version}), cloud-core (= ${source:Version}), cloud-deps (= ${source:Version}), python, cloud-python (= ${source:Version}), cloud-agent-libs (= ${source:Version}), cloud-agent-scripts (= ${source:Version}), libcommons-httpclient-java, libcommons-collections-java, libcommons-dbcp-java, libcommons-pool-java, libcommons-logging-java, libvirt0, cloud-daemonize, sysvinit-utils, chkconfig, qemu-kvm, libvirt-bin, uuid-runtime, rsync, grep, iproute, jnetpcap, ebtables, vlan Depends: openjdk-6-jre, cloud-utils (= ${source:Version}), cloud-core (= ${source:Version}), cloud-agent-deps (= ${source:Version}), python, cloud-python (= ${source:Version}), cloud-agent-libs (= ${source:Version}), cloud-agent-scripts (= ${source:Version}), libcommons-httpclient-java, libcommons-collections-java, libcommons-dbcp-java, libcommons-pool-java, libcommons-logging-java, libvirt0, cloud-daemonize, sysvinit-utils, chkconfig, qemu-kvm, libvirt-bin, uuid-runtime, rsync, grep, iproute, jnetpcap, ebtables, vlan, libcglib-java, libcommons-httpclient-java, libservlet2.5-java, liblog4j1.2-java, libjna-java
Description: Cloud.com agent Description: Cloud.com agent
The Cloud.com agent is in charge of managing shared computing resources in The Cloud.com agent is in charge of managing shared computing resources in
a Cloud.com Cloud Stack-powered cloud. Install this package if this computer a Cloud.com Cloud Stack-powered cloud. Install this package if this computer
@ -149,7 +161,7 @@ Description: Cloud.com agent
Package: cloud-agent-premium Package: cloud-agent-premium
Architecture: any Architecture: any
Depends: cloud-agent Depends: cloud-agent, libjetty-java
Description: Cloud.com agent premium Description: Cloud.com agent premium
The Cloud.com agent is in charge of managing shared computing resources in The Cloud.com agent is in charge of managing shared computing resources in
a Cloud.com Cloud Stack-powered cloud. Install this package if this computer a Cloud.com Cloud Stack-powered cloud. Install this package if this computer