Class SyncLogWriter
- java.lang.Object
-
- org.apache.iotdb.db.sync.common.persistence.SyncLogWriter
-
public class SyncLogWriter extends java.lang.ObjectSyncLogger is used to manage the persistent information in the sync module. Persistent information can be recovered on reboot via SyncLogReader.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPipe(CreatePipeStatement createPipeStatement, long pipeCreateTime)voidaddPipe(CreatePipePlan plan, long pipeCreateTime)voidaddPipeSink(CreatePipeSinkStatement createPipeSinkStatement)voidaddPipeSink(CreatePipeSinkPlan plan)voidclose()voidcomsumePipeMsg(java.lang.String pipeIdentifier)voiddropPipeSink(java.lang.String pipeSinkName)voidgetBufferedWriter()static SyncLogWritergetInstance()voidoperatePipe(java.lang.String pipeName, StatementType type)voidwritePipeMsg(java.lang.String pipeIdentifier, PipeMessage pipeMessage)
-
-
-
Method Detail
-
getBufferedWriter
public void getBufferedWriter() throws java.io.IOException- Throws:
java.io.IOException
-
addPipeSink
public void addPipeSink(CreatePipeSinkPlan plan) throws java.io.IOException
- Throws:
java.io.IOException
-
addPipeSink
public void addPipeSink(CreatePipeSinkStatement createPipeSinkStatement) 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(CreatePipePlan plan, long pipeCreateTime) throws java.io.IOException
- Throws:
java.io.IOException
-
addPipe
public void addPipe(CreatePipeStatement createPipeStatement, long pipeCreateTime) throws java.io.IOException
- Throws:
java.io.IOException
-
operatePipe
public void operatePipe(java.lang.String pipeName, StatementType type) throws java.io.IOException- Throws:
java.io.IOException
-
writePipeMsg
public void writePipeMsg(java.lang.String pipeIdentifier, PipeMessage pipeMessage) throws java.io.IOException- Throws:
java.io.IOException
-
comsumePipeMsg
public void comsumePipeMsg(java.lang.String pipeIdentifier) throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
getInstance
public static SyncLogWriter getInstance()
-
-