Package io.airlift.log
Class SocketMessageOutput
java.lang.Object
io.airlift.log.SocketMessageOutput
- All Implemented Interfaces:
MessageOutput
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createSocketHandler(com.google.common.net.HostAndPort hostAndPort, Formatter formatter, ErrorManager errorManager) voidflush()longvoidwriteMessage(byte[] message)
-
Method Details
-
createSocketHandler
public static io.airlift.log.BufferedHandler createSocketHandler(com.google.common.net.HostAndPort hostAndPort, Formatter formatter, ErrorManager errorManager) -
writeMessage
- Specified by:
writeMessagein interfaceMessageOutput- Throws:
IOException
-
flush
- Specified by:
flushin interfaceMessageOutput- Throws:
IOException
-
close
- Specified by:
closein interfaceMessageOutput- Throws:
IOException
-
getFailedConnections
public long getFailedConnections()
-