Moti Asayag has uploaded a new change for review.

Change subject: engine: Make method for resolving a content host public
......................................................................

engine: Make method for resolving a content host public

Increasing the visibility of the method would allow the
client to query a provider via its interface whether a
given host exists.

Change-Id: I622151ee9a586bf4181be4a80c7cd3b4b978dca4
Signed-off-by: Moti Asayag <masa...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/HostProviderProxy.java
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
2 files changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/01/37801/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/HostProviderProxy.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/HostProviderProxy.java
index ab68a4b..e083b86 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/HostProviderProxy.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/HostProviderProxy.java
@@ -2,6 +2,7 @@
 
 import java.util.List;
 
+import org.ovirt.engine.core.bll.host.provider.foreman.ContentHost;
 import org.ovirt.engine.core.bll.provider.ProviderProxy;
 import org.ovirt.engine.core.common.businessentities.Erratum;
 import org.ovirt.engine.core.common.businessentities.ExternalComputeResource;
@@ -19,6 +20,7 @@
     List<ExternalComputeResource> getComputeResources();
     List<Erratum> getErrataForHost(VdsStatic host);
     Erratum getErratumForHost(VdsStatic host, String erratumId);
+    ContentHost findContentHost(VdsStatic host);
 
     void provisionHost(VDS vds,
                        ExternalHostGroup hg,
@@ -27,4 +29,5 @@
                        String discoverName,
                        String rootPassword,
                        String ip);
+
 }
diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
index c5e263c..5d4f7c6 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
@@ -311,6 +311,7 @@
     public void onRemoval() {
     }
 
+    @Override
     public ContentHost findContentHost(VdsStatic host) {
         final String hostNameFact = "facts.network.hostname:" + 
host.getHostName();
         final List<ContentHost> contentHosts =


-- 
To view, visit http://gerrit.ovirt.org/37801
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I622151ee9a586bf4181be4a80c7cd3b4b978dca4
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <masa...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to