org.jclouds.cloudsigma.util
Class Servers
java.lang.Object
org.jclouds.cloudsigma.util.Servers
public class Servers
- extends Object
- Author:
- Adrian Cole
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Servers
public Servers()
small
public static Server.Builder small(String name,
String driveUuuid,
String vncPassword)
- Helper to create a small persistent server
- Parameters:
name - what to name the serverdriveUuuid - id of the boot drivevncPassword - password for vnc
- Returns:
- a builder for a persistent 1Ghz 512m server with DHCP enabled network.
smallWithStaticIP
public static Server.Builder smallWithStaticIP(String name,
String driveUuuid,
String vncPassword,
String ip)
- Helper to create a small persistent server
- Parameters:
name - what to name the serverdriveUuuid - id of the boot drivevncPassword - password for vncip - static IP
- Returns:
- a builder for a persistent 1Ghz 512m server with DHCP enabled network.
changeIP
public static Server changeIP(Server in,
String ip)
- Takes the input server and changes its primary ip to a new address. To make this happen,
you'll need to invoke
CloudSigmaClient.setServerConfiguration(java.lang.String, org.jclouds.cloudsigma.domain.Server)
- Parameters:
in - server to changeip - new ip address
- Returns:
- server with its primary nic set to the new address.
Copyright © 2009-2011 jclouds. All Rights Reserved.