org.jclouds.cloudsigma
Interface CloudSigmaClient


public interface CloudSigmaClient

Provides synchronous access to CloudSigma.

Author:
Adrian Cole
See Also:
CloudSigmaAsyncClient,

Method Summary
 DriveInfo cloneDrive(String sourceUuid, String newName, CloneDriveOptions... options)
          Clone an existing drive.
 DriveInfo createDrive(Drive createDrive)
          create a new drive
 ServerInfo createServer(Server server)
          create a new server
 StaticIPInfo createStaticIP()
          create a new ip
 VLANInfo createVLAN(String name)
          create a new vlan
 void destroyDrive(String uuid)
          Destroy a drive
 void destroyServer(String uuid)
          Destroy a server
 void destroyStaticIP(String uuid)
          Destroy a ip
 void destroyVLAN(String uuid)
          Destroy a vlan
 DriveInfo getDriveInfo(String uuid)
           
 ProfileInfo getProfileInfo()
          Get profile info
 ServerInfo getServerInfo(String uuid)
           
 StaticIPInfo getStaticIPInfo(String uuid)
           
 VLANInfo getVLANInfo(String uuid)
           
 Set<? extends DriveInfo> listDriveInfo()
          Get all drives info
 Set<String> listDrives()
          list of drive uuids in your account
 Set<? extends ServerInfo> listServerInfo()
          Get all servers info
 Set<String> listServers()
          list of server uuids in your account
 Set<String> listStandardCds()
          list of cd uuids that are in the library
 Set<String> listStandardDrives()
          list of drive uuids that are in the library
 Set<String> listStandardImages()
          list of image uuids that are in the library
 Set<? extends StaticIPInfo> listStaticIPInfo()
          Get all ips info
 Set<String> listStaticIPs()
          list of ip uuids in your account
 Set<? extends VLANInfo> listVLANInfo()
          Get all vlans info
 Set<String> listVLANs()
          list of vlan uuids in your account
 VLANInfo renameVLAN(String uuid, String newName)
          set vlan configuration
 void resetServer(String uuid)
          Reset a server
 DriveInfo setDriveData(String uuid, DriveData driveData)
          set extra drive data
 ServerInfo setServerConfiguration(String uuid, Server server)
          set server configuration
 void shutdownServer(String uuid)
          Shutdown a server

Sends the server an ACPI power-down event.

 void startServer(String uuid)
          Start a server
 void stopServer(String uuid)
          Stop a server

Kills the server immediately, equivalent to a power failure.

 

Method Detail

getProfileInfo

ProfileInfo getProfileInfo()
Get profile info

Returns:
info or null, if not found

listServers

Set<String> listServers()
list of server uuids in your account

Returns:
or empty set if no servers are found

listServerInfo

Set<? extends ServerInfo> listServerInfo()
Get all servers info

Returns:
or empty set if no servers are found

getServerInfo

ServerInfo getServerInfo(String uuid)
Parameters:
uuid - what to get
Returns:
null, if not found

createServer

ServerInfo createServer(Server server)
create a new server

Parameters:
server -
Returns:
newly created server

setServerConfiguration

ServerInfo setServerConfiguration(String uuid,
                                  Server server)
set server configuration

Parameters:
uuid - what server to change
serverData - what values to change
Returns:
new data

destroyServer

void destroyServer(String uuid)
Destroy a server

Parameters:
uuid - what to destroy

startServer

void startServer(String uuid)
Start a server

Parameters:
uuid - what to start

stopServer

void stopServer(String uuid)
Stop a server

Kills the server immediately, equivalent to a power failure. Server reverts to a stopped status if it is persistent and is automatically destroyed otherwise.

Parameters:
uuid - what to stop

shutdownServer

void shutdownServer(String uuid)
Shutdown a server

Sends the server an ACPI power-down event. Server reverts to a stopped status if it is persistent and is automatically destroyed otherwise.

note

behaviour on shutdown depends on how your server OS is set up to respond to an ACPI power button signal.

Parameters:
uuid - what to shutdown

resetServer

void resetServer(String uuid)
Reset a server

Parameters:
uuid - what to reset

listDrives

Set<String> listDrives()
list of drive uuids in your account

Returns:
or empty set if no drives are found

listDriveInfo

Set<? extends DriveInfo> listDriveInfo()
Get all drives info

Returns:
or empty set if no drives are found

getDriveInfo

DriveInfo getDriveInfo(String uuid)
Parameters:
uuid - what to get
Returns:
null, if not found

createDrive

DriveInfo createDrive(Drive createDrive)
create a new drive

Parameters:
createDrive - required parameters: name, size
Returns:
newly created drive

setDriveData

DriveInfo setDriveData(String uuid,
                       DriveData driveData)
set extra drive data

Parameters:
uuid - what drive to change
driveData - what values to change
Returns:
new data

destroyDrive

void destroyDrive(String uuid)
Destroy a drive

Parameters:
uuid - what to delete

listStandardDrives

Set<String> listStandardDrives()
list of drive uuids that are in the library

Returns:
or empty set if no drives are found

listStandardCds

Set<String> listStandardCds()
list of cd uuids that are in the library

Returns:
or empty set if no cds are found

listStandardImages

Set<String> listStandardImages()
list of image uuids that are in the library

Returns:
or empty set if no images are found

cloneDrive

DriveInfo cloneDrive(String sourceUuid,
                     String newName,
                     CloneDriveOptions... options)
Clone an existing drive. By default, the size is the same as the source

Parameters:
sourceUuid - source to clone
newName - name of the resulting drive
options - options to control size
Returns:
new drive

listVLANs

Set<String> listVLANs()
list of vlan uuids in your account

Returns:
or empty set if no vlans are found

listVLANInfo

Set<? extends VLANInfo> listVLANInfo()
Get all vlans info

Returns:
or empty set if no vlans are found

getVLANInfo

VLANInfo getVLANInfo(String uuid)
Parameters:
uuid - what to get
Returns:
null, if not found

createVLAN

VLANInfo createVLAN(String name)
create a new vlan

Parameters:
vlan -
Returns:
newly created vlan

renameVLAN

VLANInfo renameVLAN(String uuid,
                    String newName)
set vlan configuration

Parameters:
uuid - what vlan to change
newName - what the new name is
Returns:
new data

destroyVLAN

void destroyVLAN(String uuid)
Destroy a vlan

Parameters:
uuid - what to destroy

listStaticIPs

Set<String> listStaticIPs()
list of ip uuids in your account

Returns:
or empty set if no ips are found

listStaticIPInfo

Set<? extends StaticIPInfo> listStaticIPInfo()
Get all ips info

Returns:
or empty set if no ips are found

getStaticIPInfo

StaticIPInfo getStaticIPInfo(String uuid)
Parameters:
uuid - what to get
Returns:
null, if not found

createStaticIP

StaticIPInfo createStaticIP()
create a new ip

Returns:
newly created ip

destroyStaticIP

void destroyStaticIP(String uuid)
Destroy a ip

Parameters:
uuid - what to destroy


Copyright © 2009-2011 jclouds. All Rights Reserved.