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.
-
-
Constructor Summary
Constructors Constructor Description TroveUtils(TroveApi api)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstancegetWorkingInstance(String region)This will return a small working instance.InstancegetWorkingInstance(String region, String name, String flavorId, int size)Create an ACTIVE operational instance.
-
-
-
Field Detail
-
logger
protected Logger logger
-
-
Constructor Detail
-
TroveUtils
public TroveUtils(TroveApi api)
-
-
Method Detail
-
getWorkingInstance
public Instance getWorkingInstance(String region, String name, String flavorId, int size)
Create an ACTIVE operational instance.- Parameters:
region- The instance 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)
-
-