|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServerServices
Core interface for the server services. Implements all operations critical to managing virtual machines in a cloud environment.
| Method Summary | |
|---|---|
void |
boot(String serverId)
Boots up a pre-defined server. |
Server |
clone(String serverId,
String intoDcId,
String name,
String description,
boolean powerOn,
String... firewallIds)
Clones an existing server into a new server. |
Server |
define(String imageId,
ServerSize size,
String dataCenterId,
String name,
boolean withMonitoring,
String... firewalls)
Defines a server to be booted up at a future point. |
String |
getConsoleOutput(String serverId,
long laterThan)
Provides all output from the console of the target server since the specified Unix time. |
Collection<String> |
getFirewalls(String serverId)
Provides a list of firewalls protecting the specified server. |
String |
getProviderTermForServer(Locale locale)
Assists UIs by providing the cloud-specific term for a virtual server in the cloud. |
Server |
getServer(String serverId)
Provides the data from a specific server |
ServerPersistence |
getServerPersistence()
Identifies what kind of server persistence this cloud supports. |
ServerStatistics |
getServerStatistics(String serverId,
long from,
long to)
Provides hypervisor statistics for the specified server that fit within the defined time range. |
Collection<ServerStatistics> |
getServerStatisticsForPeriod(String serverId,
long from,
long to)
Provides hypervisor statistics for the specified server that fit within the defined time range. |
Collection<ServerSize> |
getSupportedSizes(Architecture architecture)
Provides a list of instance types, service offerings, or server sizes (however the underlying cloud might describe it) for a particular architecture |
boolean |
isSupportsCloning()
|
Server |
launch(String imageId,
ServerSize size,
String dataCenterId,
String name,
String withKeypairName,
String inVlanId,
boolean withMonitoring,
String... firewalls)
Launches a server in the cloud. |
Collection<Server> |
list()
Lists all servers belonging to the account owner currently in the cloud. |
void |
monitor(String serverId)
Turns hypervisor monitoring on for the target server. |
void |
pause(String serverId)
Shuts down the target server. |
void |
reboot(String serverId)
Executes a server reboot for the target server. |
void |
stop(String serverId)
TERMINATES AND DESTROYS the specified server. |
void |
unmonitor(String serverId)
Turns hypervisor monitoring off for the target server. |
| Method Detail |
|---|
void boot(String serverId)
throws InternalException,
CloudException
serverId - the server to boot up
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
Server clone(String serverId,
String intoDcId,
String name,
String description,
boolean powerOn,
String... firewallIds)
throws InternalException,
CloudException
serverId - the ID of the server to be clonedintoDcId - the ID of the data center in which the new server will operatename - the name of the new serverdescription - a description for the new serverpowerOn - power on the new serverfirewallIds - a list of firewall IDs to protect the new server
InternalException - an internal error occurred processing the request
CloudException - an error occurred in the cloud processing the request
Server define(String imageId,
ServerSize size,
String dataCenterId,
String name,
boolean withMonitoring,
String... firewalls)
throws InternalException,
CloudException
#launch(String, ServerSize, String, String, boolean, String...).
The server will not be started up. To start the server once defined, call boot(String).
imageId - the provider ID for the machine image to use as a basesize - the kind of server to launchdataCenterId - the provider ID of the data center to which the server will be attachedname - the user-friendly name to be given to the serverwithMonitoring - should monitoring be set up for the serverfirewalls - a list of firewalls to protect the server
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
String getConsoleOutput(String serverId,
long laterThan)
throws InternalException,
CloudException
serverId - the unique ID of the target serverlaterThan - the timestamp marking the beginning point of the console output you want
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
Collection<String> getFirewalls(String serverId)
throws InternalException,
CloudException
serverId - the server ID whose firewall list is being sought
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud providerString getProviderTermForServer(Locale locale)
locale - the locale for which the term should be translated
Server getServer(String serverId)
throws InternalException,
CloudException
serverId - the provider ID for the desired server
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
ServerPersistence getServerPersistence()
throws InternalException,
CloudException
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
ServerStatistics getServerStatistics(String serverId,
long from,
long to)
throws InternalException,
CloudException
ServerStatistics object and NOT null.
serverId - the unique ID for the target serverfrom - the beginning of the timeframe for which you want statisticsto - the end of the timeframe for which you want statistics
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
Collection<ServerStatistics> getServerStatisticsForPeriod(String serverId,
long from,
long to)
throws InternalException,
CloudException
serverId - the unique ID for the target serverfrom - the beginning of the timeframe for which you want statisticsto - the end of the timeframe for which you want statistics
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
Collection<ServerSize> getSupportedSizes(Architecture architecture)
throws InternalException,
CloudException
architecture - the desired architecture size offerings
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud providerboolean isSupportsCloning()
Server launch(String imageId,
ServerSize size,
String dataCenterId,
String name,
String withKeypairName,
String inVlanId,
boolean withMonitoring,
String... firewalls)
throws InternalException,
CloudException
imageId - the provider ID of the image from which the server should be builtsize - the server size, instance type, or product offering supporting this serverdataCenterId - the provider ID for the data center into which the server will be launchedname - the name of the new serverwithKeypairName - the name of the keypair to use for root authentication or null if no keypairinVlanId - the ID of the VLAN into which the server should be launched, or null if not specifying (or not supported by the cloud)withMonitoring - whether or not hypervisor monitoring should be enabled for the serverfirewalls - the firewalls to protect the new server
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
Collection<Server> list()
throws InternalException,
CloudException
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
void monitor(String serverId)
throws InternalException,
CloudException
serverId - the provider ID for the server to start monitoring
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
void pause(String serverId)
throws InternalException,
CloudException
serverId - the provider ID for the server to pause
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
void reboot(String serverId)
throws CloudException,
InternalException
serverId - the provider ID for the server to reboot
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
void stop(String serverId)
throws InternalException,
CloudException
serverId - the provider ID of the server to be destroyed
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
void unmonitor(String serverId)
throws InternalException,
CloudException
serverId - the provider ID for the server to stop monitoring
InternalException - an error occurred within the Dasein Cloud API implementation
CloudException - an error occurred within the cloud provider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2009 enStratus Networks LLC – Available under the terms of the Artistic License 2.0.