Package org.serviceconnector.log
Class ConnectionLogger
java.lang.Object
org.serviceconnector.log.ConnectionLogger
The Class ConnectionLogger.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks if is enabled.static booleanChecks if is enabled full.static voidlogConnect(String className, String hostName, int port) Log connect.static voidlogDisconnectByLocalHost(String className, String hostName, int port) Log disconnect by local host.static voidlogDisconnectByRemoteHost(String className, String hostName, int port) Log disconnect by remote host.static voidlogKeepAlive(String className, String hostName, int port, int nrOfIdles) Log keep alive.static voidlogReadBuffer(String className, String hostName, int port, byte[] data, int offset, int length) Log read buffer.static voidlogWriteBuffer(String className, String hostName, int port, byte[] data, int offset, int length) Log write buffer.
-
Method Details
-
logConnect
Log connect.- Parameters:
className- the class namehostName- the host nameport- the port
-
logDisconnectByLocalHost
Log disconnect by local host.- Parameters:
className- the class namehostName- the host nameport- the port
-
logDisconnectByRemoteHost
Log disconnect by remote host.- Parameters:
className- the class namehostName- the host nameport- 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 namehostName- the host nameport- the portdata- the dataoffset- the offsetlength- 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 namehostName- the host nameport- the portdata- the dataoffset- the offsetlength- the length
-
logKeepAlive
Log keep alive.- Parameters:
className- the class namehostName- the host nameport- the portnrOfIdles- 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
-