org.jclouds.cloudloadbalancers.domain.internal
Class BaseLoadBalancer<N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>>
java.lang.Object
org.jclouds.cloudloadbalancers.domain.internal.BaseLoadBalancer<N,T>
- All Implemented Interfaces:
- Comparable<BaseLoadBalancer<N,T>>
- Direct Known Subclasses:
- LoadBalancer, LoadBalancerRequest
public class BaseLoadBalancer<N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>>
- extends Object
- implements Comparable<BaseLoadBalancer<N,T>>
- Author:
- Adrian Cole
- See Also:
name
protected String name
protocol
protected String protocol
port
protected Integer port
algorithm
protected String algorithm
nodes
protected SortedSet<N extends BaseNode<N>> nodes
BaseLoadBalancer
protected BaseLoadBalancer()
BaseLoadBalancer
public BaseLoadBalancer(String name,
String protocol,
Integer port,
String algorithm,
Iterable<N> nodes)
builder
public static <N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>> BaseLoadBalancer.Builder<N,T> builder()
toBuilder
public BaseLoadBalancer.Builder<N,T> toBuilder()
compareTo
public int compareTo(BaseLoadBalancer<N,T> arg0)
- Specified by:
compareTo
in interface Comparable<BaseLoadBalancer<N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>>>
getName
public String getName()
getProtocol
public String getProtocol()
getPort
public Integer getPort()
getAlgorithm
public String getAlgorithm()
getNodes
public Set<N> getNodes()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2011 jclouds. All Rights Reserved.