org.jclouds.servermanager
Class ServerManager
java.lang.Object
org.jclouds.servermanager.ServerManager
@Singleton
public class ServerManager
- extends Object
This would be replaced with the real connection to the service that can
create/list/reboot/get/destroy things
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerManager
public ServerManager()
createServerInDC
public Server createServerInDC(String datacenter,
String name,
int imageId,
int hardwareId)
- simulate creating a server, as this is really going to happen with the api underneath
- Parameters:
name
- name
- imageId
- hardwareId
-
- Returns:
- new server
getServer
public Server getServer(int serverId)
listServers
public Iterable<Server> listServers()
getImage
public Image getImage(int imageId)
listImages
public Iterable<Image> listImages()
getHardware
public Hardware getHardware(int hardwareId)
listHardware
public Iterable<Hardware> listHardware()
destroyServer
public void destroyServer(int serverId)
rebootServer
public void rebootServer(int serverId)
stopServer
public void stopServer(int serverId)
startServer
public void startServer(int serverId)
Copyright © 2009-2011 jclouds. All Rights Reserved.