Package org.apache.log4j.receivers.net
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 java.lang.Object implements AddressBased, PortBased, Pauseable
Socket detail.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringaddressAddress.private intportPort.private SocketNode13socketNodeSocket node.
-
Constructor Summary
Constructors Modifier Constructor Description privateSocketDetail(java.net.Socket socket, SocketNode13 node)Create new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAddress()Returns a String representation of the Address this instance encompasses.java.lang.StringgetName()Get name.intgetPort()Returns the Port # that this net based thing is using.booleanisActive()Get if item is active.booleanisPaused()Get paused state.voidsetPaused(boolean b)Set paused state.
-
-
-
Field Detail
-
address
private java.lang.String address
Address.
-
port
private int port
Port.
-
socketNode
private SocketNode13 socketNode
Socket node.
-
-
Constructor Detail
-
SocketDetail
private SocketDetail(java.net.Socket socket, SocketNode13 node)Create new instance.- Parameters:
socket- socketnode- socket node
-
-
Method Detail
-
getAddress
public java.lang.String getAddress()
Returns a String representation of the Address this instance encompasses.- Specified by:
getAddressin interfaceAddressBased- Returns:
- String representation of the Address
-
getPort
public int getPort()
Returns the Port # that this net based thing is using.
-
getName
public java.lang.String getName()
Get name.- Specified by:
getNamein interfaceNetworkBased- Returns:
- name.
-
isActive
public boolean isActive()
Get if item is active.- Specified by:
isActivein interfaceNetworkBased- Returns:
- if true, item is active.
-
isPaused
public boolean isPaused()
Get paused state.
-
-