Interface IManager
- All Known Implementing Classes:
ConfigManager
public interface IManager
A subset of services provided by
ConfigManager. For use internally only, passed to
Managers, services.-
Method Summary
Modifier and TypeMethodDescriptionvoidalterDatabase(DatabaseSchemaPlan databaseSchemaPlan) Alter Database.alterPipe(TAlterPipeReq req) Alter Pipe.checkUserPrivileges(String username, List<PartialPath> paths, int permission) Check User Privileges.Clear cache on all DataNodes.countMatchedDatabases(CountDatabasePlan countDatabasePlan) Count StorageGroups.Count timeSlot(timePartition)。used for Show cluster slots information in docs/zh/UserGuide/Cluster/Cluster-Maintenance.md.createCQ(TCreateCQReq req) Create a model.createPeerForConsensusGroup(List<TConfigNodeLocation> configNodeLocations) Create peer in new node to build consensus group.createPipe(TCreatePipeReq req) Create Pipe.Create pipe plugin.Create schemaengine template.createTopic(TCreateTopicReq topic) Create Topic.Create trigger.Deactivate schemaengine template.deleteDatabases(TDeleteDatabasesReq tDeleteReq) Delete StorageGroups.Delete timeseries.dropCQ(TDropCQReq req) dropFunction(String udfName) dropModel(TDropModelReq req) Drop a model.dropPipe(TDropPipeReq req) Drop Pipe.Drop pipe plugin.dropSchemaTemplate(String templateName) Drop schemaengine template.dropTopic(TDropTopicReq req) Drop Topic.Drop trigger.Flush on all DataNodes.flushOnSpecificDN(TFlushReq req, Map<Integer, TDataNodeLocation> dataNodeLocationMap) Flush on specific Datanode.getAINodeConfiguration(GetAINodeConfigurationPlan getAINodeConfigurationPlan) Get AINode info.Get all pipe information.Show schemaengine templates.Get all TopicInfos.GetClusterQuotaManager.GetClusterSchemaManager.GetConsensusManager.GetCQManager.getDataNodeConfiguration(GetDataNodeConfigurationPlan getDataNodeConfigurationPlan) Get DataNode info.getDataPartition(GetDataPartitionPlan getDataPartitionPlan) Get DataPartition.Get the latest RegionRouteMap.GetLoadManager.getLocationOfStatefulTrigger(String triggerName) Get DataNodeLocation of stateful trigger.getMatchedDatabaseSchemas(GetDatabasePlan getOrCountStorageGroupPlan) Get StorageGroupSchemas.Update the model stateGetModelManager.GetNodeManager.getNodePathsPartition(PartialPath partialPath, PathPatternTree scope, Integer level) Create SchemaNodeManagementPartition for child paths node management.getOrCreateDataPartition(GetOrCreateDataPartitionPlan getOrCreateDataPartitionPlan) Get or create DataPartition.getOrCreateSchemaPartition(PathPatternTree patternTree) Get or create SchemaPartition.GetPartitionManager.show paths set schemaengine template xx.GetPermissionManager.GetPipeManager.Get pipe plugin jar.Show pipe plugins.GetProcedureManager.Get RegionId.Get RetryFailedTasksThread.getSchemaPartition(PathPatternTree patternTree) Get SchemaPartition.Get seriesSlot。used for Show cluster slots information in docs/zh/UserGuide/Cluster/Cluster-Maintenance.md.DataNode refresh stateful trigger cache.Get SubscriptionManager.Get system configurations that is not associated with the DataNodeId.getTemplate(String req) Show nodes in schemaengine template.Get timeSlot(timePartition)。used for Show cluster slots information in docs/zh/UserGuide/Cluster/Cluster-Maintenance.md.Get Trigger jar.GetTriggerManager.Show trigger & DataNode start.Get TTLManager.GetUDFManager.handleClientExit(String clientId) Execute the config req received from pipe.Execute the config req received from pipe.Load configuration on all DataNodes.login.merge()Merge on all DataNodes.operatePermission(AuthorPlan authorPlan) Operate Permission.pushHeartbeat(int dataNodeId, TPipeHeartbeatResp resp) queryPermission(AuthorReadPlan authorPlan) Query Permission.Register AINodeRegister ConfigNode when it is first startup.Register DataNode.removeAINode(RemoveAINodePlan removeAINodePlan) Remove AINode.removeConfigNode(RemoveConfigNodePlan removeConfigNodePlan) Remove ConfigNode.removeDataNode(RemoveDataNodePlan removeDataNodePlan) Remove DataNode.voidreportConfigNodeShutdown(TConfigNodeLocation configNodeLocation) Report that the specified ConfigNode will be shutdown.reportDataNodeShutdown(TDataNodeLocation dataNodeLocation) Report that the specified DataNode will be shutdown.Restart AINode.Restart DataNode.Set Configuration.setDatabase(DatabaseSchemaPlan databaseSchemaPlan) Set Database.TestOnly.setDataReplicationFactor(SetDataReplicationFactorPlan configPhysicalPlan) setSchemaReplicationFactor(SetSchemaReplicationFactorPlan configPhysicalPlan) Set schemaengine template xx to xx-path.Set space quota.setSystemStatus(String status) Set system status on all DataNodes.setTimePartitionInterval(SetTimePartitionIntervalPlan configPhysicalPlan) setTTL(SetTTLPlan configRequest) Show AINodes.Get Cluster Nodes' information.Show ConfigNodes.showConfiguration(int nodeId) Show content of configuration file on specified nodeshowCQ()Show StorageGroup.Show DataNodes.showModel(TShowModelReq req) Return the model table.showPipe(TShowPipeReq req) Get Pipe by name.showRegion(GetRegionInfoListPlan getRegionInfoListPlan) Show (data/schemaengine) regions.showTopic(TShowTopicReq req) Show Topic.showTTL(ShowTTLPlan showTTLPlan) Get variables.Start Pipe.Check and repair unsorted tsfile by compaction.Stop Pipe.Stop repair data tasktransfer(List<TDataNodeLocation> newUnknownDataList) Unset schemaengine template.
-
Method Details
-
getClusterManager
ClusterManager getClusterManager() -
getNodeManager
NodeManager getNodeManager()GetNodeManager.- Returns:
NodeManagerinstance
-
getConsensusManager
ConsensusManager getConsensusManager()GetConsensusManager.- Returns:
ConsensusManagerinstance
-
getClusterSchemaManager
ClusterSchemaManager getClusterSchemaManager()GetClusterSchemaManager.- Returns:
ClusterSchemaManagerinstance
-
getPartitionManager
PartitionManager getPartitionManager()GetPartitionManager.- Returns:
PartitionManagerinstance
-
getPermissionManager
PermissionManager getPermissionManager()GetPermissionManager.- Returns:
PermissionManagerinstance
-
getLoadManager
LoadManager getLoadManager()GetLoadManager.- Returns:
LoadManagerinstance
-
getUDFManager
UDFManager getUDFManager()GetUDFManager.- Returns:
UDFManagerinstance
-
getTriggerManager
TriggerManager getTriggerManager()GetTriggerManager.- Returns:
TriggerManagerinstance
-
getProcedureManager
ProcedureManager getProcedureManager()GetProcedureManager.- Returns:
ProcedureManagerinstance
-
getCQManager
CQManager getCQManager()GetCQManager.- Returns:
CQManagerinstance
-
getModelManager
ModelManager getModelManager()GetModelManager.- Returns:
ModelManagerinstance
-
getPipeManager
PipeManager getPipeManager()GetPipeManager.- Returns:
PipeManagerinstance
-
getTTLManager
TTLManager getTTLManager()Get TTLManager.- Returns:
- TTLManager instance
-
getClusterQuotaManager
ClusterQuotaManager getClusterQuotaManager()GetClusterQuotaManager.- Returns:
ClusterQuotaManagerinstance
-
getSubscriptionManager
SubscriptionManager getSubscriptionManager()Get SubscriptionManager.- Returns:
- SubscriptionManager instance
-
getRetryFailedTasksThread
RetryFailedTasksThread getRetryFailedTasksThread()Get RetryFailedTasksThread. GetRetryFailedTasksThread.- Returns:
RetryFailedTasksThreadinstance
-
getSystemConfiguration
DataSet getSystemConfiguration()Get system configurations that is not associated with the DataNodeId.- Returns:
- SystemConfigurationResp
-
registerDataNode
Register DataNode.- Returns:
- DataNodeConfigurationDataSet
-
restartDataNode
Restart DataNode.- Parameters:
req- TDataNodeRestartReq- Returns:
TSStatusCode.SUCCESS_STATUSif allow DataNode to restart,TSStatusCode.REJECT_NODE_STARTotherwise
-
removeDataNode
Remove DataNode.- Parameters:
removeDataNodePlan- RemoveDataNodePlan- Returns:
- DataNodeToStatusResp
-
registerAINode
Register AINode- Parameters:
req- TAINodeRegisterReq- Returns:
- AINodeConfigurationDataSet
-
restartAINode
Restart AINode.- Parameters:
req- TAINodeRestartReq- Returns:
- SUCCESS_STATUS if allow AINode to restart, REJECT_START otherwise
-
removeAINode
Remove AINode.- Parameters:
removeAINodePlan- RemoveAINodePlan- Returns:
- AINodeToStatusResp
-
reportDataNodeShutdown
Report that the specified DataNode will be shutdown.The ConfigNode-leader will mark it as
NodeStatus.Unknown- Returns:
TSStatusCode.SUCCESS_STATUSif reporting successfully
-
getDataNodeConfiguration
Get DataNode info.- Returns:
- DataNodesConfigurationDataSet
-
getAINodeConfiguration
Get AINode info.- Parameters:
getAINodeConfigurationPlan- which contains specific AINode id or -1 to get all AINodes' configuration.- Returns:
- AINodeConfigurationDataSet
-
showCluster
TShowClusterResp showCluster()Get Cluster Nodes' information.- Returns:
- TShowClusterResp
-
showVariables
TShowVariablesResp showVariables()Get variables.- Returns:
- TShowVariablesResp
-
setTTL
-
showTTL
-
setSchemaReplicationFactor
-
setDataReplicationFactor
-
setTimePartitionInterval
-
countMatchedDatabases
Count StorageGroups.- Returns:
- The number of matched StorageGroups
-
getMatchedDatabaseSchemas
Get StorageGroupSchemas.- Returns:
- StorageGroupSchemaDataSet
-
setDatabase
Set Database.- Returns:
- TSStatus
-
alterDatabase
Alter Database.- Returns:
- TSStatus
-
deleteDatabases
Delete StorageGroups.- Parameters:
tDeleteReq- TDeleteDatabaseReq- Returns:
- status
-
getSchemaPartition
Get SchemaPartition.- Returns:
- TSchemaPartitionResp
-
getOrCreateSchemaPartition
Get or create SchemaPartition.- Returns:
- TSchemaPartitionResp
-
getNodePathsPartition
TSchemaNodeManagementResp getNodePathsPartition(PartialPath partialPath, PathPatternTree scope, Integer level) Create SchemaNodeManagementPartition for child paths node management.- Returns:
- TSchemaNodeManagementResp
-
getDataPartition
Get DataPartition.- Returns:
- TDataPartitionResp
-
getOrCreateDataPartition
TDataPartitionTableResp getOrCreateDataPartition(GetOrCreateDataPartitionPlan getOrCreateDataPartitionPlan) Get or create DataPartition.- Returns:
- TDataPartitionResp
-
operatePermission
Operate Permission.- Returns:
- status
-
queryPermission
Query Permission.- Returns:
- PermissionInfoDataSet
-
login
login. -
checkUserPrivileges
Check User Privileges. -
registerConfigNode
Register ConfigNode when it is first startup.- Returns:
- TConfigNodeRegisterResp
-
createPeerForConsensusGroup
Create peer in new node to build consensus group.- Returns:
- status
-
removeConfigNode
Remove ConfigNode.- Returns:
- status
-
reportConfigNodeShutdown
Report that the specified ConfigNode will be shutdown. The ConfigNode-leader will mark it as Unknown.- Returns:
TSStatusCode.SUCCESS_STATUSif reporting successfully
-
createFunction
-
dropFunction
-
getUDFTable
TGetUDFTableResp getUDFTable() -
getUDFJar
-
createTrigger
Create trigger. -
dropTrigger
Drop trigger. -
getTriggerTable
TGetTriggerTableResp getTriggerTable()Show trigger & DataNode start. -
getStatefulTriggerTable
TGetTriggerTableResp getStatefulTriggerTable()DataNode refresh stateful trigger cache. -
getLocationOfStatefulTrigger
Get DataNodeLocation of stateful trigger. -
getTriggerJar
Get Trigger jar. -
createPipePlugin
Create pipe plugin. -
dropPipePlugin
Drop pipe plugin. -
getPipePluginTable
TGetPipePluginTableResp getPipePluginTable()Show pipe plugins. -
getPipePluginJar
Get pipe plugin jar. -
merge
TSStatus merge()Merge on all DataNodes. -
flush
Flush on all DataNodes. -
flushOnSpecificDN
Flush on specific Datanode. -
clearCache
TSStatus clearCache()Clear cache on all DataNodes. -
setConfiguration
Set Configuration. -
startRepairData
TSStatus startRepairData()Check and repair unsorted tsfile by compaction. -
stopRepairData
TSStatus stopRepairData()Stop repair data task -
submitLoadConfigurationTask
TSStatus submitLoadConfigurationTask() -
loadConfiguration
TSStatus loadConfiguration()Load configuration on all DataNodes. -
showConfiguration
Show content of configuration file on specified node -
setSystemStatus
Set system status on all DataNodes. -
setDataNodeStatus
TestOnly. Set the target DataNode to the specified status -
killQuery
-
getRunningDataNodeLocations
TGetDataNodeLocationsResp getRunningDataNodeLocations() -
getLatestRegionRouteMap
TRegionRouteMapResp getLatestRegionRouteMap()Get the latest RegionRouteMap.- Returns:
- TRegionRouteMapResp
-
addMetrics
void addMetrics() -
removeMetrics
void removeMetrics() -
showRegion
Show (data/schemaengine) regions. -
showAINodes
TShowAINodesResp showAINodes()Show AINodes. -
showDataNodes
TShowDataNodesResp showDataNodes()Show DataNodes. -
showConfigNodes
TShowConfigNodesResp showConfigNodes()Show ConfigNodes. -
showDatabase
Show StorageGroup.- Parameters:
req- TShowDatabaseReq- Returns:
- TShowStorageGroupResp
-
createSchemaTemplate
Create schemaengine template.- Parameters:
req- TCreateSchemaTemplateReq- Returns:
- TSStatus
-
getAllTemplates
TGetAllTemplatesResp getAllTemplates()Show schemaengine templates.- Returns:
- TGetAllTemplatesResp
-
getTemplate
Show nodes in schemaengine template.- Parameters:
req- String- Returns:
- TGetTemplateResp
-
setSchemaTemplate
Set schemaengine template xx to xx-path.- Parameters:
req- TSetSchemaTemplateReq- Returns:
- TSStatus
-
getPathsSetTemplate
show paths set schemaengine template xx.- Parameters:
req- req- Returns:
- TGetPathsSetTemplatesResp
-
deactivateSchemaTemplate
Deactivate schemaengine template. -
unsetSchemaTemplate
Unset schemaengine template. -
dropSchemaTemplate
Drop schemaengine template. -
alterSchemaTemplate
-
deleteTimeSeries
Delete timeseries. -
deleteLogicalView
-
alterLogicalView
-
createPipe
Create Pipe.- Parameters:
req- Info about Pipe- Returns:
TSStatusCode.SUCCESS_STATUSif created the pipe successfully,TSStatusCode.PIPE_ERRORif encountered failure.
-
alterPipe
Alter Pipe.- Parameters:
req- Info about Pipe- Returns:
- TSStatus
-
startPipe
Start Pipe.- Parameters:
pipeName- name of Pipe- Returns:
TSStatusCode.SUCCESS_STATUSif started the pipe successfully,TSStatusCode.PIPE_ERRORif encountered failure.
-
stopPipe
Stop Pipe.- Parameters:
pipeName- name of Pipe- Returns:
TSStatusCode.SUCCESS_STATUSif stopped the pipe successfully,TSStatusCode.PIPE_ERRORif encountered failure.
-
dropPipe
Drop Pipe.- Parameters:
req- Info about Pipe- Returns:
TSStatusCode.SUCCESS_STATUSif dropped the pipe successfully,TSStatusCode.PIPE_ERRORif encountered failure.
-
showPipe
Get Pipe by name. If pipeName is empty, get all Pipe.- Parameters:
req- specify the pipeName- Returns:
- TShowPipeResp contains the TShowPipeInfo
-
getAllPipeInfo
TGetAllPipeInfoResp getAllPipeInfo()Get all pipe information. It is used for DataNode registration and restart.- Returns:
- All pipe information.
-
handleTransferConfigPlan
Execute the config req received from pipe.- Returns:
- The result of the command execution.
-
handleClientExit
Execute the config req received from pipe.- Returns:
- The result of handling.
-
createTopic
Create Topic. -
dropTopic
Drop Topic. -
showTopic
Show Topic. -
getAllTopicInfo
TGetAllTopicInfoResp getAllTopicInfo()Get all TopicInfos. -
createConsumer
-
closeConsumer
-
createSubscription
-
dropSubscription
-
dropSubscriptionById
-
showSubscription
-
getAllSubscriptionInfo
TGetAllSubscriptionInfoResp getAllSubscriptionInfo() -
getRegionId
Get RegionId. used for Show cluster slots information in docs/zh/UserGuide/Cluster/Cluster-Maintenance.md.- Returns:
- TGetRegionIdResp.
-
getTimeSlotList
Get timeSlot(timePartition)。used for Show cluster slots information in docs/zh/UserGuide/Cluster/Cluster-Maintenance.md.- Returns:
- TGetTimeSlotListResp.
-
countTimeSlotList
Count timeSlot(timePartition)。used for Show cluster slots information in docs/zh/UserGuide/Cluster/Cluster-Maintenance.md.- Returns:
- TCountTimeSlotListResp.
-
getSeriesSlotList
Get seriesSlot。used for Show cluster slots information in docs/zh/UserGuide/Cluster/Cluster-Maintenance.md.- Returns:
- TGetSeriesSlotListResp.
-
migrateRegion
-
reconstructRegion
-
extendRegion
-
removeRegion
-
createCQ
-
dropCQ
-
showCQ
TShowCQResp showCQ() -
checkConfigNodeGlobalConfig
-
transfer
-
createModel
Create a model. -
dropModel
Drop a model. -
showModel
Return the model table. -
getModelInfo
Update the model state -
setSpaceQuota
Set space quota. -
pushHeartbeat
-