org.jclouds.openstack.trove.v1.utils
Class TroveUtils
java.lang.Object
org.jclouds.openstack.trove.v1.utils.TroveUtils
public class TroveUtils
- extends Object
Helper methods for dealing with instances that get created with errors.
|
Field Summary |
protected org.jclouds.logging.Logger |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected org.jclouds.logging.Logger logger
TroveUtils
public TroveUtils(TroveApi api)
getWorkingInstance
public Instance getWorkingInstance(String zone,
String name,
String flavorId,
int size)
- Create an ACTIVE operational instance.
- Parameters:
zone - The instance zone or region.name - Instance name.flavorId - Id of the flavor to be used when creating the instance.size - Size of the instance.
- Returns:
- Instance object in active state or NULL.
- See Also:
InstanceApi.create(String, int, String)
getWorkingInstance
public Instance getWorkingInstance(String zone)
- This will return a small working instance.
- Parameters:
zone - The zone where the instance should be created.
- Returns:
- A working database instance.
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.