public class Node<T extends Node<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Node.NodeResources
Child mutators for Node
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
T |
alias(String value)
The nodes aliases
|
List<String> |
aliases()
The nodes aliases
|
T |
aliases(List<String> value)
The nodes aliases
|
T |
aliases(String... args)
The nodes aliases
|
Integer |
cacheConnections()
The number of connections to keep alive indefinitely
|
T |
cacheConnections(Integer value)
The number of connections to keep alive indefinitely
|
T |
context(Context value)
Add the Context object to the list of subresources
|
T |
context(ContextSupplier supplier)
Install a supplied Context object to the list of subresources
|
T |
context(String childKey)
Create and configure a Context object to the list of subresources
|
T |
context(String childKey,
ContextConsumer consumer)
Create and configure a Context object to the list of subresources
|
T |
contexts(List<Context> value)
Add all Context objects to this subresource
|
Integer |
elected()
The elected count
|
T |
elected(Integer value)
The elected count
|
Boolean |
flushPackets()
If received data should be immediately flushed
|
T |
flushPackets(Boolean value)
If received data should be immediately flushed
|
String |
getKey() |
Integer |
load()
The current load of this node
|
T |
load(Integer value)
The current load of this node
|
String |
loadBalancingGroup()
The load balancing group this node belongs to
|
T |
loadBalancingGroup(String value)
The load balancing group this node belongs to
|
Integer |
maxConnections()
The maximum number of connections per IO thread
|
T |
maxConnections(Integer value)
The maximum number of connections per IO thread
|
Integer |
openConnections()
The current number of open connections
|
T |
openConnections(Integer value)
The current number of open connections
|
Integer |
ping()
The nodes ping
|
T |
ping(Integer value)
The nodes ping
|
Boolean |
queueNewRequests()
If a request is received and there is no worker immediately available
should it be queued
|
T |
queueNewRequests(Boolean value)
If a request is received and there is no worker immediately available
should it be queued
|
Long |
read()
The number of bytes read from the node
|
T |
read(Long value)
The number of bytes read from the node
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Integer |
requestQueueSize()
The size of the request queue
|
T |
requestQueueSize(Integer value)
The size of the request queue
|
String |
status()
The current status of this node
|
T |
status(String value)
The current status of this node
|
Node.NodeResources |
subresources() |
Integer |
timeout()
The request timeout
|
T |
timeout(Integer value)
The request timeout
|
Long |
ttl()
The time connections will stay alive with no requests before being
closed, if the number of connections is larger than cache-connections
|
T |
ttl(Long value)
The time connections will stay alive with no requests before being
closed, if the number of connections is larger than cache-connections
|
String |
uri()
The URI that the load balancer uses to connect to the node
|
T |
uri(String value)
The URI that the load balancer uses to connect to the node
|
Long |
written()
The number of bytes transferred to the node
|
T |
written(Long value)
The number of bytes transferred to the node
|
public Node(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Node.NodeResources subresources()
public T contexts(List<Context> value)
value
- List of Context objects.public T context(Context value)
value
- The Context to addpublic T context(String childKey, ContextConsumer consumer)
key
- The key for the Context resourceconfig
- The ContextConsumer to usepublic T context(String childKey)
key
- The key for the Context resourcepublic T context(ContextSupplier supplier)
public Integer cacheConnections()
public T cacheConnections(Integer value)
public Integer elected()
public Boolean flushPackets()
public Integer load()
public String loadBalancingGroup()
public T loadBalancingGroup(String value)
public Integer maxConnections()
public T maxConnections(Integer value)
public Integer openConnections()
public Integer ping()
public Boolean queueNewRequests()
public T queueNewRequests(Boolean value)
public Long read()
public Integer requestQueueSize()
public String status()
public Integer timeout()
public Long ttl()
public T ttl(Long value)
public String uri()
public Long written()
Copyright © 2019 JBoss by Red Hat. All rights reserved.