public static class Node.Builder extends BaseNode.Builder<Node>
Constructor and Description |
---|
Node.Builder() |
Modifier and Type | Method and Description |
---|---|
Node.Builder |
address(String address)
Required.
|
Node |
build() |
Node.Builder |
condition(BaseNode.Condition condition)
Required.
|
Node.Builder |
from(Node in) |
Node.Builder |
id(int id) |
Node.Builder |
metadata(Metadata metadata) |
Node.Builder |
port(int port)
Required.
|
Node.Builder |
status(Node.Status status) |
Node.Builder |
type(BaseNode.Type type)
Type of node to add.
|
Node.Builder |
weight(Integer weight)
Weight of node to add.
|
public Node.Builder id(int id)
public Node.Builder status(Node.Status status)
Node.Status
public Node.Builder metadata(Metadata metadata)
public Node build()
build
in class BaseNode.Builder<Node>
public Node.Builder address(String address)
address
in class BaseNode.Builder<Node>
public Node.Builder condition(BaseNode.Condition condition)
condition
in class BaseNode.Builder<Node>
BaseNode.Condition
public Node.Builder type(BaseNode.Type type)
type
in class BaseNode.Builder<Node>
BaseNode.Type
public Node.Builder port(int port)
port
in class BaseNode.Builder<Node>
public Node.Builder weight(Integer weight)
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.weight
in class BaseNode.Builder<Node>
public Node.Builder from(Node in)
from
in class BaseNode.Builder<Node>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.