Class LoadBalancer
- java.lang.Object
-
- org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer<Node,LoadBalancer>
-
- org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer
-
- All Implemented Interfaces:
Comparable<BaseLoadBalancer<Node,LoadBalancer>>
public class LoadBalancer extends BaseLoadBalancer<Node,LoadBalancer>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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.-
Nested classes/interfaces inherited from class org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer
BaseLoadBalancer.Algorithm
-
-
Field Summary
-
Fields inherited from class org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer
algorithm, connectionLogging, connectionThrottle, halfClosed, healthMonitor, name, nodes, port, protocol, sessionPersistence, timeout, WEIGHTED_ALGORITHMS
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 fromLoadBalancerApi#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.MoreObjects.ToStringHelper
string()
LoadBalancer.Builder
toBuilder()
String
toString()
-
Methods inherited from class org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer
compareTo, getAlgorithm, getConnectionThrottle, getHealthMonitor, getName, getNodes, getPort, getProtocol, getSessionPersistenceType, getTimeout, isConnectionLogging, isHalfClosed
-
-
-
-
Constructor Detail
-
LoadBalancer
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)
-
-
Method Detail
-
getRegion
public String getRegion()
-
getId
public int getId()
-
getStatus
public LoadBalancer.Status getStatus()
- See Also:
LoadBalancer.Status
-
getVirtualIPs
public Set<VirtualIPWithId> getVirtualIPs()
- See Also:
VirtualIP
-
getClusterName
public String getClusterName()
Name of the cluster.
-
getCreated
public Date getCreated()
When the load balancer was created.
-
getUpdated
public Date getUpdated()
When the load balancer was updated.
-
isContentCaching
public boolean isContentCaching()
View the current content caching configuration.
-
getNodeCount
public int getNodeCount()
Broken out as a separate field because when LoadBalancers are returned fromLoadBalancerApi#list()
, no Nodes are returned (so you can't rely on getNodes().size()) but a nodeCount is returned. WhenLoadBalancerApi#get(int)
is called, nodes are returned but no nodeCount is returned.- Returns:
- The number of Nodes in this LoadBalancer
-
getSSLTermination
@Nullable public SSLTermination getSSLTermination()
- See Also:
SSLTermination
-
getSourceAddresses
public SourceAddresses getSourceAddresses()
- See Also:
SourceAddresses
-
getAccessRules
public Set<AccessRuleWithId> getAccessRules()
- See Also:
AccessRule
-
getUri
public URI getUri()
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
- Overrides:
string
in classBaseLoadBalancer<Node,LoadBalancer>
-
toString
public String toString()
- Overrides:
toString
in classBaseLoadBalancer<Node,LoadBalancer>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBaseLoadBalancer<Node,LoadBalancer>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classBaseLoadBalancer<Node,LoadBalancer>
-
builder
public static LoadBalancer.Builder builder()
-
toBuilder
public LoadBalancer.Builder toBuilder()
- Overrides:
toBuilder
in classBaseLoadBalancer<Node,LoadBalancer>
-
-