Class SyncLogWriter
- java.lang.Object
-
- org.apache.iotdb.commons.sync.persistence.SyncLogWriter
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class SyncLogWriter extends java.lang.Object implements java.lang.AutoCloseableSyncLogger is used to manage the persistent information in the sync module. Persistent information can be recovered on reboot via SyncLogReader.
-
-
Constructor Summary
Constructors Constructor Description SyncLogWriter(java.io.File dir)SyncLogWriter(java.io.File dir, java.lang.String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPipe(PipeInfo pipeInfo)voidaddPipeSink(PipeSink pipeSink)voidclose()voiddropPipeSink(java.lang.String pipeSinkName)voidinitOutputStream()voidoperatePipe(java.lang.String pipeName, SyncOperation syncOperation)
-
-
-
Method Detail
-
initOutputStream
public void initOutputStream() throws java.io.IOException- Throws:
java.io.IOException
-
addPipeSink
public void addPipeSink(PipeSink pipeSink) throws java.io.IOException
- Throws:
java.io.IOException
-
dropPipeSink
public void dropPipeSink(java.lang.String pipeSinkName) throws java.io.IOException- Throws:
java.io.IOException
-
addPipe
public void addPipe(PipeInfo pipeInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
operatePipe
public void operatePipe(java.lang.String pipeName, SyncOperation syncOperation) throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
-