Class BaseNode.Builder<T extends BaseNode<T>>
- java.lang.Object
-
- org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseNode.Builder<T>
-
- Direct Known Subclasses:
AddNode.Builder
,Node.Builder
public static class BaseNode.Builder<T extends BaseNode<T>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected String
address
protected BaseNode.Condition
condition
protected int
port
protected BaseNode.Type
type
protected Integer
weight
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
address
protected String address
-
port
protected int port
-
condition
protected BaseNode.Condition condition
-
type
protected BaseNode.Type type
-
weight
protected Integer weight
-
-
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 theAlgorithm#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.
-
from
public BaseNode.Builder<T> from(T in)
-
-