incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [8/43] git commit: refs/heads/ui-plugins - agent: Remove the main() method from LibvirtComputingResource
Date Fri, 08 Feb 2013 21:10:34 GMT
agent: Remove the main() method from LibvirtComputingResource

Seems like very ancient code which is not needed.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/f6c4b221
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/f6c4b221
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/f6c4b221

Branch: refs/heads/ui-plugins
Commit: f6c4b221395b08a809c3e05baca2b39ca162c778
Parents: 2f44ed0
Author: Wido den Hollander <wido@widodh.nl>
Authored: Thu Feb 7 19:41:15 2013 +0100
Committer: Wido den Hollander <wido@widodh.nl>
Committed: Thu Feb 7 23:06:44 2013 +0100

----------------------------------------------------------------------
 .../kvm/resource/LibvirtComputingResource.java     |   22 ---------------
 1 files changed, 0 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f6c4b221/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
index f320a66..4acd083 100755
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
@@ -1064,28 +1064,6 @@ ServerResource {
         return true;
     }
 
-    public static void main(String[] args) {
-        s_logger.addAppender(new org.apache.log4j.ConsoleAppender(
-                new org.apache.log4j.PatternLayout(), "System.out"));
-        LibvirtComputingResource test = new LibvirtComputingResource();
-        Map<String, Object> params = new HashMap<String, Object>();
-        try {
-            test.configure("test", params);
-        } catch (ConfigurationException e) {
-            System.out.println(e.getMessage());
-            e.printStackTrace();
-        }
-        String result = null;
-        // String result = test.startDomainRouter("domr1",
-        // "/var/lib/images/centos.5-4.x86-64/centos-small.img", 128, "0064",
-        // "02:00:30:00:01:01", "00:16:3e:77:e2:a1", "02:00:30:00:64:01");
-        boolean created = (result == null);
-        s_logger.info("Domain " + (created ? " " : " not ") + " created");
-
-        s_logger.info("Rule " + (created ? " " : " not ") + " created");
-        test.stop();
-    }
-
     @Override
     public Answer executeRequest(Command cmd) {
 


Mime
View raw message