public interface ServerClient
ServerAsyncClient
,
Modifier and Type | Method and Description |
---|---|
ServerDetails |
cloneServer(String serverid,
String hostname,
CloneServerOptions... options)
Clone a server
|
ServerDetails |
createServerWithHostnameAndRootPassword(ServerSpec serverSpec,
String hostname,
String rootPassword,
CreateServerOptions... options)
Create a new server
|
ServerDetails |
destroyServer(String id,
DestroyServerOptions keepIp)
Destroy a server
|
ServerDetails |
editServer(String serverid,
EditServerOptions... options)
Edit the configuration of a server
|
Map<String,AllowedArgumentsForCreateServer> |
getAllowedArgumentsForCreateServerByPlatform()
Get information about valid arguments to #createServer for each platform
|
Console |
getConsole(String id)
Get information about how to connect to a server via VNC
|
ServerDetails |
getServerDetails(String id)
Get detailed information about a server such as hostname, hardware
configuration (cpu, memory and disk), ip addresses, cost, transfer, os and
more.
|
Map<String,ServerLimit> |
getServerLimits(String id)
Get detailed information about a server's limits (for OpenVZ only).
|
ServerStatus |
getServerStatus(String id,
ServerStatusOptions... options)
Get detailed information about a server status including up-time and
hardware usage (cpu, disk, memory and bandwidth)
|
void |
hardStopServer(String id)
hard stop a server
|
Set<Server> |
listServers()
Get a list of all servers on this account.
|
Set<OSTemplate> |
listTemplates()
Get information about the OS templates available
|
ServerDetails |
rebootServer(String id)
Reboot a server
|
void |
resetPassword(String id,
String password)
Reset the root password of a server
|
Map<String,ServerLimit> |
resetServerLimit(String id,
String type)
Reset the fail count for a server limit (for OpenVZ only).
|
void |
resourceUsage(String id,
String resource,
String resolution)
Return resource usage over time for server
|
ServerDetails |
startServer(String id)
Start a server
|
void |
stopServer(String id)
Stop a server
|
Set<Server> listServers()
ServerDetails getServerDetails(String id)
id
- id of the serverServerStatus getServerStatus(String id, ServerStatusOptions... options)
id
- id of the serveroptions
- optional parametersMap<String,ServerLimit> getServerLimits(String id)
id
- id of the serverConsole getConsole(String id)
id
- id of the serverSet<OSTemplate> listTemplates()
Map<String,AllowedArgumentsForCreateServer> getAllowedArgumentsForCreateServerByPlatform()
Map<String,ServerLimit> resetServerLimit(String id, String type)
id
- id of the servertype
- the type of limit to resetServerDetails rebootServer(String id)
id
- id of the serverServerDetails startServer(String id)
id
- id of the servervoid stopServer(String id)
id
- id of the servervoid hardStopServer(String id)
id
- id of the serverServerDetails createServerWithHostnameAndRootPassword(ServerSpec serverSpec, String hostname, String rootPassword, CreateServerOptions... options)
hostname
- the host name of the new serverrootPassword
- the root password to useoptions
- optional settings ex. descriptionServerDetails editServer(String serverid, EditServerOptions... options)
serverid
- the serverId of the server to editoptions
- the settings to changeServerDetails cloneServer(String serverid, String hostname, CloneServerOptions... options)
serverid
- the serverId of the server to clonehostname
- the new host name of the cloned serveroptions
- the settings to changeServerDetails destroyServer(String id, DestroyServerOptions keepIp)
id
- the id of the serverkeepIp
- if DestroyServerOptions.keepIp(true) the servers ip will be
retained for use in your GleSYS accountvoid resetPassword(String id, String password)
id
- the id of the serverpassword
- the new password to useCopyright © 2009-2012 jclouds. All Rights Reserved.