public class LoadBalancer extends BaseLoadBalancer<Node,LoadBalancer>
Modifier and Type | Class and Description |
---|---|
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.
|
BaseLoadBalancer.Algorithm
algorithm, connectionLogging, connectionThrottle, halfClosed, healthMonitor, name, nodes, port, protocol, sessionPersistence, timeout, WEIGHTED_ALGORITHMS
Constructor and Description |
---|
LoadBalancer(String region,
int id,
String name,
String protocol,
Integer port,
Set<Node> nodes,
Integer timeout,
Boolean halfClosed,
BaseLoadBalancer.Algorithm algorithm,
LoadBalancer.Status status,
Set<VirtualIPWithId> virtualIPs,
Map<String,SessionPersistence> sessionPersistenceType,
String clusterName,
Date created,
Date updated,
Map<String,Boolean> connectionLogging,
ConnectionThrottle connectionThrottle,
boolean contentCaching,
int nodeCount,
HealthMonitor healthMonitor,
SSLTermination sslTermination,
SourceAddresses sourceAddresses,
Set<AccessRuleWithId> accessRules,
Metadata metadata,
URI uri) |
Modifier and Type | Method and Description |
---|---|
static LoadBalancer.Builder |
builder() |
boolean |
equals(Object obj) |
Set<AccessRuleWithId> |
getAccessRules() |
String |
getClusterName()
Name of the cluster.
|
Date |
getCreated()
When the load balancer was created.
|
int |
getId() |
Metadata |
getMetadata() |
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() |
SourceAddresses |
getSourceAddresses() |
SSLTermination |
getSSLTermination() |
LoadBalancer.Status |
getStatus() |
Date |
getUpdated()
When the load balancer was updated.
|
URI |
getUri() |
Set<VirtualIPWithId> |
getVirtualIPs() |
int |
hashCode() |
boolean |
isContentCaching()
View the current content caching configuration.
|
protected com.google.common.base.Objects.ToStringHelper |
string() |
LoadBalancer.Builder |
toBuilder() |
String |
toString() |
compareTo, getAlgorithm, getConnectionThrottle, getHealthMonitor, getName, getNodes, getPort, getProtocol, getSessionPersistenceType, getTimeout, isConnectionLogging, isHalfClosed
public LoadBalancer(String region, int id, String name, String protocol, @Nullable Integer port, Set<Node> nodes, @Nullable Integer timeout, @Nullable Boolean halfClosed, @Nullable BaseLoadBalancer.Algorithm algorithm, LoadBalancer.Status status, Set<VirtualIPWithId> virtualIPs, @Nullable Map<String,SessionPersistence> sessionPersistenceType, String clusterName, Date created, Date updated, @Nullable Map<String,Boolean> connectionLogging, @Nullable ConnectionThrottle connectionThrottle, boolean contentCaching, int nodeCount, @Nullable HealthMonitor healthMonitor, @Nullable SSLTermination sslTermination, SourceAddresses sourceAddresses, Set<AccessRuleWithId> accessRules, Metadata metadata, URI uri)
public String getRegion()
public int getId()
public LoadBalancer.Status getStatus()
LoadBalancer.Status
public Set<VirtualIPWithId> getVirtualIPs()
VirtualIP
public String getClusterName()
public Date getCreated()
public Date getUpdated()
public boolean isContentCaching()
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 but no nodeCount is returned.@Nullable public SSLTermination getSSLTermination()
SSLTermination
public SourceAddresses getSourceAddresses()
SourceAddresses
public Set<AccessRuleWithId> getAccessRules()
AccessRule
public URI getUri()
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>
public static LoadBalancer.Builder builder()
public LoadBalancer.Builder toBuilder()
toBuilder
in class BaseLoadBalancer<Node,LoadBalancer>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.