> +                }
> +            }
> +        };
> +        serverReady = Predicates2.retry(serverAvailableCheck, 
> constants.pollTimeout(), constants.pollPeriod(), constants.pollMaxPeriod(), 
> TimeUnit.SECONDS);
> +        return injector.getInstance(OneAndOneApi.class);
> +    }
> +
> +    protected Server createServer(String serverName) {
> +
> +        List<Hdd.CreateHdd> hdds = new ArrayList<Hdd.CreateHdd>();
> +        Hdd.CreateHdd hdd = Hdd.CreateHdd.create(30, Boolean.TRUE);
> +        hdds.add(hdd);
> +        Hardware.CreateHardware hardware = 
> Hardware.CreateHardware.create(4.0, 1.0, 2.0, hdds);
> +
> +        return api.serverApi().create(Server.CreateServer.create(serverName, 
> "testing with jclouds", hardware, "81504C620D98BCEBAA5202D145203B4B", 
> "908DC2072407C94C8054610AD5A53B8C",
> +                "Test123!", null, Boolean.TRUE, null, null, null, null)

Consider using a builder here.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/275/files/0767d011a984011133c9e34b3389b449ca0756cd#r68671687

Reply via email to