Class SocketNode

  • All Implemented Interfaces:
    java.lang.Runnable

    public class SocketNode
    extends java.lang.Object
    implements java.lang.Runnable
    Read LoggingEvent 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.

    Since:
    0.8.4
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) LoggerRepository hierarchy  
      (package private) static Logger logger  
      (package private) java.io.ObjectInputStream ois  
      (package private) java.net.Socket socket  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.util.Collection getAllowedClasses()  
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • socket

        java.net.Socket socket
      • ois

        java.io.ObjectInputStream ois
      • logger

        static Logger logger
    • Constructor Detail

      • SocketNode

        public SocketNode​(java.net.Socket socket,
                          LoggerRepository hierarchy)
    • Method Detail

      • getAllowedClasses

        private java.util.Collection getAllowedClasses()
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable