Eli Mesika has uploaded a new change for review. Change subject: core[Search]:Add search support to external_status ......................................................................
core[Search]:Add search support to external_status This patch adds ability to search in the host view by the new external_status field Change-Id: Ic86129a29f62643d206001882f42b1bbb28dbb88 Signed-off-by: emesika <[email protected]> --- M backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/VdsConditionFieldAutoCompleter.java 1 file changed, 8 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/96/40996/1 diff --git a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/VdsConditionFieldAutoCompleter.java b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/VdsConditionFieldAutoCompleter.java index fabef66..37d1732 100644 --- a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/VdsConditionFieldAutoCompleter.java +++ b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/VdsConditionFieldAutoCompleter.java @@ -4,6 +4,7 @@ import java.util.UUID; import org.ovirt.engine.core.common.businessentities.ArchitectureType; +import org.ovirt.engine.core.common.businessentities.ExternalStatus; import org.ovirt.engine.core.common.businessentities.VDSNiceType; import org.ovirt.engine.core.common.businessentities.VDSStatus; @@ -13,6 +14,7 @@ public static final String CLUSTER = "CLUSTER"; public static final String DATACENTER = "DATACENTER"; public static final String STATUS = "STATUS"; + public static final String EXTERNAL_STATUS = "EXTERNAL_STATUS"; public static final String ACTIVE_VMS = "ACTIVE_VMS"; public static final String MEM_USAGE = "MEM_USAGE"; public static final String CPU_USAGE = "CPU_USAGE"; @@ -23,6 +25,7 @@ mVerbs.add(NAME); mVerbs.add("COMMENT"); mVerbs.add(STATUS); + mVerbs.add(EXTERNAL_STATUS); mVerbs.add(CLUSTER); mVerbs.add(ADDRESS); mVerbs.add(CPU_USAGE); @@ -48,6 +51,7 @@ getTypeDictionary().put(NAME, String.class); getTypeDictionary().put("COMMENT", String.class); getTypeDictionary().put(STATUS, VDSStatus.class); + getTypeDictionary().put(EXTERNAL_STATUS, ExternalStatus.class); getTypeDictionary().put(CLUSTER, String.class); getTypeDictionary().put(ADDRESS, String.class); getTypeDictionary().put(CPU_USAGE, Integer.class); @@ -72,6 +76,7 @@ columnNameDict.put(NAME, "vds_name"); columnNameDict.put("COMMENT", "free_text_comment"); columnNameDict.put(STATUS, "status"); + columnNameDict.put(EXTERNAL_STATUS, "external_status"); columnNameDict.put(CLUSTER, "vds_group_name"); columnNameDict.put(ADDRESS, "host_name"); columnNameDict.put(CPU_USAGE, "usage_cpu_percent"); @@ -116,6 +121,9 @@ if (STATUS.equals(fieldName)) { retval = new EnumValueAutoCompleter(VDSStatus.class); } + else if (EXTERNAL_STATUS.equals(fieldName)) { + retval = new EnumValueAutoCompleter(ExternalStatus.class); + } else if ("TYPE".equals(fieldName)) { retval = new EnumValueAutoCompleter(VDSNiceType.class); } else if ("ARCHITECTURE".equals(fieldName)) { -- To view, visit https://gerrit.ovirt.org/40996 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic86129a29f62643d206001882f42b1bbb28dbb88 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Eli Mesika <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
