org.jclouds.cloudloadbalancers.domain
Class LoadBalancer
java.lang.Object
org.jclouds.cloudloadbalancers.domain.internal.BaseLoadBalancer<Node,LoadBalancer>
org.jclouds.cloudloadbalancers.domain.LoadBalancer
- All Implemented Interfaces:
- Comparable<BaseLoadBalancer<Node,LoadBalancer>>
public class LoadBalancer
- extends BaseLoadBalancer<Node,LoadBalancer>
- Author:
- Adrian Cole
- See Also:
Nested Class Summary |
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. |
Constructor Summary |
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)
|
WEIGHTED_ALGORITHMS
public static LoadBalancer.Algorithm[] WEIGHTED_ALGORITHMS
LoadBalancer
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)
builder
public static LoadBalancer.Builder builder()
toBuilder
public LoadBalancer.Builder toBuilder()
-
- Overrides:
toBuilder
in class BaseLoadBalancer<Node,LoadBalancer>
getRegion
public String getRegion()
getId
public int getId()
getStatus
public LoadBalancer.Status getStatus()
getTypedAlgorithm
@Nullable
public LoadBalancer.Algorithm getTypedAlgorithm()
- Returns:
- algorithm, which may be null if the load balancer is deleted
getVirtualIPs
public Set<VirtualIP> getVirtualIPs()
getClusterName
public String getClusterName()
getSessionPersistenceType
public String getSessionPersistenceType()
getCreated
public Date getCreated()
getUpdated
public Date getUpdated()
isConnectionLoggingEnabled
public boolean isConnectionLoggingEnabled()
toString
public String toString()
- Overrides:
toString
in class BaseLoadBalancer<Node,LoadBalancer>
hashCode
public int hashCode()
- Overrides:
hashCode
in class BaseLoadBalancer<Node,LoadBalancer>
equals
public boolean equals(Object obj)
- Overrides:
equals
in class BaseLoadBalancer<Node,LoadBalancer>
Copyright © 2009-2012 jclouds. All Rights Reserved.