Пример #1
0
 public VBD_metrics(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.io_read_kbs  = Marshalling.ParseDouble(table, "io_read_kbs");
     this.io_write_kbs = Marshalling.ParseDouble(table, "io_write_kbs");
     this.last_updated = Marshalling.ParseDateTime(table, "last_updated");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Пример #2
0
 public Data_source(Hashtable table)
 {
     this.name_label       = Marshalling.ParseString(table, "name_label");
     this.name_description = Marshalling.ParseString(table, "name_description");
     this.enabled          = Marshalling.ParseBool(table, "enabled");
     this.standard         = Marshalling.ParseBool(table, "standard");
     this.units            = Marshalling.ParseString(table, "units");
     this.min   = Marshalling.ParseDouble(table, "min");
     this.max   = Marshalling.ParseDouble(table, "max");
     this.value = Marshalling.ParseDouble(table, "value");
 }
Пример #3
0
 public Host_cpu(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.host         = Marshalling.ParseRef <Host>(table, "host");
     this.number       = Marshalling.ParseLong(table, "number");
     this.vendor       = Marshalling.ParseString(table, "vendor");
     this.speed        = Marshalling.ParseLong(table, "speed");
     this.modelname    = Marshalling.ParseString(table, "modelname");
     this.family       = Marshalling.ParseLong(table, "family");
     this.model        = Marshalling.ParseLong(table, "model");
     this.stepping     = Marshalling.ParseString(table, "stepping");
     this.flags        = Marshalling.ParseString(table, "flags");
     this.features     = Marshalling.ParseString(table, "features");
     this.utilisation  = Marshalling.ParseDouble(table, "utilisation");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Пример #4
0
 public PIF_metrics(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.io_read_kbs  = Marshalling.ParseDouble(table, "io_read_kbs");
     this.io_write_kbs = Marshalling.ParseDouble(table, "io_write_kbs");
     this.carrier      = Marshalling.ParseBool(table, "carrier");
     this.vendor_id    = Marshalling.ParseString(table, "vendor_id");
     this.vendor_name  = Marshalling.ParseString(table, "vendor_name");
     this.device_id    = Marshalling.ParseString(table, "device_id");
     this.device_name  = Marshalling.ParseString(table, "device_name");
     this.speed        = Marshalling.ParseLong(table, "speed");
     this.duplex       = Marshalling.ParseBool(table, "duplex");
     this.pci_bus_path = Marshalling.ParseString(table, "pci_bus_path");
     this.last_updated = Marshalling.ParseDateTime(table, "last_updated");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Пример #5
0
 public Task(Hashtable table)
 {
     this.uuid               = Marshalling.ParseString(table, "uuid");
     this.name_label         = Marshalling.ParseString(table, "name_label");
     this.name_description   = Marshalling.ParseString(table, "name_description");
     this.allowed_operations = Helper.StringArrayToEnumList <task_allowed_operations>(Marshalling.ParseStringArray(table, "allowed_operations"));
     this.current_operations = Maps.convert_from_proxy_string_task_allowed_operations(Marshalling.ParseHashTable(table, "current_operations"));
     this.created            = Marshalling.ParseDateTime(table, "created");
     this.finished           = Marshalling.ParseDateTime(table, "finished");
     this.status             = (task_status_type)Helper.EnumParseDefault(typeof(task_status_type), Marshalling.ParseString(table, "status"));
     this.resident_on        = Marshalling.ParseRef <Host>(table, "resident_on");
     this.progress           = Marshalling.ParseDouble(table, "progress");
     this.type               = Marshalling.ParseString(table, "type");
     this.result             = Marshalling.ParseString(table, "result");
     this.error_info         = Marshalling.ParseStringArray(table, "error_info");
     this.other_config       = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
     this.subtask_of         = Marshalling.ParseRef <Task>(table, "subtask_of");
     this.subtasks           = Marshalling.ParseSetRef <Task>(table, "subtasks");
 }