|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GridServerClient
Provides synchronous access to GoGrid.
GridServerAsyncClient
,
Method Summary | |
---|---|
Server |
addServer(String name,
String image,
String ram,
String ip,
AddServerOptions... addServerOptions)
Adds a server with specified attributes |
Server |
deleteById(long id)
Deletes the server by Id |
Server |
deleteByName(String name)
Deletes the server by name; NOTE: Using this parameter may generate an error if one or more servers share a non-unique name. |
Server |
editServerDescription(long id,
String newDescription)
Edits an existing server |
Server |
editServerRam(long id,
String idOrNameOfRam)
Edits an existing server |
Server |
editServerType(long id,
String idOrNameOfType)
Edits an existing server |
Set<Option> |
getDatacenters()
Retrieves the list of supported Datacenters to launch servers into. |
Set<Option> |
getRamSizes()
Retrieves the list of supported RAM configurations. |
Credentials |
getServerCredentials(long id)
|
Map<String,Credentials> |
getServerCredentialsList()
Returns a map of running servers' names to the log in credentials. |
Set<Server> |
getServerList(GetServerListOptions... getServerListOptions)
Returns the list of all servers. |
Set<Server> |
getServersById(long... ids)
Returns the server(s) by unique id(s). |
Set<Server> |
getServersByName(String... names)
Returns the server(s) by unique name(s). |
Set<Option> |
getTypes()
Retrieves the list of supported server types, for example Web/App Server and Database Server. |
Server |
power(String idOrName,
PowerCommand power)
Changes the server's state according to PowerCommand |
Method Detail |
---|
Set<Server> getServerList(GetServerListOptions... getServerListOptions)
getServerListOptions
- options to narrow down the result
Set<Server> getServersByName(String... names)
names
- to get the servers
Set<Server> getServersById(long... ids)
ids
- to get the servers
Map<String,Credentials> getServerCredentialsList()
Credentials getServerCredentials(long id)
Server addServer(String name, String image, String ram, String ip, AddServerOptions... addServerOptions)
name
- name of the serverimage
- image (id or name)ram
- ram type (id or name)ip
- ip addressaddServerOptions
- options to make it a sandbox instance or/and description
Server power(String idOrName, PowerCommand power)
PowerCommand
idOrName
- id or name of the server to apply the commandpower
- new desired state
Server deleteById(long id)
id
- id of the server to delete
Server deleteByName(String name)
name
- name of the server to be deleted
Server editServerDescription(long id, String newDescription)
id
- id of the existing servernewDescription
- description to replace the current one
Server editServerType(long id, String idOrNameOfType)
id
- id of the existing serveridOrNameOfType
- type to replace the current one
Server editServerRam(long id, String idOrNameOfRam)
id
- id of the existing serveridOrNameOfRam
- ram to replace the current one
Set<Option> getRamSizes()
addServer(java.lang.String, java.lang.String, java.lang.String, java.lang.String, org.jclouds.gogrid.options.AddServerOptions...)
.
To see how RAM maps to CPU and disk space (as of March 2010), see
org.jclouds.gogrid.compute.config.GoGridComputeServiceContextModule#provideSizeToRam
.
Set<Option> getTypes()
editServerType(long, java.lang.String)
.
Set<Option> getDatacenters()
addServer(java.lang.String, java.lang.String, java.lang.String, java.lang.String, org.jclouds.gogrid.options.AddServerOptions...)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |