Package org.jclouds.servermanager
Class ServerManager
java.lang.Object
org.jclouds.servermanager.ServerManager
This would be replaced with the real connection to the service that can
create/list/reboot/get/destroy things
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateServerInDC(String datacenter, String name, int imageId, int hardwareId) simulate creating a server, as this is really going to happen with the api underneathvoiddestroyServer(int serverId) getHardware(int hardwareId) getImage(int imageId) getServer(int serverId) voidrebootServer(int serverId) voidstartServer(int serverId) voidstopServer(int serverId)
-
Constructor Details
-
ServerManager
public ServerManager()
-
-
Method Details
-
createServerInDC
simulate creating a server, as this is really going to happen with the api underneath- Parameters:
name-imageId-hardwareId-name-- Returns:
- new server
-
getServer
-
listServers
-
getImage
-
listImages
-
getHardware
-
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)
-