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 Object
implements AddressBased, PortBased, Pauseable
Socket detail.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Address.private int
Port.private SocketNode13
Socket node. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SocketDetail
(Socket socket, SocketNode13 node) Create new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns a String representation of the Address this instance encompasses.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 Details
-
address
Address. -
port
private int portPort. -
socketNode
Socket node.
-
-
Constructor Details
-
SocketDetail
Create new instance.- Parameters:
socket
- socketnode
- socket node
-
-
Method Details
-
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
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. -
setPaused
public void setPaused(boolean b) Set paused state.
-