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.String
address
Address.private int
port
Port.private SocketNode13
socketNode
Socket node.
-
Constructor Summary
Constructors Modifier Constructor Description private
SocketDetail(java.net.Socket socket, SocketNode13 node)
Create new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAddress()
Returns a String representation of the Address this instance encompasses.java.lang.String
getName()
Get name.int
getPort()
Returns the Port # that this net based thing is using.boolean
isActive()
Get if item is active.boolean
isPaused()
Get paused state.void
setPaused(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:
getAddress
in 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:
getName
in interfaceNetworkBased
- Returns:
- name.
-
isActive
public boolean isActive()
Get if item is active.- Specified by:
isActive
in interfaceNetworkBased
- Returns:
- if true, item is active.
-
isPaused
public boolean isPaused()
Get paused state.
-
-