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 StringAddress.private intPort.private SocketNode13Socket node. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSocketDetail(Socket socket, SocketNode13 node) Create new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns a String representation of the Address this instance encompasses.getName()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 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:
getAddressin interfaceAddressBased- Returns:
- String representation of the Address
-
getPort
-
getName
-
isActive
public boolean isActive()Get if item is active.- Specified by:
isActivein interfaceNetworkBased- Returns:
- if true, item is active.
-
isPaused
-
setPaused
-