public class LoadBalancer extends BaseLoadBalancer<Node,LoadBalancer>
Modifier and Type | Class and Description |
---|---|
static class |
LoadBalancer.Algorithm
All load balancers utilize an algorithm that defines how traffic should be directed between
back-end nodes.
|
static class |
LoadBalancer.Builder |
static class |
LoadBalancer.Status
All load balancers also have a status attribute to signify the current configuration status of
the device.
|
Modifier and Type | Field and Description |
---|---|
static LoadBalancer.Algorithm[] |
WEIGHTED_ALGORITHMS |
name, nodes, port, protocol
Constructor and Description |
---|
LoadBalancer(String region,
int id,
String name,
String protocol,
Integer port,
String algorithm,
LoadBalancer.Status status,
Iterable<VirtualIP> virtualIPs,
Iterable<Node> nodes,
String sessionPersistenceType,
String clusterName,
Date created,
Date updated,
boolean connectionLoggingEnabled,
Integer nodeCount) |
Modifier and Type | Method and Description |
---|---|
static LoadBalancer.Builder |
builder() |
boolean |
equals(Object obj) |
String |
getClusterName() |
Date |
getCreated() |
int |
getId() |
int |
getNodeCount()
Broken out as a separate field because when LoadBalancers are returned from
LoadBalancerApi.list() , no Nodes are returned (so you can't rely on getNodes().size())
but a nodeCount is returned. |
String |
getRegion() |
String |
getSessionPersistenceType() |
LoadBalancer.Status |
getStatus() |
LoadBalancer.Algorithm |
getTypedAlgorithm() |
Date |
getUpdated() |
Set<VirtualIP> |
getVirtualIPs() |
int |
hashCode() |
boolean |
isConnectionLoggingEnabled() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
LoadBalancer.Builder |
toBuilder() |
String |
toString() |
compareTo, getAlgorithm, getName, getNodes, getPort, getProtocol
public static LoadBalancer.Algorithm[] WEIGHTED_ALGORITHMS
public LoadBalancer(String region, int id, String name, String protocol, Integer port, @Nullable String algorithm, LoadBalancer.Status status, Iterable<VirtualIP> virtualIPs, Iterable<Node> nodes, String sessionPersistenceType, String clusterName, Date created, Date updated, boolean connectionLoggingEnabled, Integer nodeCount)
public static LoadBalancer.Builder builder()
public LoadBalancer.Builder toBuilder()
toBuilder
in class BaseLoadBalancer<Node,LoadBalancer>
public String getRegion()
public int getId()
public LoadBalancer.Status getStatus()
@Nullable public LoadBalancer.Algorithm getTypedAlgorithm()
public String getClusterName()
public String getSessionPersistenceType()
public Date getCreated()
public Date getUpdated()
public boolean isConnectionLoggingEnabled()
public int getNodeCount()
LoadBalancerApi.list()
, no Nodes are returned (so you can't rely on getNodes().size())
but a nodeCount is returned. When LoadBalancerApi.get(int)
is called, nodes are
returned by no nodeCount is returned.protected com.google.common.base.Objects.ToStringHelper string()
string
in class BaseLoadBalancer<Node,LoadBalancer>
public String toString()
toString
in class BaseLoadBalancer<Node,LoadBalancer>
public int hashCode()
hashCode
in class BaseLoadBalancer<Node,LoadBalancer>
public boolean equals(Object obj)
equals
in class BaseLoadBalancer<Node,LoadBalancer>
Copyright © 2009-2013 jclouds. All Rights Reserved.