org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal
Class BaseNode.Builder<T extends BaseNode<T>>

java.lang.Object
  extended by org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseNode.Builder<T>
Direct Known Subclasses:
AddNode.Builder, Node.Builder
Enclosing class:
BaseNode<T extends BaseNode<T>>

public static class BaseNode.Builder<T extends BaseNode<T>>
extends Object


Field Summary
protected  String address
           
protected  BaseNode.Condition condition
           
protected  int port
           
protected  BaseNode.Type type
           
protected  Integer weight
           
 
Constructor Summary
BaseNode.Builder()
           
 
Method Summary
 BaseNode.Builder<T> address(String address)
          Required.
 BaseNode<T> build()
           
 BaseNode.Builder<T> condition(BaseNode.Condition condition)
          Required.
 BaseNode.Builder<T> from(T in)
           
 BaseNode.Builder<T> port(int port)
          Required.
 BaseNode.Builder<T> type(BaseNode.Type type)
          Type of node to add.
 BaseNode.Builder<T> weight(Integer weight)
          Weight of node to add.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

protected String address

port

protected int port

condition

protected BaseNode.Condition condition

type

protected BaseNode.Type type

weight

protected Integer weight
Constructor Detail

BaseNode.Builder

public BaseNode.Builder()
Method Detail

address

public BaseNode.Builder<T> address(String address)
Required. IP address or domain name for the node.


port

public BaseNode.Builder<T> port(int port)
Required. Port number for the service you are load balancing.


condition

public BaseNode.Builder<T> condition(BaseNode.Condition condition)
Required. Condition for the node, which determines its role within the load balancer.

See Also:
BaseNode.Condition

type

public BaseNode.Builder<T> type(BaseNode.Type type)
Type of node to add.

See Also:
BaseNode.Type

weight

public BaseNode.Builder<T> weight(Integer weight)
Weight of node to add. If the Algorithm#WEIGHTED_ROUND_ROBIN load balancer algorithm mode is selected, then the user should assign the relevant weight to the node using the weight attribute for the node. Must be an integer from 1 to 100.


build

public BaseNode<T> build()

from

public BaseNode.Builder<T> from(T in)


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