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) |
Modifier and Type | Method and Description |
---|---|
static LoadBalancer.Builder |
builder() |
boolean |
equals(Object obj) |
String |
getClusterName() |
Date |
getCreated() |
int |
getId() |
String |
getRegion() |
String |
getSessionPersistenceType() |
LoadBalancer.Status |
getStatus() |
LoadBalancer.Algorithm |
getTypedAlgorithm() |
Date |
getUpdated() |
Set<VirtualIP> |
getVirtualIPs() |
int |
hashCode() |
boolean |
isConnectionLoggingEnabled() |
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)
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 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-2012 jclouds. All Rights Reserved.