Package org.wildfly.mod_cluster.undertow
Class UndertowConnector
java.lang.Object
org.wildfly.mod_cluster.undertow.UndertowConnector
- All Implemented Interfaces:
org.jboss.modcluster.container.Connector
Adapts
UndertowListener to a Connector.- Since:
- 8.0
- Author:
- Radoslav Husar
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.modcluster.container.Connector
org.jboss.modcluster.container.Connector.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintlonglongintintgetPort()longorg.jboss.modcluster.container.Connector.TypegetType()inthashCode()booleanbooleanvoidsetAddress(InetAddress address) toString()
-
Constructor Details
-
UndertowConnector
-
-
Method Details
-
isReverse
public boolean isReverse()- Specified by:
isReversein interfaceorg.jboss.modcluster.container.Connector
-
getType
public org.jboss.modcluster.container.Connector.Type getType()- Specified by:
getTypein interfaceorg.jboss.modcluster.container.Connector
-
getAddress
- Specified by:
getAddressin interfaceorg.jboss.modcluster.container.Connector
-
setAddress
- Specified by:
setAddressin interfaceorg.jboss.modcluster.container.Connector
-
getPort
public int getPort()- Specified by:
getPortin interfaceorg.jboss.modcluster.container.Connector
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein interfaceorg.jboss.modcluster.container.Connector
-
getMaxThreads
public int getMaxThreads()- Specified by:
getMaxThreadsin interfaceorg.jboss.modcluster.container.Connector- Returns:
- int value "-1" to indicate this connector does not maintain corresponding maximum number of threads; capacity needs to be defined instead
-
getBusyThreads
public int getBusyThreads()- Specified by:
getBusyThreadsin interfaceorg.jboss.modcluster.container.Connector- Returns:
- int number of running requests on all connectors as opposed to busy threads
-
getBytesSent
public long getBytesSent()- Specified by:
getBytesSentin interfaceorg.jboss.modcluster.container.Connector- Returns:
- long number of bytes sent on all connectors
-
getBytesReceived
public long getBytesReceived()- Specified by:
getBytesReceivedin interfaceorg.jboss.modcluster.container.Connector- Returns:
- long number of bytes received on all listeners without HTTP request size itself
-
getRequestCount
public long getRequestCount()- Specified by:
getRequestCountin interfaceorg.jboss.modcluster.container.Connector- Returns:
- long number of requests on all listeners as opposed to only this 'connector'
-
toString
-
equals
-
hashCode
public int hashCode()
-