Package 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
-
-
Constructor Summary
Constructors Constructor Description ServerManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 underneathvoid
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)
-
-
-
Method Detail
-
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)
-
getImage
public Image getImage(int imageId)
-
getHardware
public Hardware getHardware(int hardwareId)
-
destroyServer
public void destroyServer(int serverId)
-
rebootServer
public void rebootServer(int serverId)
-
stopServer
public void stopServer(int serverId)
-
startServer
public void startServer(int serverId)
-
-