Package org.apache.iotdb.db.service
Class SettleService
- java.lang.Object
-
- org.apache.iotdb.db.service.SettleService
-
- All Implemented Interfaces:
org.apache.iotdb.commons.service.IService
public class SettleService extends java.lang.Object implements org.apache.iotdb.commons.service.IService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSettleService.InstanceHolder
-
Constructor Summary
Constructors Constructor Description SettleService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.atomic.AtomicIntegergetFilesToBeSettledCount()org.apache.iotdb.commons.service.ServiceTypegetID()static SettleServicegetINSTANCE()org.apache.iotdb.commons.path.PartialPathgetSGByFilePath(java.lang.String tsFilePath)booleanisRecoverFinish()voidsetRecoverFinish(boolean recoverFinish)voidstart()voidstartSettling(java.util.List<TsFileResource> seqResourcesToBeSettled, java.util.List<TsFileResource> unseqResourcesToBeSettled)voidstop()
-
-
-
Method Detail
-
getINSTANCE
public static SettleService getINSTANCE()
-
start
public void start()
- Specified by:
startin interfaceorg.apache.iotdb.commons.service.IService
-
startSettling
public void startSettling(java.util.List<TsFileResource> seqResourcesToBeSettled, java.util.List<TsFileResource> unseqResourcesToBeSettled) throws WriteProcessException
- Throws:
WriteProcessException
-
stop
public void stop()
- Specified by:
stopin interfaceorg.apache.iotdb.commons.service.IService
-
getID
public org.apache.iotdb.commons.service.ServiceType getID()
- Specified by:
getIDin interfaceorg.apache.iotdb.commons.service.IService
-
getFilesToBeSettledCount
public java.util.concurrent.atomic.AtomicInteger getFilesToBeSettledCount()
-
getSGByFilePath
public org.apache.iotdb.commons.path.PartialPath getSGByFilePath(java.lang.String tsFilePath) throws WriteProcessException- Throws:
WriteProcessException
-
isRecoverFinish
public boolean isRecoverFinish()
-
setRecoverFinish
public void setRecoverFinish(boolean recoverFinish)
-
-