cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelv...@apache.org
Subject [18/38] m2e doesn't like it when the project root is the source folder
Date Fri, 24 Aug 2012 21:26:36 GMT
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/c6a9e1b3/deps/XenServerJava/com/xensource/xenapi/VMGuestMetrics.java
----------------------------------------------------------------------
diff --git a/deps/XenServerJava/com/xensource/xenapi/VMGuestMetrics.java b/deps/XenServerJava/com/xensource/xenapi/VMGuestMetrics.java
deleted file mode 100644
index 12dd26a..0000000
--- a/deps/XenServerJava/com/xensource/xenapi/VMGuestMetrics.java
+++ /dev/null
@@ -1,465 +0,0 @@
-// Copyright 2012 Citrix Systems, Inc. Licensed under the
-// Apache License, Version 2.0 (the "License"); you may not use this
-// file except in compliance with the License.  Citrix Systems, Inc.
-// reserves all rights not expressly granted by the License.
-// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// 
-// Automatically generated by addcopyright.py at 04/03/2012
-package com.xensource.xenapi;
-
-import com.xensource.xenapi.Types.BadServerResponse;
-import com.xensource.xenapi.Types.VersionException;
-import com.xensource.xenapi.Types.XenAPIException;
-
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.LinkedHashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.xmlrpc.XmlRpcException;
-
-/**
- * The metrics reported by the guest (as opposed to inferred from outside)
- *
- * @author Citrix Systems, Inc.
- */
-public class VMGuestMetrics extends XenAPIObject {
-
-    /**
-     * The XenAPI reference to this object.
-     */
-    protected final String ref;
-
-    /**
-     * For internal use only.
-     */
-    VMGuestMetrics(String ref) {
-       this.ref = ref;
-    }
-
-    public String toWireString() {
-       return this.ref;
-    }
-
-    /**
-     * If obj is a VMGuestMetrics, compares XenAPI references for equality.
-     */
-    @Override
-    public boolean equals(Object obj)
-    {
-        if (obj != null && obj instanceof VMGuestMetrics)
-        {
-            VMGuestMetrics other = (VMGuestMetrics) obj;
-            return other.ref.equals(this.ref);
-        } else
-        {
-            return false;
-        }
-    }
-
-    @Override
-    public int hashCode()
-    {
-        return ref.hashCode();
-    }
-
-    /**
-     * Represents all the fields in a VMGuestMetrics
-     */
-    public static class Record implements Types.Record {
-        public String toString() {
-            StringWriter writer = new StringWriter();
-            PrintWriter print = new PrintWriter(writer);
-            print.printf("%1$20s: %2$s\n", "uuid", this.uuid);
-            print.printf("%1$20s: %2$s\n", "osVersion", this.osVersion);
-            print.printf("%1$20s: %2$s\n", "PVDriversVersion", this.PVDriversVersion);
-            print.printf("%1$20s: %2$s\n", "PVDriversUpToDate", this.PVDriversUpToDate);
-            print.printf("%1$20s: %2$s\n", "memory", this.memory);
-            print.printf("%1$20s: %2$s\n", "disks", this.disks);
-            print.printf("%1$20s: %2$s\n", "networks", this.networks);
-            print.printf("%1$20s: %2$s\n", "other", this.other);
-            print.printf("%1$20s: %2$s\n", "lastUpdated", this.lastUpdated);
-            print.printf("%1$20s: %2$s\n", "otherConfig", this.otherConfig);
-            print.printf("%1$20s: %2$s\n", "live", this.live);
-            return writer.toString();
-        }
-
-        /**
-         * Convert a VM_guest_metrics.Record to a Map
-         */
-        public Map<String,Object> toMap() {
-            Map<String,Object> map = new HashMap<String,Object>();
-            map.put("uuid", this.uuid == null ? "" : this.uuid);
-            map.put("os_version", this.osVersion == null ? new HashMap<String, String>() : this.osVersion);
-            map.put("PV_drivers_version", this.PVDriversVersion == null ? new HashMap<String, String>() : this.PVDriversVersion);
-            map.put("PV_drivers_up_to_date", this.PVDriversUpToDate == null ? false : this.PVDriversUpToDate);
-            map.put("memory", this.memory == null ? new HashMap<String, String>() : this.memory);
-            map.put("disks", this.disks == null ? new HashMap<String, String>() : this.disks);
-            map.put("networks", this.networks == null ? new HashMap<String, String>() : this.networks);
-            map.put("other", this.other == null ? new HashMap<String, String>() : this.other);
-            map.put("last_updated", this.lastUpdated == null ? new Date(0) : this.lastUpdated);
-            map.put("other_config", this.otherConfig == null ? new HashMap<String, String>() : this.otherConfig);
-            map.put("live", this.live == null ? false : this.live);
-            return map;
-        }
-
-        /**
-         * Unique identifier/object reference
-         */
-        public String uuid;
-        /**
-         * version of the OS
-         */
-        public Map<String, String> osVersion;
-        /**
-         * version of the PV drivers
-         */
-        public Map<String, String> PVDriversVersion;
-        /**
-         * true if the PV drivers appear to be up to date
-         */
-        public Boolean PVDriversUpToDate;
-        /**
-         * free/used/total memory
-         */
-        public Map<String, String> memory;
-        /**
-         * disk configuration/free space
-         */
-        public Map<String, String> disks;
-        /**
-         * network configuration
-         */
-        public Map<String, String> networks;
-        /**
-         * anything else
-         */
-        public Map<String, String> other;
-        /**
-         * Time at which this information was last updated
-         */
-        public Date lastUpdated;
-        /**
-         * additional configuration
-         */
-        public Map<String, String> otherConfig;
-        /**
-         * True if the guest is sending heartbeat messages via the guest agent
-         */
-        public Boolean live;
-    }
-
-    /**
-     * Get a record containing the current state of the given VM_guest_metrics.
-     *
-     * @return all fields from the object
-     */
-    public VMGuestMetrics.Record getRecord(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_record";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toVMGuestMetricsRecord(result);
-    }
-
-    /**
-     * Get a reference to the VM_guest_metrics instance with the specified UUID.
-     *
-     * @param uuid UUID of object to return
-     * @return reference to the object
-     */
-    public static VMGuestMetrics getByUuid(Connection c, String uuid) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_by_uuid";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(uuid)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toVMGuestMetrics(result);
-    }
-
-    /**
-     * Get the uuid field of the given VM_guest_metrics.
-     *
-     * @return value of the field
-     */
-    public String getUuid(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_uuid";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toString(result);
-    }
-
-    /**
-     * Get the os_version field of the given VM_guest_metrics.
-     *
-     * @return value of the field
-     */
-    public Map<String, String> getOsVersion(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_os_version";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
-    }
-
-    /**
-     * Get the PV_drivers_version field of the given VM_guest_metrics.
-     *
-     * @return value of the field
-     */
-    public Map<String, String> getPVDriversVersion(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_PV_drivers_version";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
-    }
-
-    /**
-     * Get the PV_drivers_up_to_date field of the given VM_guest_metrics.
-     *
-     * @return value of the field
-     */
-    public Boolean getPVDriversUpToDate(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_PV_drivers_up_to_date";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toBoolean(result);
-    }
-
-    /**
-     * Get the memory field of the given VM_guest_metrics.
-     *
-     * @return value of the field
-     */
-    public Map<String, String> getMemory(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_memory";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
-    }
-
-    /**
-     * Get the disks field of the given VM_guest_metrics.
-     *
-     * @return value of the field
-     */
-    public Map<String, String> getDisks(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_disks";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
-    }
-
-    /**
-     * Get the networks field of the given VM_guest_metrics.
-     *
-     * @return value of the field
-     */
-    public Map<String, String> getNetworks(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_networks";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
-    }
-
-    /**
-     * Get the other field of the given VM_guest_metrics.
-     *
-     * @return value of the field
-     */
-    public Map<String, String> getOther(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_other";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
-    }
-
-    /**
-     * Get the last_updated field of the given VM_guest_metrics.
-     *
-     * @return value of the field
-     */
-    public Date getLastUpdated(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_last_updated";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toDate(result);
-    }
-
-    /**
-     * Get the other_config field of the given VM_guest_metrics.
-     *
-     * @return value of the field
-     */
-    public Map<String, String> getOtherConfig(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_other_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
-    }
-
-    /**
-     * Get the live field of the given VM_guest_metrics.
-     *
-     * @return value of the field
-     */
-    public Boolean getLive(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_live";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toBoolean(result);
-    }
-
-    /**
-     * Set the other_config field of the given VM_guest_metrics.
-     *
-     * @param otherConfig New value to set
-     */
-    public void setOtherConfig(Connection c, Map<String, String> otherConfig) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.set_other_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(otherConfig)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Add the given key-value pair to the other_config field of the given VM_guest_metrics.
-     *
-     * @param key Key to add
-     * @param value Value to add
-     */
-    public void addToOtherConfig(Connection c, String key, String value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.add_to_other_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Remove the given key and its corresponding value from the other_config field of the given VM_guest_metrics.  If the key is not in that Map, then do nothing.
-     *
-     * @param key Key to remove
-     */
-    public void removeFromOtherConfig(Connection c, String key) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.remove_from_other_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Return a list of all the VM_guest_metrics instances known to the system.
-     *
-     * @return references to all objects
-     */
-    public static Set<VMGuestMetrics> getAll(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_all";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toSetOfVMGuestMetrics(result);
-    }
-
-    /**
-     * Return a map of VM_guest_metrics references to VM_guest_metrics records for all VM_guest_metrics instances known to the system.
-     *
-     * @return records of all objects
-     */
-    public static Map<VMGuestMetrics, VMGuestMetrics.Record> getAllRecords(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_guest_metrics.get_all_records";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfVMGuestMetricsVMGuestMetricsRecord(result);
-    }
-
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/c6a9e1b3/deps/XenServerJava/com/xensource/xenapi/VMMetrics.java
----------------------------------------------------------------------
diff --git a/deps/XenServerJava/com/xensource/xenapi/VMMetrics.java b/deps/XenServerJava/com/xensource/xenapi/VMMetrics.java
deleted file mode 100644
index 47634e9..0000000
--- a/deps/XenServerJava/com/xensource/xenapi/VMMetrics.java
+++ /dev/null
@@ -1,488 +0,0 @@
-// Copyright 2012 Citrix Systems, Inc. Licensed under the
-// Apache License, Version 2.0 (the "License"); you may not use this
-// file except in compliance with the License.  Citrix Systems, Inc.
-// reserves all rights not expressly granted by the License.
-// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// 
-// Automatically generated by addcopyright.py at 04/03/2012
-package com.xensource.xenapi;
-
-import com.xensource.xenapi.Types.BadServerResponse;
-import com.xensource.xenapi.Types.VersionException;
-import com.xensource.xenapi.Types.XenAPIException;
-
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.LinkedHashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.xmlrpc.XmlRpcException;
-
-/**
- * The metrics associated with a VM
- *
- * @author Citrix Systems, Inc.
- */
-public class VMMetrics extends XenAPIObject {
-
-    /**
-     * The XenAPI reference to this object.
-     */
-    protected final String ref;
-
-    /**
-     * For internal use only.
-     */
-    VMMetrics(String ref) {
-       this.ref = ref;
-    }
-
-    public String toWireString() {
-       return this.ref;
-    }
-
-    /**
-     * If obj is a VMMetrics, compares XenAPI references for equality.
-     */
-    @Override
-    public boolean equals(Object obj)
-    {
-        if (obj != null && obj instanceof VMMetrics)
-        {
-            VMMetrics other = (VMMetrics) obj;
-            return other.ref.equals(this.ref);
-        } else
-        {
-            return false;
-        }
-    }
-
-    @Override
-    public int hashCode()
-    {
-        return ref.hashCode();
-    }
-
-    /**
-     * Represents all the fields in a VMMetrics
-     */
-    public static class Record implements Types.Record {
-        public String toString() {
-            StringWriter writer = new StringWriter();
-            PrintWriter print = new PrintWriter(writer);
-            print.printf("%1$20s: %2$s\n", "uuid", this.uuid);
-            print.printf("%1$20s: %2$s\n", "memoryActual", this.memoryActual);
-            print.printf("%1$20s: %2$s\n", "VCPUsNumber", this.VCPUsNumber);
-            print.printf("%1$20s: %2$s\n", "VCPUsUtilisation", this.VCPUsUtilisation);
-            print.printf("%1$20s: %2$s\n", "VCPUsCPU", this.VCPUsCPU);
-            print.printf("%1$20s: %2$s\n", "VCPUsParams", this.VCPUsParams);
-            print.printf("%1$20s: %2$s\n", "VCPUsFlags", this.VCPUsFlags);
-            print.printf("%1$20s: %2$s\n", "state", this.state);
-            print.printf("%1$20s: %2$s\n", "startTime", this.startTime);
-            print.printf("%1$20s: %2$s\n", "installTime", this.installTime);
-            print.printf("%1$20s: %2$s\n", "lastUpdated", this.lastUpdated);
-            print.printf("%1$20s: %2$s\n", "otherConfig", this.otherConfig);
-            return writer.toString();
-        }
-
-        /**
-         * Convert a VM_metrics.Record to a Map
-         */
-        public Map<String,Object> toMap() {
-            Map<String,Object> map = new HashMap<String,Object>();
-            map.put("uuid", this.uuid == null ? "" : this.uuid);
-            map.put("memory_actual", this.memoryActual == null ? 0 : this.memoryActual);
-            map.put("VCPUs_number", this.VCPUsNumber == null ? 0 : this.VCPUsNumber);
-            map.put("VCPUs_utilisation", this.VCPUsUtilisation == null ? new HashMap<Long, Double>() : this.VCPUsUtilisation);
-            map.put("VCPUs_CPU", this.VCPUsCPU == null ? new HashMap<Long, Long>() : this.VCPUsCPU);
-            map.put("VCPUs_params", this.VCPUsParams == null ? new HashMap<String, String>() : this.VCPUsParams);
-            map.put("VCPUs_flags", this.VCPUsFlags == null ? new HashMap<Long, Set<String>>() : this.VCPUsFlags);
-            map.put("state", this.state == null ? new LinkedHashSet<String>() : this.state);
-            map.put("start_time", this.startTime == null ? new Date(0) : this.startTime);
-            map.put("install_time", this.installTime == null ? new Date(0) : this.installTime);
-            map.put("last_updated", this.lastUpdated == null ? new Date(0) : this.lastUpdated);
-            map.put("other_config", this.otherConfig == null ? new HashMap<String, String>() : this.otherConfig);
-            return map;
-        }
-
-        /**
-         * Unique identifier/object reference
-         */
-        public String uuid;
-        /**
-         * Guest's actual memory (bytes)
-         */
-        public Long memoryActual;
-        /**
-         * Current number of VCPUs
-         */
-        public Long VCPUsNumber;
-        /**
-         * Utilisation for all of guest's current VCPUs
-         */
-        public Map<Long, Double> VCPUsUtilisation;
-        /**
-         * VCPU to PCPU map
-         */
-        public Map<Long, Long> VCPUsCPU;
-        /**
-         * The live equivalent to VM.VCPUs_params
-         */
-        public Map<String, String> VCPUsParams;
-        /**
-         * CPU flags (blocked,online,running)
-         */
-        public Map<Long, Set<String>> VCPUsFlags;
-        /**
-         * The state of the guest, eg blocked, dying etc
-         */
-        public Set<String> state;
-        /**
-         * Time at which this VM was last booted
-         */
-        public Date startTime;
-        /**
-         * Time at which the VM was installed
-         */
-        public Date installTime;
-        /**
-         * Time at which this information was last updated
-         */
-        public Date lastUpdated;
-        /**
-         * additional configuration
-         */
-        public Map<String, String> otherConfig;
-    }
-
-    /**
-     * Get a record containing the current state of the given VM_metrics.
-     *
-     * @return all fields from the object
-     */
-    public VMMetrics.Record getRecord(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_record";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toVMMetricsRecord(result);
-    }
-
-    /**
-     * Get a reference to the VM_metrics instance with the specified UUID.
-     *
-     * @param uuid UUID of object to return
-     * @return reference to the object
-     */
-    public static VMMetrics getByUuid(Connection c, String uuid) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_by_uuid";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(uuid)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toVMMetrics(result);
-    }
-
-    /**
-     * Get the uuid field of the given VM_metrics.
-     *
-     * @return value of the field
-     */
-    public String getUuid(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_uuid";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toString(result);
-    }
-
-    /**
-     * Get the memory/actual field of the given VM_metrics.
-     *
-     * @return value of the field
-     */
-    public Long getMemoryActual(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_memory_actual";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toLong(result);
-    }
-
-    /**
-     * Get the VCPUs/number field of the given VM_metrics.
-     *
-     * @return value of the field
-     */
-    public Long getVCPUsNumber(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_VCPUs_number";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toLong(result);
-    }
-
-    /**
-     * Get the VCPUs/utilisation field of the given VM_metrics.
-     *
-     * @return value of the field
-     */
-    public Map<Long, Double> getVCPUsUtilisation(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_VCPUs_utilisation";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfLongDouble(result);
-    }
-
-    /**
-     * Get the VCPUs/CPU field of the given VM_metrics.
-     *
-     * @return value of the field
-     */
-    public Map<Long, Long> getVCPUsCPU(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_VCPUs_CPU";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfLongLong(result);
-    }
-
-    /**
-     * Get the VCPUs/params field of the given VM_metrics.
-     *
-     * @return value of the field
-     */
-    public Map<String, String> getVCPUsParams(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_VCPUs_params";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
-    }
-
-    /**
-     * Get the VCPUs/flags field of the given VM_metrics.
-     *
-     * @return value of the field
-     */
-    public Map<Long, Set<String>> getVCPUsFlags(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_VCPUs_flags";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfLongSetOfString(result);
-    }
-
-    /**
-     * Get the state field of the given VM_metrics.
-     *
-     * @return value of the field
-     */
-    public Set<String> getState(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_state";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toSetOfString(result);
-    }
-
-    /**
-     * Get the start_time field of the given VM_metrics.
-     *
-     * @return value of the field
-     */
-    public Date getStartTime(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_start_time";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toDate(result);
-    }
-
-    /**
-     * Get the install_time field of the given VM_metrics.
-     *
-     * @return value of the field
-     */
-    public Date getInstallTime(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_install_time";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toDate(result);
-    }
-
-    /**
-     * Get the last_updated field of the given VM_metrics.
-     *
-     * @return value of the field
-     */
-    public Date getLastUpdated(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_last_updated";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toDate(result);
-    }
-
-    /**
-     * Get the other_config field of the given VM_metrics.
-     *
-     * @return value of the field
-     */
-    public Map<String, String> getOtherConfig(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_other_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
-    }
-
-    /**
-     * Set the other_config field of the given VM_metrics.
-     *
-     * @param otherConfig New value to set
-     */
-    public void setOtherConfig(Connection c, Map<String, String> otherConfig) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.set_other_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(otherConfig)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Add the given key-value pair to the other_config field of the given VM_metrics.
-     *
-     * @param key Key to add
-     * @param value Value to add
-     */
-    public void addToOtherConfig(Connection c, String key, String value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.add_to_other_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Remove the given key and its corresponding value from the other_config field of the given VM_metrics.  If the key is not in that Map, then do nothing.
-     *
-     * @param key Key to remove
-     */
-    public void removeFromOtherConfig(Connection c, String key) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.remove_from_other_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Return a list of all the VM_metrics instances known to the system.
-     *
-     * @return references to all objects
-     */
-    public static Set<VMMetrics> getAll(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_all";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toSetOfVMMetrics(result);
-    }
-
-    /**
-     * Return a map of VM_metrics references to VM_metrics records for all VM_metrics instances known to the system.
-     *
-     * @return records of all objects
-     */
-    public static Map<VMMetrics, VMMetrics.Record> getAllRecords(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VM_metrics.get_all_records";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfVMMetricsVMMetricsRecord(result);
-    }
-
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/c6a9e1b3/deps/XenServerJava/com/xensource/xenapi/VMPP.java
----------------------------------------------------------------------
diff --git a/deps/XenServerJava/com/xensource/xenapi/VMPP.java b/deps/XenServerJava/com/xensource/xenapi/VMPP.java
deleted file mode 100644
index 5df76ad..0000000
--- a/deps/XenServerJava/com/xensource/xenapi/VMPP.java
+++ /dev/null
@@ -1,1136 +0,0 @@
-// Copyright 2012 Citrix Systems, Inc. Licensed under the
-// Apache License, Version 2.0 (the "License"); you may not use this
-// file except in compliance with the License.  Citrix Systems, Inc.
-// reserves all rights not expressly granted by the License.
-// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// 
-// Automatically generated by addcopyright.py at 04/03/2012
-package com.xensource.xenapi;
-
-import com.xensource.xenapi.Types.BadServerResponse;
-import com.xensource.xenapi.Types.VersionException;
-import com.xensource.xenapi.Types.XenAPIException;
-
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.LinkedHashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.xmlrpc.XmlRpcException;
-
-/**
- * VM Protection Policy
- *
- * @author Citrix Systems, Inc.
- */
-public class VMPP extends XenAPIObject {
-
-    /**
-     * The XenAPI reference to this object.
-     */
-    protected final String ref;
-
-    /**
-     * For internal use only.
-     */
-    VMPP(String ref) {
-       this.ref = ref;
-    }
-
-    public String toWireString() {
-       return this.ref;
-    }
-
-    /**
-     * If obj is a VMPP, compares XenAPI references for equality.
-     */
-    @Override
-    public boolean equals(Object obj)
-    {
-        if (obj != null && obj instanceof VMPP)
-        {
-            VMPP other = (VMPP) obj;
-            return other.ref.equals(this.ref);
-        } else
-        {
-            return false;
-        }
-    }
-
-    @Override
-    public int hashCode()
-    {
-        return ref.hashCode();
-    }
-
-    /**
-     * Represents all the fields in a VMPP
-     */
-    public static class Record implements Types.Record {
-        public String toString() {
-            StringWriter writer = new StringWriter();
-            PrintWriter print = new PrintWriter(writer);
-            print.printf("%1$20s: %2$s\n", "uuid", this.uuid);
-            print.printf("%1$20s: %2$s\n", "nameLabel", this.nameLabel);
-            print.printf("%1$20s: %2$s\n", "nameDescription", this.nameDescription);
-            print.printf("%1$20s: %2$s\n", "isPolicyEnabled", this.isPolicyEnabled);
-            print.printf("%1$20s: %2$s\n", "backupType", this.backupType);
-            print.printf("%1$20s: %2$s\n", "backupRetentionValue", this.backupRetentionValue);
-            print.printf("%1$20s: %2$s\n", "backupFrequency", this.backupFrequency);
-            print.printf("%1$20s: %2$s\n", "backupSchedule", this.backupSchedule);
-            print.printf("%1$20s: %2$s\n", "isBackupRunning", this.isBackupRunning);
-            print.printf("%1$20s: %2$s\n", "backupLastRunTime", this.backupLastRunTime);
-            print.printf("%1$20s: %2$s\n", "archiveTargetType", this.archiveTargetType);
-            print.printf("%1$20s: %2$s\n", "archiveTargetConfig", this.archiveTargetConfig);
-            print.printf("%1$20s: %2$s\n", "archiveFrequency", this.archiveFrequency);
-            print.printf("%1$20s: %2$s\n", "archiveSchedule", this.archiveSchedule);
-            print.printf("%1$20s: %2$s\n", "isArchiveRunning", this.isArchiveRunning);
-            print.printf("%1$20s: %2$s\n", "archiveLastRunTime", this.archiveLastRunTime);
-            print.printf("%1$20s: %2$s\n", "VMs", this.VMs);
-            print.printf("%1$20s: %2$s\n", "isAlarmEnabled", this.isAlarmEnabled);
-            print.printf("%1$20s: %2$s\n", "alarmConfig", this.alarmConfig);
-            print.printf("%1$20s: %2$s\n", "recentAlerts", this.recentAlerts);
-            return writer.toString();
-        }
-
-        /**
-         * Convert a VMPP.Record to a Map
-         */
-        public Map<String,Object> toMap() {
-            Map<String,Object> map = new HashMap<String,Object>();
-            map.put("uuid", this.uuid == null ? "" : this.uuid);
-            map.put("name_label", this.nameLabel == null ? "" : this.nameLabel);
-            map.put("name_description", this.nameDescription == null ? "" : this.nameDescription);
-            map.put("is_policy_enabled", this.isPolicyEnabled == null ? false : this.isPolicyEnabled);
-            map.put("backup_type", this.backupType == null ? Types.VmppBackupType.UNRECOGNIZED : this.backupType);
-            map.put("backup_retention_value", this.backupRetentionValue == null ? 0 : this.backupRetentionValue);
-            map.put("backup_frequency", this.backupFrequency == null ? Types.VmppBackupFrequency.UNRECOGNIZED : this.backupFrequency);
-            map.put("backup_schedule", this.backupSchedule == null ? new HashMap<String, String>() : this.backupSchedule);
-            map.put("is_backup_running", this.isBackupRunning == null ? false : this.isBackupRunning);
-            map.put("backup_last_run_time", this.backupLastRunTime == null ? new Date(0) : this.backupLastRunTime);
-            map.put("archive_target_type", this.archiveTargetType == null ? Types.VmppArchiveTargetType.UNRECOGNIZED : this.archiveTargetType);
-            map.put("archive_target_config", this.archiveTargetConfig == null ? new HashMap<String, String>() : this.archiveTargetConfig);
-            map.put("archive_frequency", this.archiveFrequency == null ? Types.VmppArchiveFrequency.UNRECOGNIZED : this.archiveFrequency);
-            map.put("archive_schedule", this.archiveSchedule == null ? new HashMap<String, String>() : this.archiveSchedule);
-            map.put("is_archive_running", this.isArchiveRunning == null ? false : this.isArchiveRunning);
-            map.put("archive_last_run_time", this.archiveLastRunTime == null ? new Date(0) : this.archiveLastRunTime);
-            map.put("VMs", this.VMs == null ? new LinkedHashSet<VM>() : this.VMs);
-            map.put("is_alarm_enabled", this.isAlarmEnabled == null ? false : this.isAlarmEnabled);
-            map.put("alarm_config", this.alarmConfig == null ? new HashMap<String, String>() : this.alarmConfig);
-            map.put("recent_alerts", this.recentAlerts == null ? new LinkedHashSet<String>() : this.recentAlerts);
-            return map;
-        }
-
-        /**
-         * Unique identifier/object reference
-         */
-        public String uuid;
-        /**
-         * a human-readable name
-         */
-        public String nameLabel;
-        /**
-         * a notes field containg human-readable description
-         */
-        public String nameDescription;
-        /**
-         * enable or disable this policy
-         */
-        public Boolean isPolicyEnabled;
-        /**
-         * type of the backup sub-policy
-         */
-        public Types.VmppBackupType backupType;
-        /**
-         * maximum number of backups that should be stored at any time
-         */
-        public Long backupRetentionValue;
-        /**
-         * frequency of the backup schedule
-         */
-        public Types.VmppBackupFrequency backupFrequency;
-        /**
-         * schedule of the backup containing 'hour', 'min', 'days'. Date/time-related information is in XenServer Local Timezone
-         */
-        public Map<String, String> backupSchedule;
-        /**
-         * true if this protection policy's backup is running
-         */
-        public Boolean isBackupRunning;
-        /**
-         * time of the last backup
-         */
-        public Date backupLastRunTime;
-        /**
-         * type of the archive target config
-         */
-        public Types.VmppArchiveTargetType archiveTargetType;
-        /**
-         * configuration for the archive, including its 'location', 'username', 'password'
-         */
-        public Map<String, String> archiveTargetConfig;
-        /**
-         * frequency of the archive schedule
-         */
-        public Types.VmppArchiveFrequency archiveFrequency;
-        /**
-         * schedule of the archive containing 'hour', 'min', 'days'. Date/time-related information is in XenServer Local Timezone
-         */
-        public Map<String, String> archiveSchedule;
-        /**
-         * true if this protection policy's archive is running
-         */
-        public Boolean isArchiveRunning;
-        /**
-         * time of the last archive
-         */
-        public Date archiveLastRunTime;
-        /**
-         * all VMs attached to this protection policy
-         */
-        public Set<VM> VMs;
-        /**
-         * true if alarm is enabled for this policy
-         */
-        public Boolean isAlarmEnabled;
-        /**
-         * configuration for the alarm
-         */
-        public Map<String, String> alarmConfig;
-        /**
-         * recent alerts
-         */
-        public Set<String> recentAlerts;
-    }
-
-    /**
-     * Get a record containing the current state of the given VMPP.
-     *
-     * @return all fields from the object
-     */
-    public VMPP.Record getRecord(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_record";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toVMPPRecord(result);
-    }
-
-    /**
-     * Get a reference to the VMPP instance with the specified UUID.
-     *
-     * @param uuid UUID of object to return
-     * @return reference to the object
-     */
-    public static VMPP getByUuid(Connection c, String uuid) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_by_uuid";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(uuid)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toVMPP(result);
-    }
-
-    /**
-     * Create a new VMPP instance, and return its handle.
-     *
-     * @param record All constructor arguments
-     * @return Task
-     */
-    public static Task createAsync(Connection c, VMPP.Record record) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "Async.VMPP.create";
-        String session = c.getSessionReference();
-        Map<String, Object> record_map = record.toMap();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(record_map)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-        return Types.toTask(result);
-    }
-
-    /**
-     * Create a new VMPP instance, and return its handle.
-     *
-     * @param record All constructor arguments
-     * @return reference to the newly created object
-     */
-    public static VMPP create(Connection c, VMPP.Record record) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.create";
-        String session = c.getSessionReference();
-        Map<String, Object> record_map = record.toMap();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(record_map)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toVMPP(result);
-    }
-
-    /**
-     * Destroy the specified VMPP instance.
-     *
-     * @return Task
-     */
-    public Task destroyAsync(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "Async.VMPP.destroy";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-        return Types.toTask(result);
-    }
-
-    /**
-     * Destroy the specified VMPP instance.
-     *
-     */
-    public void destroy(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.destroy";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Get all the VMPP instances with the given label.
-     *
-     * @param label label of object to return
-     * @return references to objects with matching names
-     */
-    public static Set<VMPP> getByNameLabel(Connection c, String label) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_by_name_label";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(label)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toSetOfVMPP(result);
-    }
-
-    /**
-     * Get the uuid field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public String getUuid(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_uuid";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toString(result);
-    }
-
-    /**
-     * Get the name/label field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public String getNameLabel(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_name_label";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toString(result);
-    }
-
-    /**
-     * Get the name/description field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public String getNameDescription(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_name_description";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toString(result);
-    }
-
-    /**
-     * Get the is_policy_enabled field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Boolean getIsPolicyEnabled(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_is_policy_enabled";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toBoolean(result);
-    }
-
-    /**
-     * Get the backup_type field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Types.VmppBackupType getBackupType(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_backup_type";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toVmppBackupType(result);
-    }
-
-    /**
-     * Get the backup_retention_value field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Long getBackupRetentionValue(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_backup_retention_value";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toLong(result);
-    }
-
-    /**
-     * Get the backup_frequency field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Types.VmppBackupFrequency getBackupFrequency(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_backup_frequency";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toVmppBackupFrequency(result);
-    }
-
-    /**
-     * Get the backup_schedule field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Map<String, String> getBackupSchedule(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_backup_schedule";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
-    }
-
-    /**
-     * Get the is_backup_running field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Boolean getIsBackupRunning(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_is_backup_running";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toBoolean(result);
-    }
-
-    /**
-     * Get the backup_last_run_time field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Date getBackupLastRunTime(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_backup_last_run_time";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toDate(result);
-    }
-
-    /**
-     * Get the archive_target_type field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Types.VmppArchiveTargetType getArchiveTargetType(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_archive_target_type";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toVmppArchiveTargetType(result);
-    }
-
-    /**
-     * Get the archive_target_config field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Map<String, String> getArchiveTargetConfig(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_archive_target_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
-    }
-
-    /**
-     * Get the archive_frequency field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Types.VmppArchiveFrequency getArchiveFrequency(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_archive_frequency";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toVmppArchiveFrequency(result);
-    }
-
-    /**
-     * Get the archive_schedule field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Map<String, String> getArchiveSchedule(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_archive_schedule";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
-    }
-
-    /**
-     * Get the is_archive_running field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Boolean getIsArchiveRunning(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_is_archive_running";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toBoolean(result);
-    }
-
-    /**
-     * Get the archive_last_run_time field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Date getArchiveLastRunTime(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_archive_last_run_time";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toDate(result);
-    }
-
-    /**
-     * Get the VMs field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Set<VM> getVMs(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_VMs";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toSetOfVM(result);
-    }
-
-    /**
-     * Get the is_alarm_enabled field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Boolean getIsAlarmEnabled(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_is_alarm_enabled";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toBoolean(result);
-    }
-
-    /**
-     * Get the alarm_config field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Map<String, String> getAlarmConfig(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_alarm_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfStringString(result);
-    }
-
-    /**
-     * Get the recent_alerts field of the given VMPP.
-     *
-     * @return value of the field
-     */
-    public Set<String> getRecentAlerts(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_recent_alerts";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toSetOfString(result);
-    }
-
-    /**
-     * Set the name/label field of the given VMPP.
-     *
-     * @param label New value to set
-     */
-    public void setNameLabel(Connection c, String label) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_name_label";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(label)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Set the name/description field of the given VMPP.
-     *
-     * @param description New value to set
-     */
-    public void setNameDescription(Connection c, String description) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_name_description";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(description)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Set the is_policy_enabled field of the given VMPP.
-     *
-     * @param isPolicyEnabled New value to set
-     */
-    public void setIsPolicyEnabled(Connection c, Boolean isPolicyEnabled) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_is_policy_enabled";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(isPolicyEnabled)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Set the backup_type field of the given VMPP.
-     *
-     * @param backupType New value to set
-     */
-    public void setBackupType(Connection c, Types.VmppBackupType backupType) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_backup_type";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(backupType)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * This call executes the protection policy immediately
-     *
-     * @return An XMLRPC result
-     */
-    public String protectNow(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.protect_now";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toString(result);
-    }
-
-    /**
-     * This call archives the snapshot provided as a parameter
-     *
-     * @param snapshot The snapshot to archive
-     * @return An XMLRPC result
-     */
-    public static String archiveNow(Connection c, VM snapshot) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.archive_now";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(snapshot)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toString(result);
-    }
-
-    /**
-     * This call fetches a history of alerts for a given protection policy
-     *
-     * @param hoursFromNow how many hours in the past the oldest record to fetch is
-     * @return A list of alerts encoded in xml
-     */
-    public Set<String> getAlerts(Connection c, Long hoursFromNow) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_alerts";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(hoursFromNow)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toSetOfString(result);
-    }
-
-    /**
-     * 
-     *
-     * @param value the value to set
-     */
-    public void setBackupRetentionValue(Connection c, Long value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_backup_retention_value";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Set the value of the backup_frequency field
-     *
-     * @param value the backup frequency
-     */
-    public void setBackupFrequency(Connection c, Types.VmppBackupFrequency value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_backup_frequency";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param value the value to set
-     */
-    public void setBackupSchedule(Connection c, Map<String, String> value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_backup_schedule";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Set the value of the archive_frequency field
-     *
-     * @param value the archive frequency
-     */
-    public void setArchiveFrequency(Connection c, Types.VmppArchiveFrequency value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_archive_frequency";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param value the value to set
-     */
-    public void setArchiveSchedule(Connection c, Map<String, String> value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_archive_schedule";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Set the value of the archive_target_config_type field
-     *
-     * @param value the archive target config type
-     */
-    public void setArchiveTargetType(Connection c, Types.VmppArchiveTargetType value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_archive_target_type";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param value the value to set
-     */
-    public void setArchiveTargetConfig(Connection c, Map<String, String> value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_archive_target_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Set the value of the is_alarm_enabled field
-     *
-     * @param value true if alarm is enabled for this policy
-     */
-    public void setIsAlarmEnabled(Connection c, Boolean value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_is_alarm_enabled";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param value the value to set
-     */
-    public void setAlarmConfig(Connection c, Map<String, String> value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_alarm_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param key the key to add
-     * @param value the value to add
-     */
-    public void addToBackupSchedule(Connection c, String key, String value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.add_to_backup_schedule";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param key the key to add
-     * @param value the value to add
-     */
-    public void addToArchiveTargetConfig(Connection c, String key, String value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.add_to_archive_target_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param key the key to add
-     * @param value the value to add
-     */
-    public void addToArchiveSchedule(Connection c, String key, String value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.add_to_archive_schedule";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param key the key to add
-     * @param value the value to add
-     */
-    public void addToAlarmConfig(Connection c, String key, String value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.add_to_alarm_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param key the key to remove
-     */
-    public void removeFromBackupSchedule(Connection c, String key) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.remove_from_backup_schedule";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param key the key to remove
-     */
-    public void removeFromArchiveTargetConfig(Connection c, String key) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.remove_from_archive_target_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param key the key to remove
-     */
-    public void removeFromArchiveSchedule(Connection c, String key) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.remove_from_archive_schedule";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param key the key to remove
-     */
-    public void removeFromAlarmConfig(Connection c, String key) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.remove_from_alarm_config";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param value the value to set
-     */
-    public void setBackupLastRunTime(Connection c, Date value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_backup_last_run_time";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * 
-     *
-     * @param value the value to set
-     */
-    public void setArchiveLastRunTime(Connection c, Date value) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.set_archive_last_run_time";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(value)};
-        Map response = c.dispatch(method_call, method_params);
-        return;
-    }
-
-    /**
-     * Return a list of all the VMPPs known to the system.
-     *
-     * @return references to all objects
-     */
-    public static Set<VMPP> getAll(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_all";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toSetOfVMPP(result);
-    }
-
-    /**
-     * Return a map of VMPP references to VMPP records for all VMPPs known to the system.
-     *
-     * @return records of all objects
-     */
-    public static Map<VMPP, VMPP.Record> getAllRecords(Connection c) throws
-       BadServerResponse,
-       XenAPIException,
-       XmlRpcException {
-        String method_call = "VMPP.get_all_records";
-        String session = c.getSessionReference();
-        Object[] method_params = {Marshalling.toXMLRPC(session)};
-        Map response = c.dispatch(method_call, method_params);
-        Object result = response.get("Value");
-            return Types.toMapOfVMPPVMPPRecord(result);
-    }
-
-}
\ No newline at end of file


Mime
View raw message