org.jclouds.cloudloadbalancers.domain
Class LoadBalancer

java.lang.Object
  extended by org.jclouds.cloudloadbalancers.domain.internal.BaseLoadBalancer<Node,LoadBalancer>
      extended by 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.
 
Field Summary
static LoadBalancer.Algorithm[] WEIGHTED_ALGORITHMS
           
 
Fields inherited from class org.jclouds.cloudloadbalancers.domain.internal.BaseLoadBalancer
name, nodes, port, protocol
 
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)
           
 
Method Summary
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()
           
 
Methods inherited from class org.jclouds.cloudloadbalancers.domain.internal.BaseLoadBalancer
compareTo, getAlgorithm, getName, getNodes, getPort, getProtocol
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

WEIGHTED_ALGORITHMS

public static LoadBalancer.Algorithm[] WEIGHTED_ALGORITHMS
Constructor Detail

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)
Method Detail

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.