Interface IConfigNodeRPCService.Iface
-
- All Known Implementing Classes:
IConfigNodeRPCService.Client
- Enclosing class:
- IConfigNodeRPCService
public static interface IConfigNodeRPCService.Iface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TSStatusaddConsensusGroup(TAddConsensusGroupReq req)The ConfigNode-leader will guide the Non-Seed-ConfigNode to join the ConsensusGroup when first startupTSStatusalterDatabase(TDatabaseSchema databaseSchema)Alter a Database's schema, including TTL, ReplicationFactor, timePartitionInterval and RegionGroupNumTSStatusalterLogicalView(TAlterLogicalViewReq req)TSStatusalterSchemaTemplate(TAlterSchemaTemplateReq req)TPermissionInfoRespcheckRoleOfUser(TAuthorizerReq req)TPermissionInfoRespcheckUserPrivilegeGrantOpt(TCheckUserPrivilegesReq req)TPermissionInfoRespcheckUserPrivileges(TCheckUserPrivilegesReq req)Permission checking for user operationsTSStatusclearCache()Clear the cache of chunk, chunk metadata and timeseries metadata to release the memory footprint on all DataNodesTCountDatabaseRespcountMatchedDatabases(TGetDatabaseReq req)Count the matched DatabasesTCountTimeSlotListRespcountTimeSlotList(TCountTimeSlotListReq req)TSStatuscreateCQ(TCreateCQReq req)Create a CQTSStatuscreateFunction(TCreateFunctionReq req)Create a function on all online ConfigNodes and DataNodesTSStatuscreatePipe(TCreatePipeReq req)Create PipeTSStatuscreatePipePlugin(TCreatePipePluginReq req)Create a pipe plugin on the specified DataNodeTSStatuscreateSchemaTemplate(TCreateSchemaTemplateReq req)Create device templateTSStatuscreateTrigger(TCreateTriggerReq req)Create a statless trigger on all online DataNodes or Create a stateful trigger on a specific DataNode and sync Information of it to all ConfigNodesTSStatusdeactivateSchemaTemplate(TDeactivateSchemaTemplateReq req)Deactivate device template from paths matched by given pattern tree in clusterTSStatusdeleteConfigNodePeer(TConfigNodeLocation configNodeLocation)Let the specific ConfigNode delete the peerTSStatusdeleteDatabase(TDeleteDatabaseReq req)Generate a DeleteDatabaseProcedure to delete a specified DatabaseTSStatusdeleteDatabases(TDeleteDatabasesReq req)Generate a set of DeleteDatabaseProcedure to delete some specific DatabasesTSStatusdeleteLogicalView(TDeleteLogicalViewReq req)TSStatusdeleteTimeSeries(TDeleteTimeSeriesReq req)Generate a set of DeleteTimeSeriesProcedure to delete some specific TimeSeriesTSStatusdropCQ(TDropCQReq req)Drop a CQTSStatusdropFunction(TDropFunctionReq req)Remove a function on all online ConfigNodes and DataNodesTSStatusdropPipe(String pipeName)Drop PipeTSStatusdropPipePlugin(TDropPipePluginReq req)Remove a pipe plugin on the DataNodesTSStatusdropSchemaTemplate(String req)Drop device templateTSStatusdropTrigger(TDropTriggerReq req)Remove a trigger on all online ConfigNodes and DataNodesTSStatusexecuteSyncCommand(ByteBuffer configPhysicalPlanBinary)Execute schema language from external pipesTAuthizedPatternTreeRespfetchAuthizedPatternTree(TCheckUserPrivilegesReq req)TSStatusflush(TFlushReq req)Persist all the data points in the memory table of the database to the disk, and seal the data file on all DataNodesTGetAllPipeInfoRespgetAllPipeInfo()Get all pipe information.TGetAllTemplatesRespgetAllTemplates()Get all device template info and template set info for DataNode registerationTGetClusterIdRespgetClusterId()Get cluster IDTConfigNodeHeartbeatRespgetConfigNodeHeartBeat(TConfigNodeHeartbeatReq req)The ConfigNode-leader will ping other ConfigNodes periodicallyTDataNodeConfigurationRespgetDataNodeConfiguration(int dataNodeId)Get one or more DataNodes' configurationTDataPartitionTableRespgetDataPartitionTable(TDataPartitionReq req)Get DataPartitionTable by specific PartitionSlotsMap, the returned DataPartitionTable will not contain the unallocated SeriesPartitionSlots and TimePartitionSlotsTRegionRouteMapRespgetLatestRegionRouteMap()The ConfigNode-leader will generate and return a latest RegionRouteMapTGetLocationForTriggerRespgetLocationOfStatefulTrigger(String triggerName)Get TDataNodeLocation of a stateful triggerTDatabaseSchemaRespgetMatchedDatabaseSchemas(TGetDatabaseReq req)Get the matched Databases' TDatabaseSchemaTDataPartitionTableRespgetOrCreateDataPartitionTable(TDataPartitionReq req)Get or create DataPartitionTable by specific PartitionSlotsMap, the returned SchemaPartitionTable always contains all the SeriesPartitionSlots and TimePartitionSlots since the unallocated SeriesPartitionSlots and TimePartitionSlots will be allocated by the wayTSchemaPartitionTableRespgetOrCreateSchemaPartitionTable(TSchemaPartitionReq req)Get or create SchemaPartitionTable by specific PathPatternTree, the returned SchemaPartitionTable always contains all the SeriesPartitionSlots since the unallocated SeriesPartitionSlots will be allocated by the wayTGetPathsSetTemplatesRespgetPathsSetTemplate(TGetPathsSetTemplatesReq req)Get paths setting given device templateTGetJarInListRespgetPipePluginJar(TGetJarInListReq req)Return the pipe plugin jar list of the plugin name listTGetPipePluginTableRespgetPipePluginTable()Return the pipe plugin tableTGetRegionIdRespgetRegionId(TGetRegionIdReq req)Get a particular DataPartition's corresponding RegionsTGetDataNodeLocationsRespgetRunningDataNodeLocations()Get all DataNodeLocations of Running DataNodesTSchemaNodeManagementRespgetSchemaNodeManagementPartition(TSchemaNodeManagementReq req)Get the partition info used for schema node query and get the node info in CluterSchemaInfo.TSchemaPartitionTableRespgetSchemaPartitionTable(TSchemaPartitionReq req)Get SchemaPartitionTable by specific PathPatternTree, the returned SchemaPartitionTable will not contain the unallocated SeriesPartitionSlots See https://apache-iotdb.feishu.cn/docs/doccnqe3PLPEKwsCX1xadXQ2JOg for detailed matching rulesTGetSeriesSlotListRespgetSeriesSlotList(TGetSeriesSlotListReq req)Get the given database's assigned SeriesSlotsTSpaceQuotaRespgetSpaceQuota()Get space quota informationTGetTriggerTableRespgetStatefulTriggerTable()Return the Stateful trigger tableTSystemConfigurationRespgetSystemConfiguration()Get system configurations.TGetTemplateRespgetTemplate(String req)Get one device template infoTThrottleQuotaRespgetThrottleQuota()Get throttle quota informationTGetTimeSlotListRespgetTimeSlotList(TGetTimeSlotListReq req)Get a specific SeriesSlot's TimeSlots by start time and end timeTGetJarInListRespgetTriggerJar(TGetJarInListReq req)Return the trigger jar list of the trigger name listTGetTriggerTableRespgetTriggerTable()Return the trigger tableTGetJarInListRespgetUDFJar(TGetJarInListReq req)Return the UDF jar list of the jar name listTGetUDFTableRespgetUDFTable()Return the UDF tableTSStatuskillQuery(String queryId, int dataNodeId)Kill queryTSStatusloadConfiguration()Load configuration on all DataNodesTPermissionInfoResplogin(TLoginReq req)Authenticate user loginTSStatusmerge()Execute Level Compaction and unsequence Compaction task on all DataNodesTSStatusmigrateRegion(TMigrateRegionReq req)Migrate a region replica from one dataNode to anotherTSStatusnotifyRegisterSuccess()The ConfigNode-leader will notify the Non-Seed-ConfigNode that the registration successTSStatusoperatePermission(TAuthorizerReq req)Execute permission write operations such as create user, create role, and grant permission.TAuthorizerRespqueryPermission(TAuthorizerReq req)Execute permission read operations such as list userTConfigNodeRegisterRespregisterConfigNode(TConfigNodeRegisterReq req)The Non-Seed-ConfigNode submit a registration request to the ConfigNode-leader when first startupTDataNodeRegisterRespregisterDataNode(TDataNodeRegisterReq req)Register a new DataNode into the clusterTSStatusremoveConfigNode(TConfigNodeLocation configNodeLocation)Remove the specific ConfigNode from the clusterTDataNodeRemoveRespremoveDataNode(TDataNodeRemoveReq req)Generate a set of DataNodeRemoveProcedure to remove some specific DataNodes from the clusterTSStatusreportConfigNodeShutdown(TConfigNodeLocation configNodeLocation)Report that the specified ConfigNode will be shutdown.TSStatusreportDataNodeShutdown(TDataNodeLocation dataNodeLocation)Report that the specified DataNode will be shutdown.TSStatusreportRegionMigrateResult(TRegionMigrateResultReportReq req)Report region migration completeTDataNodeRestartResprestartDataNode(TDataNodeRestartReq req)Restart an existed DataNodeTSStatussetDatabase(TDatabaseSchema databaseSchema)Set a new Databse, all fields in TDatabaseSchema can be customized while the undefined fields will automatically use default valuesTSStatussetDataNodeStatus(TSetDataNodeStatusReq req)TestOnly.TSStatussetDataReplicationFactor(TSetDataReplicationFactorReq req)Update the specific Database's DataReplicationFactorTSStatussetSchemaReplicationFactor(TSetSchemaReplicationFactorReq req)Update the specific Database's SchemaReplicationFactorTSStatussetSchemaTemplate(TSetSchemaTemplateReq req)Set given device template to given pathTSStatussetSpaceQuota(TSetSpaceQuotaReq req)Set Space QuotaTSStatussetSystemStatus(String status)Set system status on DataNodesTSStatussetThrottleQuota(TSetThrottleQuotaReq req)Set throttle quotaTSStatussetTimePartitionInterval(TSetTimePartitionIntervalReq req)Update the specific Database's PartitionIntervalTSStatussetTTL(TSetTTLReq req)Update the specific Database's TTLTShowClusterRespshowCluster()Show cluster ConfigNodes' and DataNodes' informationTShowConfigNodesRespshowConfigNodes()Show cluster ConfigNodes' informationTShowCQRespshowCQ()Return the cq table of config leaderTShowDatabaseRespshowDatabase(TGetDatabaseReq req)Show cluster Databases' informationTShowDataNodesRespshowDataNodes()Show cluster DataNodes' informationTShowPipeRespshowPipe(TShowPipeReq req)Show Pipe by name, if name is empty, show all PipeTShowRegionRespshowRegion(TShowRegionReq req)Show the matched cluster Regions' information See https://apache-iotdb.feishu.cn/docx/doxcnOzmIlaE2MX5tKjmYWuMSRg for detailed matching rulesTSpaceQuotaRespshowSpaceQuota(List<String> databases)Show space quotaTThrottleQuotaRespshowThrottleQuota(TShowThrottleReq req)Show throttle quotaTShowVariablesRespshowVariables()Show variables who should be consist in the same clusterTSStatusstartPipe(String pipeName)Start PipeTSStatusstartRepairData()Check and repair unsorted tsfile by compactionTSStatusstopConfigNode(TConfigNodeLocation configNodeLocation)Stop the specific ConfigNodeTSStatusstopPipe(String pipeName)Stop PipeTSStatusstopRepairData()Stop repair data taskTSStatusunsetSchemaTemplate(TUnsetSchemaTemplateReq req)Unset device template from given path
-
-
-
Method Detail
-
getClusterId
TGetClusterIdResp getClusterId() throws org.apache.thrift.TException
Get cluster ID- Throws:
org.apache.thrift.TException
-
registerDataNode
TDataNodeRegisterResp registerDataNode(TDataNodeRegisterReq req) throws org.apache.thrift.TException
Register a new DataNode into the cluster- Parameters:
req-- Returns:
- SUCCESS_STATUS if the new DataNode registered successfully REJECT_NODE_START if the configuration chek of the DataNode to be registered fails, and a detailed error message will be returned.
- Throws:
org.apache.thrift.TException
-
restartDataNode
TDataNodeRestartResp restartDataNode(TDataNodeRestartReq req) throws org.apache.thrift.TException
Restart an existed DataNode- Parameters:
req-- Returns:
- SUCCESS_STATUS if DataNode restart request is accepted REJECT_NODE_START if the configuration chek of the DataNode to be restarted fails, and a detailed error message will be returned.
- Throws:
org.apache.thrift.TException
-
getSystemConfiguration
TSystemConfigurationResp getSystemConfiguration() throws org.apache.thrift.TException
Get system configurations. i.e. configurations that is not associated with the DataNodeId- Throws:
org.apache.thrift.TException
-
removeDataNode
TDataNodeRemoveResp removeDataNode(TDataNodeRemoveReq req) throws org.apache.thrift.TException
Generate a set of DataNodeRemoveProcedure to remove some specific DataNodes from the cluster- Parameters:
req-- Returns:
- SUCCESS_STATUS if the DataNodeRemoveProcedure submitted successfully LACK_REPLICATION if the number of DataNodes will be too small to maintain RegionReplicas after remove these DataNodes DATANODE_NOT_EXIST if one of the DataNodes in the TDataNodeRemoveReq doesn't exist in the cluster NODE_DELETE_FAILED_ERROR if failed to submit the DataNodeRemoveProcedure
- Throws:
org.apache.thrift.TException
-
reportDataNodeShutdown
TSStatus reportDataNodeShutdown(TDataNodeLocation dataNodeLocation) throws org.apache.thrift.TException
Report that the specified DataNode will be shutdown. The ConfigNode-leader will mark it as Unknown.- Parameters:
dataNodeLocation-- Returns:
- SUCCESS_STATUS if reporting successfully
- Throws:
org.apache.thrift.TException
-
getDataNodeConfiguration
TDataNodeConfigurationResp getDataNodeConfiguration(int dataNodeId) throws org.apache.thrift.TException
Get one or more DataNodes' configuration- Parameters:
dataNodeId- , the specific DataNode's indexdataNodeId-- Returns:
- The specific DataNode's configuration if the DataNode exists, or all DataNodes' configuration if dataNodeId is -1
- Throws:
org.apache.thrift.TException
-
reportRegionMigrateResult
TSStatus reportRegionMigrateResult(TRegionMigrateResultReportReq req) throws org.apache.thrift.TException
Report region migration complete- Parameters:
req-- Throws:
org.apache.thrift.TException
-
setDatabase
TSStatus setDatabase(TDatabaseSchema databaseSchema) throws org.apache.thrift.TException
Set a new Databse, all fields in TDatabaseSchema can be customized while the undefined fields will automatically use default values- Parameters:
databaseSchema-- Returns:
- SUCCESS_STATUS if the new Database set successfully ILLEGAL_PATH if the new Database name is illegal DATABASE_CONFIG_ERROR if some of the DatabaseSchema is illeagal DATABASE_ALREADY_EXISTS if the Database already exist
- Throws:
org.apache.thrift.TException
-
alterDatabase
TSStatus alterDatabase(TDatabaseSchema databaseSchema) throws org.apache.thrift.TException
Alter a Database's schema, including TTL, ReplicationFactor, timePartitionInterval and RegionGroupNum- Parameters:
databaseSchema-- Returns:
- SUCCESS_STATUS if the specified DatabaseSchema is altered successfully ILLEGAL_PATH if the new Database name is illegal DATABASE_CONFIG_ERROR if some of the DatabaseSchema is illeagal DATABASE_NOT_EXIST if the specified Database doesn't exist
- Throws:
org.apache.thrift.TException
-
deleteDatabase
TSStatus deleteDatabase(TDeleteDatabaseReq req) throws org.apache.thrift.TException
Generate a DeleteDatabaseProcedure to delete a specified Database- Parameters:
req-- Returns:
- SUCCESS_STATUS if the DeleteDatabaseProcedure submitted successfully TIMESERIES_NOT_EXIST if the specific Database doesn't exist EXECUTE_STATEMENT_ERROR if failed to submit the DeleteDatabaseProcedure
- Throws:
org.apache.thrift.TException
-
deleteDatabases
TSStatus deleteDatabases(TDeleteDatabasesReq req) throws org.apache.thrift.TException
Generate a set of DeleteDatabaseProcedure to delete some specific Databases- Parameters:
req-- Returns:
- SUCCESS_STATUS if the DeleteDatabaseProcedure submitted successfully TIMESERIES_NOT_EXIST if the specific Database doesn't exist EXECUTE_STATEMENT_ERROR if failed to submit the DeleteDatabaseProcedure
- Throws:
org.apache.thrift.TException
-
setTTL
TSStatus setTTL(TSetTTLReq req) throws org.apache.thrift.TException
Update the specific Database's TTL- Parameters:
req-- Throws:
org.apache.thrift.TException
-
setSchemaReplicationFactor
TSStatus setSchemaReplicationFactor(TSetSchemaReplicationFactorReq req) throws org.apache.thrift.TException
Update the specific Database's SchemaReplicationFactor- Parameters:
req-- Throws:
org.apache.thrift.TException
-
setDataReplicationFactor
TSStatus setDataReplicationFactor(TSetDataReplicationFactorReq req) throws org.apache.thrift.TException
Update the specific Database's DataReplicationFactor- Parameters:
req-- Throws:
org.apache.thrift.TException
-
setTimePartitionInterval
TSStatus setTimePartitionInterval(TSetTimePartitionIntervalReq req) throws org.apache.thrift.TException
Update the specific Database's PartitionInterval- Parameters:
req-- Throws:
org.apache.thrift.TException
-
countMatchedDatabases
TCountDatabaseResp countMatchedDatabases(TGetDatabaseReq req) throws org.apache.thrift.TException
Count the matched Databases- Parameters:
req-- Throws:
org.apache.thrift.TException
-
getMatchedDatabaseSchemas
TDatabaseSchemaResp getMatchedDatabaseSchemas(TGetDatabaseReq req) throws org.apache.thrift.TException
Get the matched Databases' TDatabaseSchema- Parameters:
req-- Throws:
org.apache.thrift.TException
-
getSchemaPartitionTable
TSchemaPartitionTableResp getSchemaPartitionTable(TSchemaPartitionReq req) throws org.apache.thrift.TException
Get SchemaPartitionTable by specific PathPatternTree, the returned SchemaPartitionTable will not contain the unallocated SeriesPartitionSlots See https://apache-iotdb.feishu.cn/docs/doccnqe3PLPEKwsCX1xadXQ2JOg for detailed matching rules- Parameters:
req-- Throws:
org.apache.thrift.TException
-
getOrCreateSchemaPartitionTable
TSchemaPartitionTableResp getOrCreateSchemaPartitionTable(TSchemaPartitionReq req) throws org.apache.thrift.TException
Get or create SchemaPartitionTable by specific PathPatternTree, the returned SchemaPartitionTable always contains all the SeriesPartitionSlots since the unallocated SeriesPartitionSlots will be allocated by the way- Parameters:
req-- Returns:
- SUCCESS_STATUS if the SchemaPartitionTable got or created successfully NOT_ENOUGH_DATA_NODE if the number of cluster DataNodes is not enough for creating new SchemaRegions DATABASE_NOT_EXIST if some Databases don't exist
- Throws:
org.apache.thrift.TException
-
getSchemaNodeManagementPartition
TSchemaNodeManagementResp getSchemaNodeManagementPartition(TSchemaNodeManagementReq req) throws org.apache.thrift.TException
Get the partition info used for schema node query and get the node info in CluterSchemaInfo.- Parameters:
req-- Throws:
org.apache.thrift.TException
-
getDataPartitionTable
TDataPartitionTableResp getDataPartitionTable(TDataPartitionReq req) throws org.apache.thrift.TException
Get DataPartitionTable by specific PartitionSlotsMap, the returned DataPartitionTable will not contain the unallocated SeriesPartitionSlots and TimePartitionSlots- Parameters:
req-- Throws:
org.apache.thrift.TException
-
getOrCreateDataPartitionTable
TDataPartitionTableResp getOrCreateDataPartitionTable(TDataPartitionReq req) throws org.apache.thrift.TException
Get or create DataPartitionTable by specific PartitionSlotsMap, the returned SchemaPartitionTable always contains all the SeriesPartitionSlots and TimePartitionSlots since the unallocated SeriesPartitionSlots and TimePartitionSlots will be allocated by the way- Parameters:
req-- Returns:
- SUCCESS_STATUS if the DataPartitionTable got or created successfully NOT_ENOUGH_DATA_NODE if the number of cluster DataNodes is not enough for creating new DataRegions DATABASE_NOT_EXIST if some Databases don't exist
- Throws:
org.apache.thrift.TException
-
operatePermission
TSStatus operatePermission(TAuthorizerReq req) throws org.apache.thrift.TException
Execute permission write operations such as create user, create role, and grant permission. There is no need to update the cache information of the DataNode for creating users and roles- Parameters:
req-- Returns:
- SUCCESS_STATUS if the permission write operation is executed successfully INVALIDATE_PERMISSION_CACHE_ERROR if the update cache of the permission information in the datanode fails EXECUTE_PERMISSION_EXCEPTION_ERROR if the permission write operation fails, like the user doesn't exist INTERNAL_SERVER_ERROR if the permission type does not exist
- Throws:
org.apache.thrift.TException
-
queryPermission
TAuthorizerResp queryPermission(TAuthorizerReq req) throws org.apache.thrift.TException
Execute permission read operations such as list user- Parameters:
req-- Returns:
- SUCCESS_STATUS if the permission read operation is executed successfully ROLE_NOT_EXIST_ERROR if the role does not exist USER_NOT_EXIST_ERROR if the user does not exist INTERNAL_SERVER_ERROR if the permission type does not exist
- Throws:
org.apache.thrift.TException
-
login
TPermissionInfoResp login(TLoginReq req) throws org.apache.thrift.TException
Authenticate user login- Parameters:
req-- Returns:
- SUCCESS_STATUS if the user exists and the correct username and password are entered WRONG_LOGIN_PASSWORD_ERROR if the user enters the wrong username or password
- Throws:
org.apache.thrift.TException
-
checkUserPrivileges
TPermissionInfoResp checkUserPrivileges(TCheckUserPrivilegesReq req) throws org.apache.thrift.TException
Permission checking for user operations- Parameters:
req-- Returns:
- SUCCESS_STATUS if the user has the permission EXECUTE_PERMISSION_EXCEPTION_ERROR if the seriesPath or the privilege is illegal. NO_PERMISSION_ERROR if the user does not have this permission
- Throws:
org.apache.thrift.TException
-
fetchAuthizedPatternTree
TAuthizedPatternTreeResp fetchAuthizedPatternTree(TCheckUserPrivilegesReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
checkUserPrivilegeGrantOpt
TPermissionInfoResp checkUserPrivilegeGrantOpt(TCheckUserPrivilegesReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
checkRoleOfUser
TPermissionInfoResp checkRoleOfUser(TAuthorizerReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
registerConfigNode
TConfigNodeRegisterResp registerConfigNode(TConfigNodeRegisterReq req) throws org.apache.thrift.TException
The Non-Seed-ConfigNode submit a registration request to the ConfigNode-leader when first startup- Parameters:
req-- Returns:
- SUCCESS_STATUS if the AddConfigNodeProcedure submitted successfully. REJECT_NODE_START if the configuration chek of the ConfigNode to be registered fails, and a detailed error message will be returned.
- Throws:
org.apache.thrift.TException
-
addConsensusGroup
TSStatus addConsensusGroup(TAddConsensusGroupReq req) throws org.apache.thrift.TException
The ConfigNode-leader will guide the Non-Seed-ConfigNode to join the ConsensusGroup when first startup- Parameters:
req-- Throws:
org.apache.thrift.TException
-
notifyRegisterSuccess
TSStatus notifyRegisterSuccess() throws org.apache.thrift.TException
The ConfigNode-leader will notify the Non-Seed-ConfigNode that the registration success- Throws:
org.apache.thrift.TException
-
removeConfigNode
TSStatus removeConfigNode(TConfigNodeLocation configNodeLocation) throws org.apache.thrift.TException
Remove the specific ConfigNode from the cluster- Parameters:
configNodeLocation-- Returns:
- SUCCESS_STATUS if the RemoveConfigNodeProcedure submitted successfully REMOVE_CONFIGNODE_FAILED if the number of ConfigNode is less than 1 or the specific ConfigNode doesn't exist or the specific ConfigNode is leader
- Throws:
org.apache.thrift.TException
-
deleteConfigNodePeer
TSStatus deleteConfigNodePeer(TConfigNodeLocation configNodeLocation) throws org.apache.thrift.TException
Let the specific ConfigNode delete the peer- Parameters:
configNodeLocation-- Returns:
- SUCCESS_STATUS if delete peer successfully REMOVE_CONFIGNODE_FAILED if the specific ConfigNode doesn't exist in the current cluster or Ratis internal failure
- Throws:
org.apache.thrift.TException
-
reportConfigNodeShutdown
TSStatus reportConfigNodeShutdown(TConfigNodeLocation configNodeLocation) throws org.apache.thrift.TException
Report that the specified ConfigNode will be shutdown. The ConfigNode-leader will mark it as Unknown.- Parameters:
configNodeLocation-- Returns:
- SUCCESS_STATUS if reporting successfully
- Throws:
org.apache.thrift.TException
-
stopConfigNode
TSStatus stopConfigNode(TConfigNodeLocation configNodeLocation) throws org.apache.thrift.TException
Stop the specific ConfigNode- Parameters:
configNodeLocation-- Throws:
org.apache.thrift.TException
-
getConfigNodeHeartBeat
TConfigNodeHeartbeatResp getConfigNodeHeartBeat(TConfigNodeHeartbeatReq req) throws org.apache.thrift.TException
The ConfigNode-leader will ping other ConfigNodes periodically- Parameters:
req-- Throws:
org.apache.thrift.TException
-
createFunction
TSStatus createFunction(TCreateFunctionReq req) throws org.apache.thrift.TException
Create a function on all online ConfigNodes and DataNodes- Parameters:
req-- Returns:
- SUCCESS_STATUS if the function was created successfully EXECUTE_STATEMENT_ERROR if operations on any node failed
- Throws:
org.apache.thrift.TException
-
dropFunction
TSStatus dropFunction(TDropFunctionReq req) throws org.apache.thrift.TException
Remove a function on all online ConfigNodes and DataNodes- Parameters:
req-- Returns:
- SUCCESS_STATUS if the function was removed successfully EXECUTE_STATEMENT_ERROR if operations on any node failed
- Throws:
org.apache.thrift.TException
-
getUDFTable
TGetUDFTableResp getUDFTable() throws org.apache.thrift.TException
Return the UDF table- Throws:
org.apache.thrift.TException
-
getUDFJar
TGetJarInListResp getUDFJar(TGetJarInListReq req) throws org.apache.thrift.TException
Return the UDF jar list of the jar name list- Parameters:
req-- Throws:
org.apache.thrift.TException
-
createTrigger
TSStatus createTrigger(TCreateTriggerReq req) throws org.apache.thrift.TException
Create a statless trigger on all online DataNodes or Create a stateful trigger on a specific DataNode and sync Information of it to all ConfigNodes- Parameters:
req-- Returns:
- SUCCESS_STATUS if the trigger was created successfully EXECUTE_STATEMENT_ERROR if operations on any node failed
- Throws:
org.apache.thrift.TException
-
dropTrigger
TSStatus dropTrigger(TDropTriggerReq req) throws org.apache.thrift.TException
Remove a trigger on all online ConfigNodes and DataNodes- Parameters:
req-- Returns:
- SUCCESS_STATUS if the function was removed successfully EXECUTE_STATEMENT_ERROR if operations on any node failed
- Throws:
org.apache.thrift.TException
-
getLocationOfStatefulTrigger
TGetLocationForTriggerResp getLocationOfStatefulTrigger(String triggerName) throws org.apache.thrift.TException
Get TDataNodeLocation of a stateful trigger- Parameters:
triggerName-- Throws:
org.apache.thrift.TException
-
getTriggerTable
TGetTriggerTableResp getTriggerTable() throws org.apache.thrift.TException
Return the trigger table- Throws:
org.apache.thrift.TException
-
getStatefulTriggerTable
TGetTriggerTableResp getStatefulTriggerTable() throws org.apache.thrift.TException
Return the Stateful trigger table- Throws:
org.apache.thrift.TException
-
getTriggerJar
TGetJarInListResp getTriggerJar(TGetJarInListReq req) throws org.apache.thrift.TException
Return the trigger jar list of the trigger name list- Parameters:
req-- Throws:
org.apache.thrift.TException
-
createPipePlugin
TSStatus createPipePlugin(TCreatePipePluginReq req) throws org.apache.thrift.TException
Create a pipe plugin on the specified DataNode- Parameters:
req-- Returns:
- SUCCESS_STATUS if the pipe plugin was created successfully EXECUTE_STATEMENT_ERROR if operations on any node failed
- Throws:
org.apache.thrift.TException
-
dropPipePlugin
TSStatus dropPipePlugin(TDropPipePluginReq req) throws org.apache.thrift.TException
Remove a pipe plugin on the DataNodes- Parameters:
req-- Returns:
- SUCCESS_STATUS if the pipe plugin was removed successfully EXECUTE_STATEMENT_ERROR if operations on any node failed
- Throws:
org.apache.thrift.TException
-
getPipePluginTable
TGetPipePluginTableResp getPipePluginTable() throws org.apache.thrift.TException
Return the pipe plugin table- Throws:
org.apache.thrift.TException
-
getPipePluginJar
TGetJarInListResp getPipePluginJar(TGetJarInListReq req) throws org.apache.thrift.TException
Return the pipe plugin jar list of the plugin name list- Parameters:
req-- Throws:
org.apache.thrift.TException
-
merge
TSStatus merge() throws org.apache.thrift.TException
Execute Level Compaction and unsequence Compaction task on all DataNodes- Throws:
org.apache.thrift.TException
-
flush
TSStatus flush(TFlushReq req) throws org.apache.thrift.TException
Persist all the data points in the memory table of the database to the disk, and seal the data file on all DataNodes- Parameters:
req-- Throws:
org.apache.thrift.TException
-
clearCache
TSStatus clearCache() throws org.apache.thrift.TException
Clear the cache of chunk, chunk metadata and timeseries metadata to release the memory footprint on all DataNodes- Throws:
org.apache.thrift.TException
-
startRepairData
TSStatus startRepairData() throws org.apache.thrift.TException
Check and repair unsorted tsfile by compaction- Throws:
org.apache.thrift.TException
-
stopRepairData
TSStatus stopRepairData() throws org.apache.thrift.TException
Stop repair data task- Throws:
org.apache.thrift.TException
-
loadConfiguration
TSStatus loadConfiguration() throws org.apache.thrift.TException
Load configuration on all DataNodes- Throws:
org.apache.thrift.TException
-
setSystemStatus
TSStatus setSystemStatus(String status) throws org.apache.thrift.TException
Set system status on DataNodes- Parameters:
status-- Throws:
org.apache.thrift.TException
-
setDataNodeStatus
TSStatus setDataNodeStatus(TSetDataNodeStatusReq req) throws org.apache.thrift.TException
TestOnly. Set the target DataNode to the specified status- Parameters:
req-- Throws:
org.apache.thrift.TException
-
migrateRegion
TSStatus migrateRegion(TMigrateRegionReq req) throws org.apache.thrift.TException
Migrate a region replica from one dataNode to another- Parameters:
req-- Throws:
org.apache.thrift.TException
-
killQuery
TSStatus killQuery(String queryId, int dataNodeId) throws org.apache.thrift.TException
Kill query- Parameters:
queryId-dataNodeId-- Throws:
org.apache.thrift.TException
-
getRunningDataNodeLocations
TGetDataNodeLocationsResp getRunningDataNodeLocations() throws org.apache.thrift.TException
Get all DataNodeLocations of Running DataNodes- Throws:
org.apache.thrift.TException
-
showCluster
TShowClusterResp showCluster() throws org.apache.thrift.TException
Show cluster ConfigNodes' and DataNodes' information- Throws:
org.apache.thrift.TException
-
showVariables
TShowVariablesResp showVariables() throws org.apache.thrift.TException
Show variables who should be consist in the same cluster- Throws:
org.apache.thrift.TException
-
showDataNodes
TShowDataNodesResp showDataNodes() throws org.apache.thrift.TException
Show cluster DataNodes' information- Throws:
org.apache.thrift.TException
-
showConfigNodes
TShowConfigNodesResp showConfigNodes() throws org.apache.thrift.TException
Show cluster ConfigNodes' information- Throws:
org.apache.thrift.TException
-
showDatabase
TShowDatabaseResp showDatabase(TGetDatabaseReq req) throws org.apache.thrift.TException
Show cluster Databases' information- Parameters:
req-- Throws:
org.apache.thrift.TException
-
showRegion
TShowRegionResp showRegion(TShowRegionReq req) throws org.apache.thrift.TException
Show the matched cluster Regions' information See https://apache-iotdb.feishu.cn/docx/doxcnOzmIlaE2MX5tKjmYWuMSRg for detailed matching rules- Parameters:
req-- Throws:
org.apache.thrift.TException
-
getLatestRegionRouteMap
TRegionRouteMapResp getLatestRegionRouteMap() throws org.apache.thrift.TException
The ConfigNode-leader will generate and return a latest RegionRouteMap- Throws:
org.apache.thrift.TException
-
createSchemaTemplate
TSStatus createSchemaTemplate(TCreateSchemaTemplateReq req) throws org.apache.thrift.TException
Create device template- Parameters:
req-- Throws:
org.apache.thrift.TException
-
getAllTemplates
TGetAllTemplatesResp getAllTemplates() throws org.apache.thrift.TException
Get all device template info and template set info for DataNode registeration- Throws:
org.apache.thrift.TException
-
getTemplate
TGetTemplateResp getTemplate(String req) throws org.apache.thrift.TException
Get one device template info- Parameters:
req-- Throws:
org.apache.thrift.TException
-
setSchemaTemplate
TSStatus setSchemaTemplate(TSetSchemaTemplateReq req) throws org.apache.thrift.TException
Set given device template to given path- Parameters:
req-- Throws:
org.apache.thrift.TException
-
getPathsSetTemplate
TGetPathsSetTemplatesResp getPathsSetTemplate(TGetPathsSetTemplatesReq req) throws org.apache.thrift.TException
Get paths setting given device template- Parameters:
req-- Throws:
org.apache.thrift.TException
-
deactivateSchemaTemplate
TSStatus deactivateSchemaTemplate(TDeactivateSchemaTemplateReq req) throws org.apache.thrift.TException
Deactivate device template from paths matched by given pattern tree in cluster- Parameters:
req-- Throws:
org.apache.thrift.TException
-
unsetSchemaTemplate
TSStatus unsetSchemaTemplate(TUnsetSchemaTemplateReq req) throws org.apache.thrift.TException
Unset device template from given path- Parameters:
req-- Throws:
org.apache.thrift.TException
-
dropSchemaTemplate
TSStatus dropSchemaTemplate(String req) throws org.apache.thrift.TException
Drop device template- Parameters:
req-- Throws:
org.apache.thrift.TException
-
alterSchemaTemplate
TSStatus alterSchemaTemplate(TAlterSchemaTemplateReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
deleteTimeSeries
TSStatus deleteTimeSeries(TDeleteTimeSeriesReq req) throws org.apache.thrift.TException
Generate a set of DeleteTimeSeriesProcedure to delete some specific TimeSeries- Parameters:
req-- Returns:
- SUCCESS_STATUS if the DeleteTimeSeriesProcedure submitted and executed successfully TIMESERIES_NOT_EXIST if the specific TimeSeries doesn't exist EXECUTE_STATEMENT_ERROR if failed to submit or execute the DeleteTimeSeriesProcedure
- Throws:
org.apache.thrift.TException
-
deleteLogicalView
TSStatus deleteLogicalView(TDeleteLogicalViewReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
alterLogicalView
TSStatus alterLogicalView(TAlterLogicalViewReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
createPipe
TSStatus createPipe(TCreatePipeReq req) throws org.apache.thrift.TException
Create Pipe- Parameters:
req-- Throws:
org.apache.thrift.TException
-
startPipe
TSStatus startPipe(String pipeName) throws org.apache.thrift.TException
Start Pipe- Parameters:
pipeName-- Throws:
org.apache.thrift.TException
-
stopPipe
TSStatus stopPipe(String pipeName) throws org.apache.thrift.TException
Stop Pipe- Parameters:
pipeName-- Throws:
org.apache.thrift.TException
-
dropPipe
TSStatus dropPipe(String pipeName) throws org.apache.thrift.TException
Drop Pipe- Parameters:
pipeName-- Throws:
org.apache.thrift.TException
-
showPipe
TShowPipeResp showPipe(TShowPipeReq req) throws org.apache.thrift.TException
Show Pipe by name, if name is empty, show all Pipe- Parameters:
req-- Throws:
org.apache.thrift.TException
-
getAllPipeInfo
TGetAllPipeInfoResp getAllPipeInfo() throws org.apache.thrift.TException
Get all pipe information. It is used for DataNode registration and restart- Throws:
org.apache.thrift.TException
-
executeSyncCommand
TSStatus executeSyncCommand(ByteBuffer configPhysicalPlanBinary) throws org.apache.thrift.TException
Execute schema language from external pipes- Parameters:
configPhysicalPlanBinary-- Throws:
org.apache.thrift.TException
-
getRegionId
TGetRegionIdResp getRegionId(TGetRegionIdReq req) throws org.apache.thrift.TException
Get a particular DataPartition's corresponding Regions- Parameters:
req-- Throws:
org.apache.thrift.TException
-
getTimeSlotList
TGetTimeSlotListResp getTimeSlotList(TGetTimeSlotListReq req) throws org.apache.thrift.TException
Get a specific SeriesSlot's TimeSlots by start time and end time- Parameters:
req-- Throws:
org.apache.thrift.TException
-
countTimeSlotList
TCountTimeSlotListResp countTimeSlotList(TCountTimeSlotListReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
getSeriesSlotList
TGetSeriesSlotListResp getSeriesSlotList(TGetSeriesSlotListReq req) throws org.apache.thrift.TException
Get the given database's assigned SeriesSlots- Parameters:
req-- Throws:
org.apache.thrift.TException
-
createCQ
TSStatus createCQ(TCreateCQReq req) throws org.apache.thrift.TException
Create a CQ- Parameters:
req-- Returns:
- SUCCESS_STATUS if the cq was created successfully
- Throws:
org.apache.thrift.TException
-
dropCQ
TSStatus dropCQ(TDropCQReq req) throws org.apache.thrift.TException
Drop a CQ- Parameters:
req-- Returns:
- SUCCESS_STATUS if the CQ was removed successfully
- Throws:
org.apache.thrift.TException
-
showCQ
TShowCQResp showCQ() throws org.apache.thrift.TException
Return the cq table of config leader- Throws:
org.apache.thrift.TException
-
setSpaceQuota
TSStatus setSpaceQuota(TSetSpaceQuotaReq req) throws org.apache.thrift.TException
Set Space Quota- Parameters:
req-- Throws:
org.apache.thrift.TException
-
showSpaceQuota
TSpaceQuotaResp showSpaceQuota(List<String> databases) throws org.apache.thrift.TException
Show space quota- Parameters:
databases-- Throws:
org.apache.thrift.TException
-
getSpaceQuota
TSpaceQuotaResp getSpaceQuota() throws org.apache.thrift.TException
Get space quota information- Throws:
org.apache.thrift.TException
-
setThrottleQuota
TSStatus setThrottleQuota(TSetThrottleQuotaReq req) throws org.apache.thrift.TException
Set throttle quota- Parameters:
req-- Throws:
org.apache.thrift.TException
-
showThrottleQuota
TThrottleQuotaResp showThrottleQuota(TShowThrottleReq req) throws org.apache.thrift.TException
Show throttle quota- Parameters:
req-- Throws:
org.apache.thrift.TException
-
getThrottleQuota
TThrottleQuotaResp getThrottleQuota() throws org.apache.thrift.TException
Get throttle quota information- Throws:
org.apache.thrift.TException
-
-