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) |
Collection<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() |
protected void |
parseChildren(XMLStreamReader token,
String child) |
void |
removeNode(String cluster,
String host,
int port) |
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) |
void |
write(XMLStreamWriter out) |
doAfterParsing, getBoolean, getElementName, move2RootElementIfNeeded, parse, parseAttributes, parseCharacters, toXml, 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 Collection<Cluster> getClusters()
public boolean addCluster(String name)
protected void parseChildren(XMLStreamReader token, String child) throws Exception
parseChildren in class AbstractXmlElementExceptionpublic void write(XMLStreamWriter out) throws XMLStreamException
write in interface XMLElementwrite in class AbstractXmlElementXMLStreamExceptionpublic String getName()
public void setName(String name)
Copyright © 2012. All Rights Reserved.