Class ConnectionLogger

java.lang.Object
org.serviceconnector.log.ConnectionLogger

public final class ConnectionLogger extends Object
The Class ConnectionLogger.
  • Method Details

    • logConnect

      public static void logConnect(String className, String hostName, int port)
      Log connect.
      Parameters:
      className - the class name
      hostName - the host name
      port - the port
    • logDisconnectByLocalHost

      public static void logDisconnectByLocalHost(String className, String hostName, int port)
      Log disconnect by local host.
      Parameters:
      className - the class name
      hostName - the host name
      port - the port
    • logDisconnectByRemoteHost

      public static void logDisconnectByRemoteHost(String className, String hostName, int port)
      Log disconnect by remote host.
      Parameters:
      className - the class name
      hostName - the host name
      port - the port
    • logReadBuffer

      public static void logReadBuffer(String className, String hostName, int port, byte[] data, int offset, int length)
      Log read buffer.
      Parameters:
      className - the class name
      hostName - the host name
      port - the port
      data - the data
      offset - the offset
      length - the length
    • logWriteBuffer

      public static void logWriteBuffer(String className, String hostName, int port, byte[] data, int offset, int length)
      Log write buffer.
      Parameters:
      className - the class name
      hostName - the host name
      port - the port
      data - the data
      offset - the offset
      length - the length
    • logKeepAlive

      public static void logKeepAlive(String className, String hostName, int port, int nrOfIdles)
      Log keep alive.
      Parameters:
      className - the class name
      hostName - the host name
      port - the port
      nrOfIdles - the nr of idles
    • isEnabledFull

      public static boolean isEnabledFull()
      Checks if is enabled full.
      Returns:
      true, if is enabled full
    • isEnabled

      public static boolean isEnabled()
      Checks if is enabled.
      Returns:
      true, if is enabled