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
public class UndertowConnector extends Object implements org.jboss.modcluster.container.Connector
AdaptsUndertowListenerto aConnector.- Since:
- 8.0
- Author:
- Radoslav Husar
-
-
Constructor Summary
Constructors Constructor Description UndertowConnector(UndertowListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)InetAddressgetAddress()intgetBusyThreads()longgetBytesReceived()longgetBytesSent()intgetMaxThreads()intgetPort()longgetRequestCount()org.jboss.modcluster.container.Connector.TypegetType()inthashCode()booleanisAvailable()booleanisReverse()voidsetAddress(InetAddress address)StringtoString()
-
-
-
Constructor Detail
-
UndertowConnector
public UndertowConnector(UndertowListener listener)
-
-
Method Detail
-
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
public InetAddress getAddress()
- Specified by:
getAddressin interfaceorg.jboss.modcluster.container.Connector
-
setAddress
public void setAddress(InetAddress address)
- 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'
-
-