Package org.apache.iotdb.mpp.rpc.thrift
Interface IDataNodeRPCService.Iface
-
- All Known Implementing Classes:
IDataNodeRPCService.Client
- Enclosing class:
- IDataNodeRPCService
public static interface IDataNodeRPCService.Iface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TSStatusactiveTriggerInstance(TActiveTriggerInstanceReq req)Config node will active a trigger instance on data node.TSStatusaddRegionPeer(TMaintainPeerReq req)Add a Region peer to the specified RegionGroupTSStatusalterView(TAlterViewReq req)TCancelRespcancelFragmentInstance(TCancelFragmentInstanceReq req)TCancelRespcancelPlanFragment(TCancelPlanFragmentReq req)TCancelRespcancelQuery(TCancelQueryReq req)TSStatuschangeRegionLeader(TRegionLeaderChangeReq req)Change the leader of specified RegionGroup to another DataNodeTCheckTimeSeriesExistenceRespcheckTimeSeriesExistence(TCheckTimeSeriesExistenceReq req)TSStatusclearCache()TSStatusconstructSchemaBlackList(TConstructSchemaBlackListReq req)Construct schema black list in target schemaRegion to block R/W on matched timeseriesTSStatusconstructSchemaBlackListWithTemplate(TConstructSchemaBlackListWithTemplateReq req)Construct schema black list in target schemaRegion to block R/W on matched timeseries represent by templateTSStatusconstructViewSchemaBlackList(TConstructViewSchemaBlackListReq req)TCountPathsUsingTemplateRespcountPathsUsingTemplate(TCountPathsUsingTemplateReq req)TSStatuscreateDataRegion(TCreateDataRegionReq req)Config node will create a data region on a list of data nodes.TSStatuscreateFunction(TCreateFunctionInstanceReq req)Config node will create a function on a list of data nodes.TSStatuscreateNewRegionPeer(TCreatePeerReq req)Create a new Region peer in the given DataNode for the specified RegionGroupTSStatuscreatePipePlugin(TCreatePipePluginInstanceReq req)Config node will create a pipe plugin on a list of data nodes.TSStatuscreateSchemaRegion(TCreateSchemaRegionReq req)Config node will create a schema region on a list of data nodes.TSStatuscreateTriggerInstance(TCreateTriggerInstanceReq req)Config node will create a trigger instance on data node.TSStatusdeactivateTemplate(TDeactivateTemplateReq req)Deactivate template on device matched by input path pattern and remove according template schema black list in target schemRegionTSStatusdeleteDataForDeleteSchema(TDeleteDataForDeleteSchemaReq req)Config node inform this dataNode to execute a distribution data deleion queryengine taskTSStatusdeleteOldRegionPeer(TMaintainPeerReq req)Delete a Region peer in the given ConsensusGroup and all of its data on the specified DataNodeTSStatusdeleteRegion(TConsensusGroupId consensusGroupId)Config node will delete a data/schema region of a certain storageGroup.TSStatusdeleteTimeSeries(TDeleteTimeSeriesReq req)Delete matched timeseries and remove according schema black list in target schemRegionTSStatusdeleteViewSchema(TDeleteViewSchemaReq req)TSStatusdisableDataNode(TDisableDataNodeReq req)Config node will disable the Data node, the Data node will not accept read/write request when disabledTSStatusdropFunction(TDropFunctionInstanceReq req)Config node will drop a function on a list of data nodes.TSStatusdropPipePlugin(TDropPipePluginInstanceReq req)Config node will drop a pipe plugin on a list of data nodes.TSStatusdropTriggerInstance(TDropTriggerInstanceReq req)Config node will drop a trigger on all online config nodes and data nodes.TSStatusexecuteCQ(TExecuteCQ req)Execute CQ on DataNodeTFragmentInstanceInfoRespfetchFragmentInstanceInfo(TFetchFragmentInstanceInfoReq req)TSchemaFetchResponsefetchSchema(TSchemaFetchRequest req)TFetchSchemaBlackListRespfetchSchemaBlackList(TFetchSchemaBlackListReq req)Config node will fetch the schema info in black list.TFireTriggerRespfireTrigger(TFireTriggerReq req)Fire a stateful trigger on current data node.TSStatusflush(TFlushReq req)TDataNodeHeartbeatRespgetDataNodeHeartBeat(TDataNodeHeartbeatReq req)ConfigNode will ask DataNode for heartbeat in every few seconds.TSStatusinactiveTriggerInstance(TInactiveTriggerInstanceReq req)Config node will inactive a trigger instance on data node.TSStatusinvalidateMatchedSchemaCache(TInvalidateMatchedSchemaCacheReq req)Config node will invalidate Schema Info cache, which matched by given pathPatternTree.TSStatusinvalidatePartitionCache(TInvalidateCacheReq req)Config node will invalidate Partition Info cache.TSStatusinvalidatePermissionCache(TInvalidatePermissionCacheReq req)Config node will invalidate permission Info cache.TSStatusinvalidateSchemaCache(TInvalidateCacheReq req)Config node will invalidate Schema Info cache.TSStatuskillQueryInstance(String queryId)TSStatusloadConfiguration()TSStatusmerge()TPipeHeartbeatResppipeHeartbeat(TPipeHeartbeatReq req)ConfigNode will ask DataNode for pipe meta in every few secondsTPushPipeMetaResppushPipeMeta(TPushPipeMetaReq req)Send pipeMetas to DataNodes, for synchronizationTPushPipeMetaResppushSinglePipeMeta(TPushSinglePipeMetaReq req)Send one pipeMeta to DataNodes, for create/start/stop/drop one pipeTSStatusremoveRegionPeer(TMaintainPeerReq req)Remove a Region peer from the specified RegionGroupTSStatusrollbackSchemaBlackList(TRollbackSchemaBlackListReq req)Remove the schema black list to recover R/W on matched timeseriesTSStatusrollbackSchemaBlackListWithTemplate(TRollbackSchemaBlackListWithTemplateReq req)Remove the schema black list to recover R/W on matched timeseries represent by templateTSStatusrollbackViewSchemaBlackList(TRollbackViewSchemaBlackListReq req)TSendBatchPlanNodeRespsendBatchPlanNode(TSendBatchPlanNodeReq req)dispatch PlanNodes in batches to remote node for write request in order to save resourceTSendFragmentInstanceRespsendFragmentInstance(TSendFragmentInstanceReq req)dispatch FragmentInstance to remote node for query requestTLoadRespsendLoadCommand(TLoadCommandReq req)TLoadRespsendTsFilePieceNode(TTsFilePieceReq req)TSStatussetSpaceQuota(TSetSpaceQuotaReq req)Set space quotaTSStatussetSystemStatus(String status)TSStatussetThrottleQuota(TSetThrottleQuotaReq req)Set throttle quotaTSStatussettle(TSettleReq req)TSStatussetTTL(TSetTTLReq req)Config node will Set the TTL for the database on a list of data nodes.TSStatusstopDataNode()Config node will stop the Data node.TSStatusupdateConfigNodeGroup(TUpdateConfigNodeGroupReq req)configNode will notify all DataNodes when the capacity of the ConfigNodeGroup is expanded or reducedTSStatusupdateRegionCache(TRegionRouteReq req)ConfigNode will ask DataNode to update region cacheTSStatusupdateTemplate(TUpdateTemplateReq req)Update template cache when template info or template set info is updatedTSStatusupdateTriggerLocation(TUpdateTriggerLocationReq req)Config node will renew DataNodeLocation of a stateful trigger.
-
-
-
Method Detail
-
sendFragmentInstance
TSendFragmentInstanceResp sendFragmentInstance(TSendFragmentInstanceReq req) throws org.apache.thrift.TException
dispatch FragmentInstance to remote node for query request- Parameters:
req-- Throws:
org.apache.thrift.TException
-
sendBatchPlanNode
TSendBatchPlanNodeResp sendBatchPlanNode(TSendBatchPlanNodeReq req) throws org.apache.thrift.TException
dispatch PlanNodes in batches to remote node for write request in order to save resource- Parameters:
req-- Throws:
org.apache.thrift.TException
-
fetchFragmentInstanceInfo
TFragmentInstanceInfoResp fetchFragmentInstanceInfo(TFetchFragmentInstanceInfoReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
cancelQuery
TCancelResp cancelQuery(TCancelQueryReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
cancelPlanFragment
TCancelResp cancelPlanFragment(TCancelPlanFragmentReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
cancelFragmentInstance
TCancelResp cancelFragmentInstance(TCancelFragmentInstanceReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
fetchSchema
TSchemaFetchResponse fetchSchema(TSchemaFetchRequest req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
sendTsFilePieceNode
TLoadResp sendTsFilePieceNode(TTsFilePieceReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
sendLoadCommand
TLoadResp sendLoadCommand(TLoadCommandReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
createSchemaRegion
TSStatus createSchemaRegion(TCreateSchemaRegionReq req) throws org.apache.thrift.TException
Config node will create a schema region on a list of data nodes.- Parameters:
data- nodes of the schema region, and schema region id generated by config nodereq-- Throws:
org.apache.thrift.TException
-
createDataRegion
TSStatus createDataRegion(TCreateDataRegionReq req) throws org.apache.thrift.TException
Config node will create a data region on a list of data nodes.- Parameters:
data- nodes of the data region, and data region id generated by config nodereq-- Throws:
org.apache.thrift.TException
-
invalidatePartitionCache
TSStatus invalidatePartitionCache(TInvalidateCacheReq req) throws org.apache.thrift.TException
Config node will invalidate Partition Info cache.- Parameters:
bool- :isStorageGroup, string:fullPathreq-- Throws:
org.apache.thrift.TException
-
invalidateSchemaCache
TSStatus invalidateSchemaCache(TInvalidateCacheReq req) throws org.apache.thrift.TException
Config node will invalidate Schema Info cache.- Parameters:
bool- :isStorageGroup, string:fullPathreq-- Throws:
org.apache.thrift.TException
-
deleteRegion
TSStatus deleteRegion(TConsensusGroupId consensusGroupId) throws org.apache.thrift.TException
Config node will delete a data/schema region of a certain storageGroup.- Parameters:
data- nodes of the data region, and data region id generated by config nodeconsensusGroupId-- Throws:
org.apache.thrift.TException
-
changeRegionLeader
TSStatus changeRegionLeader(TRegionLeaderChangeReq req) throws org.apache.thrift.TException
Change the leader of specified RegionGroup to another DataNode- Parameters:
The- specified RegionGroup and the new leader DataNodereq-- Throws:
org.apache.thrift.TException
-
createNewRegionPeer
TSStatus createNewRegionPeer(TCreatePeerReq req) throws org.apache.thrift.TException
Create a new Region peer in the given DataNode for the specified RegionGroup- Parameters:
TCreatePeerReq- which contains RegionId and its colleagues' locationsreq-- Throws:
org.apache.thrift.TException
-
addRegionPeer
TSStatus addRegionPeer(TMaintainPeerReq req) throws org.apache.thrift.TException
Add a Region peer to the specified RegionGroup- Parameters:
TMaintainPeerReq- which contains RegionId and the DataNodeLocation that selected to perform the add peer processreq-- Throws:
org.apache.thrift.TException
-
removeRegionPeer
TSStatus removeRegionPeer(TMaintainPeerReq req) throws org.apache.thrift.TException
Remove a Region peer from the specified RegionGroup- Parameters:
TMaintainPeerReq- which contains RegionId and the DataNodeLocation that selected to perform the remove peer processreq-- Throws:
org.apache.thrift.TException
-
deleteOldRegionPeer
TSStatus deleteOldRegionPeer(TMaintainPeerReq req) throws org.apache.thrift.TException
Delete a Region peer in the given ConsensusGroup and all of its data on the specified DataNode- Parameters:
TMaintainPeerReq- which contains RegionId and the DataNodeLocation where the specified Region peer locatedreq-- Throws:
org.apache.thrift.TException
-
disableDataNode
TSStatus disableDataNode(TDisableDataNodeReq req) throws org.apache.thrift.TException
Config node will disable the Data node, the Data node will not accept read/write request when disabled- Parameters:
data- node locationreq-- Throws:
org.apache.thrift.TException
-
stopDataNode
TSStatus stopDataNode() throws org.apache.thrift.TException
Config node will stop the Data node.- Throws:
org.apache.thrift.TException
-
getDataNodeHeartBeat
TDataNodeHeartbeatResp getDataNodeHeartBeat(TDataNodeHeartbeatReq req) throws org.apache.thrift.TException
ConfigNode will ask DataNode for heartbeat in every few seconds.- Parameters:
ConfigNode- will send the latest config_node_list and load balancing policies in TDataNodeHeartbeatReqreq-- Throws:
org.apache.thrift.TException
-
updateRegionCache
TSStatus updateRegionCache(TRegionRouteReq req) throws org.apache.thrift.TException
ConfigNode will ask DataNode to update region cache- Parameters:
ConfigNode- will send timestamp and new regionRouteMap in TRegionRouteReqreq-- Throws:
org.apache.thrift.TException
-
createFunction
TSStatus createFunction(TCreateFunctionInstanceReq req) throws org.apache.thrift.TException
Config node will create a function on a list of data nodes.- Parameters:
function- name, function class name, and executable urisreq-- Throws:
org.apache.thrift.TException
-
dropFunction
TSStatus dropFunction(TDropFunctionInstanceReq req) throws org.apache.thrift.TException
Config node will drop a function on a list of data nodes.- Parameters:
function- namereq-- Throws:
org.apache.thrift.TException
-
createTriggerInstance
TSStatus createTriggerInstance(TCreateTriggerInstanceReq req) throws org.apache.thrift.TException
Config node will create a trigger instance on data node.- Parameters:
TriggerInformation- , jar file.req-- Throws:
org.apache.thrift.TException
-
activeTriggerInstance
TSStatus activeTriggerInstance(TActiveTriggerInstanceReq req) throws org.apache.thrift.TException
Config node will active a trigger instance on data node.- Parameters:
trigger- name.req-- Throws:
org.apache.thrift.TException
-
inactiveTriggerInstance
TSStatus inactiveTriggerInstance(TInactiveTriggerInstanceReq req) throws org.apache.thrift.TException
Config node will inactive a trigger instance on data node.- Parameters:
trigger- name.req-- Throws:
org.apache.thrift.TException
-
dropTriggerInstance
TSStatus dropTriggerInstance(TDropTriggerInstanceReq req) throws org.apache.thrift.TException
Config node will drop a trigger on all online config nodes and data nodes.- Parameters:
trigger- name, whether need to delete jarreq-- Throws:
org.apache.thrift.TException
-
updateTriggerLocation
TSStatus updateTriggerLocation(TUpdateTriggerLocationReq req) throws org.apache.thrift.TException
Config node will renew DataNodeLocation of a stateful trigger.- Parameters:
trigger- name, new DataNodeLocationreq-- Throws:
org.apache.thrift.TException
-
fireTrigger
TFireTriggerResp fireTrigger(TFireTriggerReq req) throws org.apache.thrift.TException
Fire a stateful trigger on current data node.- Parameters:
trigger- name, tablet and eventreq-- Throws:
org.apache.thrift.TException
-
invalidatePermissionCache
TSStatus invalidatePermissionCache(TInvalidatePermissionCacheReq req) throws org.apache.thrift.TException
Config node will invalidate permission Info cache.- Parameters:
string- :username, list:roleList req-- Throws:
org.apache.thrift.TException
-
createPipePlugin
TSStatus createPipePlugin(TCreatePipePluginInstanceReq req) throws org.apache.thrift.TException
Config node will create a pipe plugin on a list of data nodes.- Parameters:
function- name, function class name, and executable urisreq-- Throws:
org.apache.thrift.TException
-
dropPipePlugin
TSStatus dropPipePlugin(TDropPipePluginInstanceReq req) throws org.apache.thrift.TException
Config node will drop a pipe plugin on a list of data nodes.- Parameters:
function- namereq-- Throws:
org.apache.thrift.TException
-
merge
TSStatus merge() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
flush
TSStatus flush(TFlushReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
settle
TSStatus settle(TSettleReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
clearCache
TSStatus clearCache() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
loadConfiguration
TSStatus loadConfiguration() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
setSystemStatus
TSStatus setSystemStatus(String status) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
killQueryInstance
TSStatus killQueryInstance(String queryId) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
setTTL
TSStatus setTTL(TSetTTLReq req) throws org.apache.thrift.TException
Config node will Set the TTL for the database on a list of data nodes.- Parameters:
req-- Throws:
org.apache.thrift.TException
-
updateConfigNodeGroup
TSStatus updateConfigNodeGroup(TUpdateConfigNodeGroupReq req) throws org.apache.thrift.TException
configNode will notify all DataNodes when the capacity of the ConfigNodeGroup is expanded or reduced- Parameters:
list-configNodeLocations req-- Throws:
org.apache.thrift.TException
-
updateTemplate
TSStatus updateTemplate(TUpdateTemplateReq req) throws org.apache.thrift.TException
Update template cache when template info or template set info is updated- Parameters:
req-- Throws:
org.apache.thrift.TException
-
constructSchemaBlackList
TSStatus constructSchemaBlackList(TConstructSchemaBlackListReq req) throws org.apache.thrift.TException
Construct schema black list in target schemaRegion to block R/W on matched timeseries- Parameters:
req-- Throws:
org.apache.thrift.TException
-
rollbackSchemaBlackList
TSStatus rollbackSchemaBlackList(TRollbackSchemaBlackListReq req) throws org.apache.thrift.TException
Remove the schema black list to recover R/W on matched timeseries- Parameters:
req-- Throws:
org.apache.thrift.TException
-
invalidateMatchedSchemaCache
TSStatus invalidateMatchedSchemaCache(TInvalidateMatchedSchemaCacheReq req) throws org.apache.thrift.TException
Config node will invalidate Schema Info cache, which matched by given pathPatternTree.- Parameters:
binary- : pathPatternTreereq-- Throws:
org.apache.thrift.TException
-
fetchSchemaBlackList
TFetchSchemaBlackListResp fetchSchemaBlackList(TFetchSchemaBlackListReq req) throws org.apache.thrift.TException
Config node will fetch the schema info in black list.- Parameters:
binary- : pathPatternTreereq-- Throws:
org.apache.thrift.TException
-
deleteDataForDeleteSchema
TSStatus deleteDataForDeleteSchema(TDeleteDataForDeleteSchemaReq req) throws org.apache.thrift.TException
Config node inform this dataNode to execute a distribution data deleion queryengine task- Parameters:
req-- Throws:
org.apache.thrift.TException
-
deleteTimeSeries
TSStatus deleteTimeSeries(TDeleteTimeSeriesReq req) throws org.apache.thrift.TException
Delete matched timeseries and remove according schema black list in target schemRegion- Parameters:
req-- Throws:
org.apache.thrift.TException
-
constructSchemaBlackListWithTemplate
TSStatus constructSchemaBlackListWithTemplate(TConstructSchemaBlackListWithTemplateReq req) throws org.apache.thrift.TException
Construct schema black list in target schemaRegion to block R/W on matched timeseries represent by template- Parameters:
req-- Throws:
org.apache.thrift.TException
-
rollbackSchemaBlackListWithTemplate
TSStatus rollbackSchemaBlackListWithTemplate(TRollbackSchemaBlackListWithTemplateReq req) throws org.apache.thrift.TException
Remove the schema black list to recover R/W on matched timeseries represent by template- Parameters:
req-- Throws:
org.apache.thrift.TException
-
deactivateTemplate
TSStatus deactivateTemplate(TDeactivateTemplateReq req) throws org.apache.thrift.TException
Deactivate template on device matched by input path pattern and remove according template schema black list in target schemRegion- Parameters:
req-- Throws:
org.apache.thrift.TException
-
countPathsUsingTemplate
TCountPathsUsingTemplateResp countPathsUsingTemplate(TCountPathsUsingTemplateReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
checkTimeSeriesExistence
TCheckTimeSeriesExistenceResp checkTimeSeriesExistence(TCheckTimeSeriesExistenceReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
constructViewSchemaBlackList
TSStatus constructViewSchemaBlackList(TConstructViewSchemaBlackListReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
rollbackViewSchemaBlackList
TSStatus rollbackViewSchemaBlackList(TRollbackViewSchemaBlackListReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
deleteViewSchema
TSStatus deleteViewSchema(TDeleteViewSchemaReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
alterView
TSStatus alterView(TAlterViewReq req) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
pushPipeMeta
TPushPipeMetaResp pushPipeMeta(TPushPipeMetaReq req) throws org.apache.thrift.TException
Send pipeMetas to DataNodes, for synchronization- Parameters:
req-- Throws:
org.apache.thrift.TException
-
pushSinglePipeMeta
TPushPipeMetaResp pushSinglePipeMeta(TPushSinglePipeMetaReq req) throws org.apache.thrift.TException
Send one pipeMeta to DataNodes, for create/start/stop/drop one pipe- Parameters:
req-- Throws:
org.apache.thrift.TException
-
pipeHeartbeat
TPipeHeartbeatResp pipeHeartbeat(TPipeHeartbeatReq req) throws org.apache.thrift.TException
ConfigNode will ask DataNode for pipe meta in every few seconds- Parameters:
req-- Throws:
org.apache.thrift.TException
-
executeCQ
TSStatus executeCQ(TExecuteCQ req) throws org.apache.thrift.TException
Execute CQ on DataNode- Parameters:
req-- 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
-
setThrottleQuota
TSStatus setThrottleQuota(TSetThrottleQuotaReq req) throws org.apache.thrift.TException
Set throttle quota- Parameters:
req-- Throws:
org.apache.thrift.TException
-
-