Package org.apache.iotdb.db.engine.cq
Class ContinuousQueryService
- java.lang.Object
-
- org.apache.iotdb.db.engine.cq.ContinuousQueryService
-
- All Implemented Interfaces:
org.apache.iotdb.commons.service.IService
public class ContinuousQueryService extends java.lang.Object implements org.apache.iotdb.commons.service.IService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquireRegistrationLock()booleanderegister(DropContinuousQueryPlan plan, boolean shouldWriteLog)voidderegisterAll()voiddoRecovery()org.apache.iotdb.commons.service.ServiceTypegetID()static ContinuousQueryServicegetInstance()java.util.List<ShowContinuousQueriesResult>getShowContinuousQueriesResultList()booleanregister(CreateContinuousQueryPlan plan, boolean shouldWriteLog)voidreleaseRegistrationLock()voidstart()voidstop()
-
-
-
Method Detail
-
doRecovery
public void doRecovery() throws org.apache.iotdb.commons.exception.StartupException- Throws:
org.apache.iotdb.commons.exception.StartupException
-
getID
public org.apache.iotdb.commons.service.ServiceType getID()
- Specified by:
getIDin interfaceorg.apache.iotdb.commons.service.IService
-
start
public void start() throws org.apache.iotdb.commons.exception.StartupException- Specified by:
startin interfaceorg.apache.iotdb.commons.service.IService- Throws:
org.apache.iotdb.commons.exception.StartupException
-
stop
public void stop()
- Specified by:
stopin interfaceorg.apache.iotdb.commons.service.IService
-
acquireRegistrationLock
public void acquireRegistrationLock()
-
releaseRegistrationLock
public void releaseRegistrationLock()
-
register
public boolean register(CreateContinuousQueryPlan plan, boolean shouldWriteLog) throws ContinuousQueryException
- Throws:
ContinuousQueryException
-
deregisterAll
public void deregisterAll() throws ContinuousQueryException- Throws:
ContinuousQueryException
-
deregister
public boolean deregister(DropContinuousQueryPlan plan, boolean shouldWriteLog) throws ContinuousQueryException
- Throws:
ContinuousQueryException
-
getShowContinuousQueriesResultList
public java.util.List<ShowContinuousQueriesResult> getShowContinuousQueriesResultList()
-
getInstance
public static ContinuousQueryService getInstance()
-
-