Package org.komamitsu.fluency
Class Fluency
- java.lang.Object
-
- org.komamitsu.fluency.Fluency
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class Fluency extends java.lang.Object implements java.io.Flushable, java.io.Closeable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearBackupFiles()voidclose()voidemit(java.lang.String tag, byte[] mapValue, int offset, int len)voidemit(java.lang.String tag, long timestamp, byte[] mapValue, int offset, int len)voidemit(java.lang.String tag, long timestamp, java.nio.ByteBuffer mapValue)voidemit(java.lang.String tag, long timestamp, java.util.Map<java.lang.String,java.lang.Object> data)voidemit(java.lang.String tag, java.nio.ByteBuffer mapValue)voidemit(java.lang.String tag, java.util.Map<java.lang.String,java.lang.Object> data)voidemit(java.lang.String tag, EventTime eventTime, byte[] mapValue, int offset, int len)voidemit(java.lang.String tag, EventTime eventTime, java.nio.ByteBuffer mapValue)voidemit(java.lang.String tag, EventTime eventTime, java.util.Map<java.lang.String,java.lang.Object> data)voidflush()longgetAllocatedBufferSize()BuffergetBuffer()longgetBufferedDataSize()FlushergetFlusher()booleanisTerminated()java.lang.StringtoString()booleanwaitUntilAllBufferFlushed(int maxWaitSeconds)booleanwaitUntilFlusherTerminated(int maxWaitSeconds)
-
-
-
Method Detail
-
emit
public void emit(java.lang.String tag, long timestamp, java.util.Map<java.lang.String,java.lang.Object> data) throws java.io.IOException- Throws:
java.io.IOException
-
emit
public void emit(java.lang.String tag, java.util.Map<java.lang.String,java.lang.Object> data) throws java.io.IOException- Throws:
java.io.IOException
-
emit
public void emit(java.lang.String tag, EventTime eventTime, java.util.Map<java.lang.String,java.lang.Object> data) throws java.io.IOException- Throws:
java.io.IOException
-
emit
public void emit(java.lang.String tag, long timestamp, byte[] mapValue, int offset, int len) throws java.io.IOException- Throws:
java.io.IOException
-
emit
public void emit(java.lang.String tag, byte[] mapValue, int offset, int len) throws java.io.IOException- Throws:
java.io.IOException
-
emit
public void emit(java.lang.String tag, EventTime eventTime, byte[] mapValue, int offset, int len) throws java.io.IOException- Throws:
java.io.IOException
-
emit
public void emit(java.lang.String tag, long timestamp, java.nio.ByteBuffer mapValue) throws java.io.IOException- Throws:
java.io.IOException
-
emit
public void emit(java.lang.String tag, java.nio.ByteBuffer mapValue) throws java.io.IOException- Throws:
java.io.IOException
-
emit
public void emit(java.lang.String tag, EventTime eventTime, java.nio.ByteBuffer mapValue) throws java.io.IOException- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
clearBackupFiles
public void clearBackupFiles()
-
getAllocatedBufferSize
public long getAllocatedBufferSize()
-
getBufferedDataSize
public long getBufferedDataSize()
-
isTerminated
public boolean isTerminated()
-
waitUntilAllBufferFlushed
public boolean waitUntilAllBufferFlushed(int maxWaitSeconds) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
waitUntilFlusherTerminated
public boolean waitUntilFlusherTerminated(int maxWaitSeconds) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
getBuffer
public Buffer getBuffer()
-
getFlusher
public Flusher getFlusher()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-