org.jclouds.cloudloadbalancers.domain.internal
Class BaseLoadBalancer<N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>>

java.lang.Object
  extended by 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:

Nested Class Summary
static class BaseLoadBalancer.Builder<N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>>
           
 
Field Summary
protected  String algorithm
           
protected  String name
           
protected  SortedSet<N> nodes
           
protected  Integer port
           
protected  String protocol
           
 
Constructor Summary
protected BaseLoadBalancer()
           
  BaseLoadBalancer(String name, String protocol, Integer port, String algorithm, Iterable<N> nodes)
           
 
Method Summary
static
<N extends BaseNode<N>,T extends BaseLoadBalancer<N,T>>
BaseLoadBalancer.Builder<N,T>
builder()
           
 int compareTo(BaseLoadBalancer<N,T> arg0)
           
 boolean equals(Object obj)
           
 String getAlgorithm()
           
 String getName()
           
 Set<N> getNodes()
           
 Integer getPort()
           
 String getProtocol()
           
 int hashCode()
           
 BaseLoadBalancer.Builder<N,T> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

protocol

protected String protocol

port

protected Integer port

algorithm

protected String algorithm

nodes

protected SortedSet<N extends BaseNode<N>> nodes
Constructor Detail

BaseLoadBalancer

protected BaseLoadBalancer()

BaseLoadBalancer

public BaseLoadBalancer(String name,
                        String protocol,
                        Integer port,
                        String algorithm,
                        Iterable<N> nodes)
Method Detail

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.