Class SocketReceiver.SocketDetail

java.lang.Object
org.apache.log4j.receivers.net.SocketReceiver.SocketDetail
All Implemented Interfaces:
Pauseable, AddressBased, NetworkBased, PortBased
Enclosing class:
SocketReceiver

private static final class SocketReceiver.SocketDetail extends Object implements AddressBased, PortBased, Pauseable
Socket detail.
  • Field Details

    • address

      private String address
      Address.
    • port

      private int port
      Port.
    • socketNode

      private SocketNode13 socketNode
      Socket node.
  • Constructor Details

    • SocketDetail

      private SocketDetail(Socket socket, SocketNode13 node)
      Create new instance.
      Parameters:
      socket - socket
      node - socket node
  • Method Details

    • getAddress

      public String getAddress()
      Returns a String representation of the Address this instance encompasses.
      Specified by:
      getAddress in interface AddressBased
      Returns:
      String representation of the Address
    • getPort

      public int getPort()
      Returns the Port # that this net based thing is using.
      Specified by:
      getPort in interface PortBased
      Returns:
      int port number
    • getName

      public String getName()
      Get name.
      Specified by:
      getName in interface NetworkBased
      Returns:
      name.
    • isActive

      public boolean isActive()
      Get if item is active.
      Specified by:
      isActive in interface NetworkBased
      Returns:
      if true, item is active.
    • isPaused

      public boolean isPaused()
      Get paused state.
      Specified by:
      isPaused in interface Pauseable
      Returns:
      paused state.
    • setPaused

      public void setPaused(boolean b)
      Set paused state.
      Specified by:
      setPaused in interface Pauseable
      Parameters:
      b - new value