public interface GridServerClient
GridServerAsyncClient, 
| Modifier and Type | Method and Description | 
|---|---|
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 | 
Set<Server> getServerList(GetServerListOptions... getServerListOptions)
getServerListOptions - options to narrow down the resultSet<Server> getServersByName(String... names)
names - to get the serversSet<Server> getServersById(long... ids)
ids - to get the serversMap<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 descriptionServer power(String idOrName, PowerCommand power)
PowerCommandidOrName - id or name of the server to apply the commandpower - new desired stateServer deleteById(long id)
id - id of the server to deleteServer deleteByName(String name)
name - name of the server to be deletedServer editServerDescription(long id, String newDescription)
id - id of the existing servernewDescription - description to replace the current oneServer editServerType(long id, String idOrNameOfType)
id - id of the existing serveridOrNameOfType - type to replace the current oneServer editServerRam(long id, String idOrNameOfRam)
id - id of the existing serveridOrNameOfRam - ram to replace the current oneSet<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
 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...).Copyright © 2009-2013 jclouds. All Rights Reserved.