public class NodeRequest extends BaseNode<NodeRequest>
All nodes have an associated status that indicates whether the node is ONLINE, OFFLINE, or DRAINING. Only nodes that are in ONLINE status will receive and be able to service traffic from the load balancer. The OFFLINE status represents a node that cannot accept or service traffic. A node in DRAINING status represents a node that stops the traffic manager from sending any additional new connections to the node, but honors established sessions. If the traffic manager receives a request and session persistence requires that the node is used, the traffic manager will use it. The status is determined by the passive or active health monitors.
If the WEIGHTED_ROUND_ROBIN load balancer algorithm mode is selected, then the caller should assign the relevant weights to the node as part of the weight attribute of the node element. When the algorithm of the load balancer is changed to WEIGHTED_ROUND_ROBIN and the nodes do not already have an assigned weight, the service will automatically set the weight to "1" for all nodes.
Modifier and Type | Class and Description |
---|---|
static class |
NodeRequest.Builder |
BaseNode.Condition
Constructor and Description |
---|
NodeRequest(String address,
int port,
BaseNode.Condition condition,
Integer weight) |
Modifier and Type | Method and Description |
---|---|
static NodeRequest.Builder |
builder() |
boolean |
equals(Object obj) |
int |
hashCode() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
NodeRequest.Builder |
toBuilder() |
String |
toString() |
compareTo, getAddress, getCondition, getPort, getWeight
public NodeRequest(String address, int port, BaseNode.Condition condition, Integer weight)
public static NodeRequest.Builder builder()
public NodeRequest.Builder toBuilder()
toBuilder
in class BaseNode<NodeRequest>
protected com.google.common.base.Objects.ToStringHelper string()
string
in class BaseNode<NodeRequest>
public String toString()
toString
in class BaseNode<NodeRequest>
public int hashCode()
hashCode
in class BaseNode<NodeRequest>
public boolean equals(Object obj)
equals
in class BaseNode<NodeRequest>
Copyright © 2009-2013 jclouds. All Rights Reserved.