public class Node extends AbstractXmlElement
Modifier and Type | Class and Description |
---|---|
static class |
Node.Status |
Modifier and Type | Method and Description |
---|---|
void |
addThread() |
void |
clearCounter() |
void |
collectStatisticsFrom(Exchange exc) |
boolean |
equals(Object obj) |
int |
getCounter() |
String |
getDestinationURL(Exchange exc) |
double |
getErrors() |
String |
getHost() |
long |
getLastUpTime() |
int |
getLost() |
int |
getPort() |
Map<Integer,StatisticCollector> |
getStatisticsByStatusCodes() |
Node.Status |
getStatus() |
int |
getThreads() |
int |
hashCode() |
void |
incCounter() |
boolean |
isDown() |
boolean |
isTakeOut() |
boolean |
isUp() |
protected void |
parseAttributes(XMLStreamReader token) |
void |
removeThread() |
void |
setHost(String host) |
void |
setLastUpTime(long lastUpTime) |
void |
setPort(int port) |
void |
setStatus(Node.Status status) |
String |
toString() |
void |
write(XMLStreamWriter out) |
doAfterParsing, getBoolean, getElementName, move2RootElementIfNeeded, parse, parseCharacters, parseChildren, toXml, writeIfNotNull
public Node(String host, int port)
public Node()
public int getLost()
public double getErrors()
public long getLastUpTime()
public void setLastUpTime(long lastUpTime)
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public boolean isUp()
public boolean isDown()
public boolean isTakeOut()
public void setStatus(Node.Status status)
public Node.Status getStatus()
public int getCounter()
public void incCounter()
public void clearCounter()
public void collectStatisticsFrom(Exchange exc)
public void addThread()
public void removeThread()
public int getThreads()
public Map<Integer,StatisticCollector> getStatisticsByStatusCodes()
public void write(XMLStreamWriter out) throws XMLStreamException
write
in interface XMLElement
write
in class AbstractXmlElement
XMLStreamException
protected void parseAttributes(XMLStreamReader token)
parseAttributes
in class AbstractXmlElement
public String getDestinationURL(Exchange exc) throws MalformedURLException
MalformedURLException
Copyright © 2012. All Rights Reserved.