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
Adapts UndertowListener to a Connector.
Since:
8.0
Author:
Radoslav Husar
  • Constructor Details

  • Method Details

    • isReverse

      public boolean isReverse()
      Specified by:
      isReverse in interface org.jboss.modcluster.container.Connector
    • getType

      public org.jboss.modcluster.container.Connector.Type getType()
      Specified by:
      getType in interface org.jboss.modcluster.container.Connector
    • getAddress

      public InetAddress getAddress()
      Specified by:
      getAddress in interface org.jboss.modcluster.container.Connector
    • setAddress

      public void setAddress(InetAddress address)
      Specified by:
      setAddress in interface org.jboss.modcluster.container.Connector
    • getPort

      public int getPort()
      Specified by:
      getPort in interface org.jboss.modcluster.container.Connector
    • isAvailable

      public boolean isAvailable()
      Specified by:
      isAvailable in interface org.jboss.modcluster.container.Connector
    • getMaxThreads

      public int getMaxThreads()
      Specified by:
      getMaxThreads in interface org.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:
      getBusyThreads in interface org.jboss.modcluster.container.Connector
      Returns:
      int number of running requests on all connectors as opposed to busy threads
    • getBytesSent

      public long getBytesSent()
      Specified by:
      getBytesSent in interface org.jboss.modcluster.container.Connector
      Returns:
      long number of bytes sent on all connectors
    • getBytesReceived

      public long getBytesReceived()
      Specified by:
      getBytesReceived in interface org.jboss.modcluster.container.Connector
      Returns:
      long number of bytes received on all listeners without HTTP request size itself
    • getRequestCount

      public long getRequestCount()
      Specified by:
      getRequestCount in interface org.jboss.modcluster.container.Connector
      Returns:
      long number of requests on all listeners as opposed to only this 'connector'
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object