Package io.airlift.log
Class SocketMessageOutput
- java.lang.Object
-
- io.airlift.log.SocketMessageOutput
-
- All Implemented Interfaces:
MessageOutput
public class SocketMessageOutput extends Object implements MessageOutput
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static io.airlift.log.BufferedHandlercreateSocketHandler(com.google.common.net.HostAndPort hostAndPort, Formatter formatter, ErrorManager errorManager)voidflush()longgetFailedConnections()voidwriteMessage(byte[] message)
-
-
-
Method Detail
-
createSocketHandler
public static io.airlift.log.BufferedHandler createSocketHandler(com.google.common.net.HostAndPort hostAndPort, Formatter formatter, ErrorManager errorManager)
-
writeMessage
public void writeMessage(byte[] message) throws IOException- Specified by:
writeMessagein interfaceMessageOutput- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceMessageOutput- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceMessageOutput- Throws:
IOException
-
getFailedConnections
public long getFailedConnections()
-
-