Class Node
java.lang.Object
com.predic8.membrane.core.config.AbstractXmlElement
com.predic8.membrane.core.interceptor.balancer.Node
- All Implemented Interfaces:
XMLElement
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidbooleanintdoublegetHost()longintgetLost()intgetPort()intinthashCode()voidbooleanisDown()booleanbooleanisUp()protected voidparseAttributes(XMLStreamReader token) voidvoidvoidsetLastUpTime(long lastUpTime) voidsetPort(int port) voidsetStatus(Node.Status status) toString()voidwrite(XMLStreamWriter out) Methods inherited from class com.predic8.membrane.core.config.AbstractXmlElement
doAfterParsing, getBoolean, getElementName, move2RootElementIfNeeded, parse, parseCharacters, parseChildren, toXml, writeIfNotNull
-
Constructor Details
-
Node
-
Node
public Node()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getLost
public int getLost() -
getErrors
public double getErrors() -
getLastUpTime
public long getLastUpTime() -
setLastUpTime
public void setLastUpTime(long lastUpTime) -
getHost
-
setHost
- Description
- The node's host.
- Example
- server3
-
getPort
public int getPort() -
setPort
public void setPort(int port) - Default
- 80
- Description
- The node's port.
- Example
- 8080
-
isUp
public boolean isUp() -
isDown
public boolean isDown() -
isTakeOut
public boolean isTakeOut() -
setStatus
-
getStatus
-
toString
-
getCounter
public int getCounter() -
incCounter
public void incCounter() -
clearCounter
public void clearCounter() -
collectStatisticsFrom
-
addThread
public void addThread() -
removeThread
public void removeThread() -
getThreads
public int getThreads() -
getStatisticsByStatusCodes
-
write
- Specified by:
writein interfaceXMLElement- Overrides:
writein classAbstractXmlElement- Throws:
XMLStreamException
-
parseAttributes
- Overrides:
parseAttributesin classAbstractXmlElement
-
getDestinationURL
-