Package org.jclouds.gogrid.features
Interface GridLoadBalancerApi
public interface GridLoadBalancerApi
- 
Method SummaryModifier and TypeMethodDescriptionaddLoadBalancer(String name, IpPortPair virtualIp, List<IpPortPair> realIps, AddLoadBalancerOptions... options) Creates a load balancer with given properties.deleteById(Long id) Deletes the load balancer by IddeleteByName(String name) Deletes the load balancer by name; NOTE: Using this parameter may generate an error if one or more load balancers share a non-unique name.editLoadBalancer(long id, List<IpPortPair> realIps) Edits the existing load balancer to change the real IP mapping.editLoadBalancerNamed(String name, List<IpPortPair> realIps) Edits the existing load balancer to change the real IP mapping.Retrieves the list of supported Datacenters to launch servers into.Returns all load balancers found for the current user.getLoadBalancersById(Long... ids) Returns the load balancer(s) by unique id(s).getLoadBalancersByName(String... names) Returns the load balancer(s) by unique name(s).
- 
Method Details- 
getLoadBalancerListReturns all load balancers found for the current user.- Returns:
- load balancers found
 
- 
getLoadBalancersByNameReturns the load balancer(s) by unique name(s). Given a name or a set of names, finds one or multiple load balancers.- Parameters:
- names- to get the load balancers
- Returns:
- load balancer(s) matching the name(s)
 
- 
getLoadBalancersByIdReturns the load balancer(s) by unique id(s). Given an id or a set of ids, finds one or multiple load balancers.- Parameters:
- ids- to get the load balancers
- Returns:
- load balancer(s) matching the ids
 
- 
addLoadBalancer@GET @Path("/grid/loadbalancer/add") LoadBalancer addLoadBalancer(@QueryParam("name") String name, IpPortPair virtualIp, List<IpPortPair> realIps, AddLoadBalancerOptions... options) Creates a load balancer with given properties.- Parameters:
- name- name of the load balancer
- virtualIp- virtual IP with IP address set in- Ip.ipand port set in- IpPortPair.port
- realIps- real IPs to bind the virtual IP to, with IP address set in- Ip.ipand port set in- IpPortPair.port
- options- options that specify load balancer's type (round robin, least load), persistence strategy, or description.
- Returns:
- created load balancer object
 
- 
editLoadBalancerNamed@GET @Path("/grid/loadbalancer/edit") LoadBalancer editLoadBalancerNamed(@QueryParam("name") String name, List<IpPortPair> realIps) Edits the existing load balancer to change the real IP mapping.- Parameters:
- name- id of the existing load balancer
- realIps- real IPs to bind the virtual IP to, with IP address set in- Ip.ipand port set in- IpPortPair.port
- Returns:
- edited object
 
- 
editLoadBalancer@GET @Path("/grid/loadbalancer/edit") LoadBalancer editLoadBalancer(@QueryParam("id") long id, List<IpPortPair> realIps) Edits the existing load balancer to change the real IP mapping.- Parameters:
- id- name of the existing load balancer
- realIps- real IPs to bind the virtual IP to, with IP address set in- Ip.ipand port set in- IpPortPair.port
- Returns:
- edited object
 
- 
deleteByIdDeletes the load balancer by Id- Parameters:
- id- id of the load balancer to delete
- Returns:
- load balancer before the command is executed
 
- 
deleteByNameDeletes the load balancer by name; NOTE: Using this parameter may generate an error if one or more load balancers share a non-unique name.- Parameters:
- name- name of the load balancer to be deleted
- Returns:
- load balancer before the command is executed
 
- 
getDatacentersRetrieves the list of supported Datacenters to launch servers into. The objects will have datacenter ID, name and description. In most cases, id or name will be used foraddLoadBalancer(java.lang.String, org.jclouds.gogrid.domain.IpPortPair, java.util.List<org.jclouds.gogrid.domain.IpPortPair>, org.jclouds.gogrid.options.AddLoadBalancerOptions...).- Returns:
- supported datacenters
 
 
-