@Singleton public class ServerManager extends Object
Constructor and Description |
---|
ServerManager() |
Modifier and Type | Method and Description |
---|---|
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
|
void |
destroyServer(int serverId) |
Hardware |
getHardware(int hardwareId) |
Image |
getImage(int imageId) |
Server |
getServer(int serverId) |
Iterable<Hardware> |
listHardware() |
Iterable<Image> |
listImages() |
Iterable<Server> |
listServers() |
void |
rebootServer(int serverId) |
void |
startServer(int serverId) |
void |
stopServer(int serverId) |
public Server createServerInDC(String datacenter, String name, int imageId, int hardwareId)
name
- name
- imageId
- hardwareId
- public Server getServer(int serverId)
public Image getImage(int imageId)
public Hardware getHardware(int hardwareId)
public void destroyServer(int serverId)
public void rebootServer(int serverId)
public void stopServer(int serverId)
public void startServer(int serverId)
Copyright © 2009-2013 jclouds. All Rights Reserved.