Top Description Fields Constructors Methods
ch.qos.logback.classic.net

public Class SocketNode

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable
Imports
java.io.BufferedInputStream, .IOException, java.net.Socket, .SocketAddress, ch.qos.logback.classic.Logger, .LoggerContext, ch.qos.logback.classic.net.server.HardenedLoggingEventInputStream, ch.qos.logback.classic.spi.ILoggingEvent

Read ILoggingEvent objects sent from a remote client using Sockets (TCP). These logging events are logged according to local policy, as if they were generated locally.

For example, the socket node might decide to log events to a local file and also resent them to a second socket node.

Authors
Ceki Gülcü, Sébastien Pennec
Since
0.8.4

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv LoggerContext
pack-priv HardenedLoggingEventInputStream
pack-priv Logger
pack-priv SocketAddress
pack-priv Socket
pack-priv SimpleSocketServer

Constructor Summary

AccessConstructor and Description
public
SocketNode(SimpleSocketServer socketServer, Socket socket, LoggerContext context)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

closedback to summary
pack-priv boolean closed
contextback to summary
pack-priv LoggerContext context
hardenedLoggingEventInputStreamback to summary
pack-priv HardenedLoggingEventInputStream hardenedLoggingEventInputStream
loggerback to summary
pack-priv Logger logger
remoteSocketAddressback to summary
pack-priv SocketAddress remoteSocketAddress
socketback to summary
pack-priv Socket socket
socketServerback to summary
pack-priv SimpleSocketServer socketServer

Constructor Detail

SocketNodeback to summary
public SocketNode(SimpleSocketServer socketServer, Socket socket, LoggerContext context)

Method Detail

closeback to summary
pack-priv void close()
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override