org.jclouds.cloudsigma.util
Class Servers

java.lang.Object
  extended by org.jclouds.cloudsigma.util.Servers

public class Servers
extends Object

Author:
Adrian Cole

Constructor Summary
Servers()
           
 
Method Summary
static Server changeIP(Server in, String ip)
          Takes the input server and changes its primary ip to a new address.
static Server.Builder small(String name, String driveUuuid, String vncPassword)
          Helper to create a small persistent server
static Server.Builder smallWithStaticIP(String name, String driveUuuid, String vncPassword, String ip)
          Helper to create a small persistent server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Servers

public Servers()
Method Detail

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 server
driveUuuid - id of the boot drive
vncPassword - 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 server
driveUuuid - id of the boot drive
vncPassword - password for vnc
ip - 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 change
ip - new ip address
Returns:
server with its primary nic set to the new address.


Copyright © 2009-2011 jclouds. All Rights Reserved.