public interface GridLoadBalancerClient
Modifier and Type | Method and Description |
---|---|
LoadBalancer |
addLoadBalancer(String name,
IpPortPair virtualIp,
List<IpPortPair> realIps,
AddLoadBalancerOptions... options)
Creates a load balancer with given properties.
|
LoadBalancer |
deleteById(Long id)
Deletes the load balancer by Id
|
LoadBalancer |
deleteByName(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.
|
LoadBalancer |
editLoadBalancer(long id,
List<IpPortPair> realIps)
Edits the existing load balancer to change the real IP mapping.
|
LoadBalancer |
editLoadBalancerNamed(String name,
List<IpPortPair> realIps)
Edits the existing load balancer to change the real IP mapping.
|
Set<Option> |
getDatacenters()
Retrieves the list of supported Datacenters to launch servers into.
|
Set<LoadBalancer> |
getLoadBalancerList()
Returns all load balancers found for the current user.
|
Set<LoadBalancer> |
getLoadBalancersById(Long... ids)
Returns the load balancer(s) by unique id(s).
|
Set<LoadBalancer> |
getLoadBalancersByName(String... names)
Returns the load balancer(s) by unique name(s).
|
Set<LoadBalancer> getLoadBalancerList()
Set<LoadBalancer> getLoadBalancersByName(String... names)
names
- to get the load balancersSet<LoadBalancer> getLoadBalancersById(Long... ids)
ids
- to get the load balancersLoadBalancer addLoadBalancer(String name, IpPortPair virtualIp, List<IpPortPair> realIps, AddLoadBalancerOptions... options)
name
- name of the load balancervirtualIp
- virtual IP with IP address set in Ip.ip
and port
set in IpPortPair.port
realIps
- real IPs to bind the virtual IP to, with IP address set in
Ip.ip
and port set in IpPortPair.port
options
- options that specify load balancer's type (round robin, least load), persistence
strategy, or description.LoadBalancer editLoadBalancer(long id, List<IpPortPair> realIps)
id
- id of the existing load balancerrealIps
- real IPs to bind the virtual IP to, with IP address set in
Ip.ip
and port set in IpPortPair.port
LoadBalancer editLoadBalancerNamed(String name, List<IpPortPair> realIps)
name
- name of the existing load balancerrealIps
- real IPs to bind the virtual IP to, with IP address set in
Ip.ip
and port set in IpPortPair.port
LoadBalancer deleteById(Long id)
id
- id of the load balancer to deleteLoadBalancer deleteByName(String name)
name
- name of the load balancer to be deletedSet<Option> getDatacenters()
addLoadBalancer(java.lang.String, org.jclouds.gogrid.domain.IpPortPair, java.util.List<org.jclouds.gogrid.domain.IpPortPair>, org.jclouds.gogrid.options.AddLoadBalancerOptions...)
.Copyright © 2009-2012 jclouds. All Rights Reserved.