public static class SearchCluster.Node extends Object
Modifier and Type | Field and Description |
---|---|
private AtomicLong |
activeDocuments |
private int |
fs4port |
private int |
group |
private String |
hostname |
private int |
key |
private AtomicBoolean |
working |
Constructor and Description |
---|
Node(int key,
String hostname,
int fs4port,
int group) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
fs4port() |
long |
getActiveDocuments()
Returns the active documents on this node.
|
int |
group()
Returns the id of this group this node belongs to
|
int |
hashCode() |
String |
hostname() |
boolean |
isWorking()
Returns whether this node is currently responding to requests
|
int |
key()
Returns the unique and stable distribution key of this node
|
(package private) void |
setActiveDocuments(long activeDocuments)
Updates the active documents on this node
|
(package private) void |
setWorking(boolean working) |
String |
toString() |
private final int key
private final String hostname
private final int fs4port
private final int group
private final AtomicBoolean working
private final AtomicLong activeDocuments
public Node(int key, String hostname, int fs4port, int group)
public int key()
public String hostname()
public int fs4port()
public int group()
void setWorking(boolean working)
public boolean isWorking()
void setActiveDocuments(long activeDocuments)
public long getActiveDocuments()
Copyright © 2018. All rights reserved.