org.jclouds.cloudloadbalancers.domain
Class Node

java.lang.Object
  extended by org.jclouds.cloudloadbalancers.domain.internal.BaseNode<Node>
      extended by org.jclouds.cloudloadbalancers.domain.Node
All Implemented Interfaces:
Comparable<BaseNode<Node>>

public class Node
extends BaseNode<Node>

The nodes defined by the load balancer are responsible for servicing the requests received through the load balancer's virtual IP. By default, the load balancer employs a basic health check that ensures the node is listening on its defined port. The node is checked at the time of addition and at regular intervals as defined by the load balancer health check configuration. If a back-end node is not listening on its port or does not meet the conditions of the defined active health check for the load balancer, then the load balancer will not forward connections and its status will be listed as OFFLINE. Only nodes that are in an ONLINE status will receive and be able to service traffic from the load balancer.

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.

Author:
Adrian Cole
See Also:

Nested Class Summary
static class Node.Builder
           
static class Node.Status
          The status is determined by the passive or active health monitors.
 
Nested classes/interfaces inherited from class org.jclouds.cloudloadbalancers.domain.internal.BaseNode
BaseNode.Condition
 
Field Summary
 
Fields inherited from class org.jclouds.cloudloadbalancers.domain.internal.BaseNode
address, condition, port, weight
 
Constructor Summary
Node(int id, String address, int port, BaseNode.Condition condition, Node.Status status, Integer weight)
           
 
Method Summary
static Node.Builder builder()
           
 boolean equals(Object obj)
           
 int getId()
           
 Node.Status getStatus()
           
 int hashCode()
           
 Node.Builder toBuilder()
          
 String toString()
           
 
Methods inherited from class org.jclouds.cloudloadbalancers.domain.internal.BaseNode
compareTo, getAddress, getCondition, getPort, getWeight
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Node

public Node(int id,
            String address,
            int port,
            BaseNode.Condition condition,
            Node.Status status,
            Integer weight)
Method Detail

builder

public static Node.Builder builder()

toBuilder

public Node.Builder toBuilder()

Overrides:
toBuilder in class BaseNode<Node>

getId

public int getId()

getStatus

public Node.Status getStatus()

toString

public String toString()
Overrides:
toString in class BaseNode<Node>

hashCode

public int hashCode()
Overrides:
hashCode in class BaseNode<Node>

equals

public boolean equals(Object obj)
Overrides:
equals in class BaseNode<Node>


Copyright © 2009-2011 jclouds. All Rights Reserved.