This is an automated email from the ASF dual-hosted git repository.

nacx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jclouds-site.git


The following commit(s) were added to refs/heads/master by this push:
     new ca18972  JCLOUDS-1492 Dimension Data Feature API Predicates are not 
usable (#6)
ca18972 is described below

commit ca189727078dcae38cbe0227e3f86a67899f8e54
Author: Trevor Flanagan <[email protected]>
AuthorDate: Mon Apr 1 18:10:55 2019 +0100

    JCLOUDS-1492 Dimension Data Feature API Predicates are not usable (#6)
---
 guides/dimensiondata.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/guides/dimensiondata.md b/guides/dimensiondata.md
index cfdffcc..168e8bd 100644
--- a/guides/dimensiondata.md
+++ b/guides/dimensiondata.md
@@ -148,7 +148,7 @@ has built in google guice predicates that will block 
execution and check that th
 
 The following is some example code that shows how the to use predicate 
suitable for asserting a Network Domain state has transitioned to the `NORMAL` 
state. The predicate uses the Network Domain Identifier we wish to check the 
state of.
 {% highlight java %}
-Predicate<String> networkDomainNormalPredicate = 
api.getNetworkApi().networkDomainNormalPredicate();
+Predicate<String> networkDomainNormalPredicate = 
api.networkDomainNormalPredicate();
 networkDomainNormalPredicate.apply(networkDomainId);    
 {% endhighlight %}
 
@@ -170,7 +170,7 @@ A Vlan deployment is an asynchronous process. We need to 
wait for it to complete
 
 Following is some example code that shows how the to use predicate suitable 
for asserting a Vlan state has transitioned to the `NORMAL` state. The 
predicate uses the Vlan Identifier we wish to check the state of.
 {% highlight java %}
-Predicate<String> vlanNormalPredicate = 
api.getNetworkApi().vlanNormalPredicate();
+Predicate<String> vlanNormalPredicate = api.vlanNormalPredicate();
 vlanNormalPredicate.apply(vlanId);
 {% endhighlight %}
 
@@ -216,8 +216,8 @@ String serverId = api.getServerApi()
 {% highlight java %}
 static void waitForServerStartedAndNormal(String serverId)
 {
-    Predicate<String> serverStartedPredicate = 
api.getServerApi().serverStartedPredicate();
-    Predicate<String> serverNormalPredicate = 
api.getServerApi().serverNormalPredicate();
+    Predicate<String> serverStartedPredicate = api.serverStartedPredicate();
+    Predicate<String> serverNormalPredicate = api.serverNormalPredicate();
     // Wait for Server to be started and NORMAL
     serverStartedPredicate.apply(serverId);
     serverNormalPredicate.apply(serverId);

Reply via email to