org.jclouds.rackspace.cloudloadbalancers.v1.domain
Class LoadBalancer

java.lang.Object
  extended by org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer<Node,LoadBalancer>
      extended by org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer
All Implemented Interfaces:
Comparable<BaseLoadBalancer<Node,LoadBalancer>>

public class LoadBalancer
extends BaseLoadBalancer<Node,LoadBalancer>


Nested Class Summary
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
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
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()
           
 
Methods inherited from class org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer
compareTo, getAlgorithm, getConnectionThrottle, getHealthMonitor, getName, getNodes, getPort, getProtocol, getSessionPersistenceType, getTimeout, isConnectionLogging, isHalfClosed
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 from 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.

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

getMetadata

public Metadata getMetadata()
See Also:
Metadata

getUri

public URI getUri()

string

protected com.google.common.base.Objects.ToStringHelper string()
Overrides:
string in class BaseLoadBalancer<Node,LoadBalancer>

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>

builder

public static LoadBalancer.Builder builder()

toBuilder

public LoadBalancer.Builder toBuilder()
Overrides:
toBuilder in class BaseLoadBalancer<Node,LoadBalancer>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.