public class Balancer extends AbstractXmlElement
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAME |
| Constructor and Description |
|---|
Balancer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCluster(String name) |
void |
addSession2Cluster(String sessionId,
String cName,
Node n) |
void |
down(String cName,
String host,
int port) |
protected void |
finalize() |
List<Node> |
getAllNodesByCluster(String cName) |
List<Node> |
getAvailableNodesByCluster(String cName) |
List<Cluster> |
getClusters() |
String |
getName() |
Node |
getNode(String cluster,
String host,
int port) |
Map<String,Session> |
getSessions(String cluster) |
List<Session> |
getSessionsByNode(String cName,
Node node) |
long |
getSessionTimeout() |
long |
getTimeout() |
void |
removeNode(String cluster,
String host,
int port) |
void |
setClusters(List<Cluster> clusters) |
void |
setName(String name) |
void |
setSessionTimeout(long sessionTimeout) |
void |
setTimeout(long timeout) |
void |
takeout(String cName,
String host,
int port) |
void |
up(String cName,
String host,
int port) |
doAfterParsing, getBoolean, getElementName, move2RootElementIfNeeded, parse, parseAttributes, parseCharacters, parseChildren, toXml, write, writeIfNotNullpublic static final String DEFAULT_NAME
protected void finalize()
throws Throwable
public long getSessionTimeout()
public void setSessionTimeout(long sessionTimeout)
public long getTimeout()
public void setTimeout(long timeout)
public boolean addCluster(String name)
public String getName()
public void setName(String name)
Copyright © 2022. All Rights Reserved.