Documentation ¶
Index ¶
- func AddDisk(client *Client, replicaServer string, diskStr string) error
- func AddDuplication(c *Client, tableName string, remoteCluster string, duplicateCheckpoint bool) error
- func BackupTable(client *Client, tableID int, providerType string, backupPath string) error
- func CancelBulkLoad(client *Client, tableName string, forced bool) error
- func CancelPartitionSplit(client *Client, tableName string, oldPartitionCount int) error
- func ClearAppEnv(c *Client, useTable string) error
- func ClearBulkLoad(client *Client, tableName string) error
- func CloseClient(client *Client) error
- func ClusterInfo(client *Client) error
- func ConfigCommand(client *Client, nodeType session.NodeType, nodeAddr string, name string, ...) error
- func CreateTable(c *Client, tableName string, partitionCount int, replicaCount int) error
- func DelAppEnv(c *Client, useTable string, key string, deletePrefix bool) error
- func DiskBeforeSplit(client *Client, tableName string) error
- func DiskMigrate(client *Client, replicaServer string, pidStr string, from string, to string) error
- func DropTable(c *Client, tableName string, reservePeriod int64) error
- func GetAppEnv(c *Client, useTable string, envName string) (string, error)
- func GetDiskInfo(client *Client, infoType DiskInfoType, replicaServer string, tableName string, ...) ([]interface{}, error)
- func GetMetaLevel(c *Client) error
- func ListAppEnvs(c *Client, useTable string) error
- func ListNodes(client *Client) error
- func ListTables(client *Client, showDropped bool) error
- func ModifyDuplication(c *Client, tableName string, dupid int, status admin.DuplicationStatus) error
- func PauseBulkLoad(client *Client, tableName string) error
- func PausePartitionSplit(client *Client, tableName string, parentPidx int) error
- func PrintAllCleanupFlag(client *Client, resp *admin.QueryBulkLoadResponse, detailed bool)
- func PrintAllDownloading(client *Client, resp *admin.QueryBulkLoadResponse, detailed bool)
- func PrintAllIngestion(client *Client, resp *admin.QueryBulkLoadResponse, detailed bool)
- func PrintAllOthers(client *Client, resp *admin.QueryBulkLoadResponse, detailed bool)
- func PrintAllSummary(client *Client, tableName string, tableStatus admin.BulkLoadStatus)
- func PrintSingleCleanupFlag(client *Client, resp *admin.QueryBulkLoadResponse, partitionIndex int, ...)
- func PrintSingleDownloading(client *Client, resp *admin.QueryBulkLoadResponse, partitionIndex int, ...)
- func PrintSingleIngesting(client *Client, resp *admin.QueryBulkLoadResponse, partitionIndex int, ...)
- func PrintSinglePausing(client *Client, resp *admin.QueryBulkLoadResponse, partitionIndex int, ...)
- func PrintSingleSummary(client *Client, tableName string, pidx int32, ...)
- func QueryAllNodesDiskInfo(client *Client, tableName string) (map[string]*radmin.QueryDiskInfoResponse, error)
- func QueryBackupStatus(client *Client, tableID int, backupID int64) error
- func QueryBulkLoad(client *Client, tableName string, partitionIndex int, detailed bool) error
- func QueryDiskInfo(client *Client, infoType DiskInfoType, replicaServer string, tableName string, ...) error
- func QueryDuplication(c *Client, tableName string) error
- func QueryManualCompaction(client *Client, tableName string) error
- func QuerySplitStatus(client *Client, tableName string) error
- func QueryTableVersion(client *Client, table string) error
- func RecallTable(client *Client, originTableID int, newTableName string) error
- func RemoteCommand(c *Client, nodeType session.NodeType, nodeAddr string, cmd string, ...) error
- func RestartBulkLoad(client *Client, tableName string) error
- func RestartPartitionSplit(client *Client, tableName string, parentPidx int) error
- func RestoreTable(client *Client, oldClusterName string, oldTableName string, oldTableID int, ...) error
- func SendQueryDiskInfoRequest(client *Client, replicaServer string, tableName string) (*radmin.QueryDiskInfoResponse, error)
- func ServerInfo(c *Client) error
- func SetAppEnv(c *Client, useTable string, key, value string) error
- func SetCompaction(client *Client, tableName string, params *CompactionParams) error
- func SetMetaLevel(c *Client, lvlStr string) error
- func ShowNodesStat(client *Client) error
- func ShowPartitionCount(client *Client, tableName string) error
- func ShowPartitionsStats(client *Client, tableName string) error
- func ShowTablePartitions(client *Client, tableName string) error
- func StartBulkLoad(client *Client, tableName string, clusterName string, providerType string, ...) error
- func StartManualCompaction(client *Client, tableName string, targetLevel int, maxRunningCount int, ...) error
- func StartPartitionSplit(client *Client, tableName string, newPartitionCount int) error
- func TableStat(c *Client) error
- func UseTable(client *Client, table string) error
- type Client
- type CompactionParams
- type DiskCapacityStruct
- type DiskInfoType
- type NodeDiskStats
- type PartitionStruct
- type ReplicaCapacityStruct
- type TableDataVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDuplication ¶
func AddDuplication(c *Client, tableName string, remoteCluster string, duplicateCheckpoint bool) error
AddDuplication command
func BackupTable ¶
func CancelPartitionSplit ¶
func ClearBulkLoad ¶
func CloseClient ¶
func ConfigCommand ¶
func ConfigCommand(client *Client, nodeType session.NodeType, nodeAddr string, name string, actionType string, value string) error
TODO(jiashuo1) not support update collector config
func CreateTable ¶
CreateTable command
func DiskBeforeSplit ¶
func DiskMigrate ¶
func GetDiskInfo ¶
func ModifyDuplication ¶
func ModifyDuplication(c *Client, tableName string, dupid int, status admin.DuplicationStatus) error
ModifyDuplication command
func PauseBulkLoad ¶
func PausePartitionSplit ¶
func PrintAllCleanupFlag ¶
func PrintAllCleanupFlag(client *Client, resp *admin.QueryBulkLoadResponse, detailed bool)
func PrintAllDownloading ¶
func PrintAllDownloading(client *Client, resp *admin.QueryBulkLoadResponse, detailed bool)
func PrintAllIngestion ¶
func PrintAllIngestion(client *Client, resp *admin.QueryBulkLoadResponse, detailed bool)
func PrintAllOthers ¶
func PrintAllOthers(client *Client, resp *admin.QueryBulkLoadResponse, detailed bool)
func PrintAllSummary ¶
func PrintAllSummary(client *Client, tableName string, tableStatus admin.BulkLoadStatus)
func PrintSingleCleanupFlag ¶
func PrintSingleCleanupFlag(client *Client, resp *admin.QueryBulkLoadResponse, partitionIndex int, detailed bool)
func PrintSingleDownloading ¶
func PrintSingleDownloading(client *Client, resp *admin.QueryBulkLoadResponse, partitionIndex int, detailed bool)
func PrintSingleIngesting ¶
func PrintSingleIngesting(client *Client, resp *admin.QueryBulkLoadResponse, partitionIndex int, detailed bool)
func PrintSinglePausing ¶
func PrintSinglePausing(client *Client, resp *admin.QueryBulkLoadResponse, partitionIndex int, detailed bool)
func PrintSingleSummary ¶
func PrintSingleSummary(client *Client, tableName string, pidx int32, partitionStatus admin.BulkLoadStatus)
func QueryAllNodesDiskInfo ¶
func QueryBulkLoad ¶
func QueryDiskInfo ¶
func QueryDiskInfo(client *Client, infoType DiskInfoType, replicaServer string, tableName string, diskTag string) error
QueryDiskInfo command
func QueryDuplication ¶
QueryDuplication command
func QueryManualCompaction ¶
func QuerySplitStatus ¶
func QueryTableVersion ¶
func RemoteCommand ¶
func RemoteCommand(c *Client, nodeType session.NodeType, nodeAddr string, cmd string, args []string) error
RemoteCommand command.
func RestartBulkLoad ¶
func RestartPartitionSplit ¶
func RestoreTable ¶
func SetCompaction ¶
func SetCompaction(client *Client, tableName string, params *CompactionParams) error
func ShowNodesStat ¶
func ShowPartitionCount ¶
func ShowPartitionsStats ¶
ShowPartitionsStats is partition-stat command
func ShowTablePartitions ¶
ShowTablePartitions is table-partitions command
func StartBulkLoad ¶
func StartManualCompaction ¶
func StartPartitionSplit ¶
Types ¶
type Client ¶
type Client struct { // Every command should use Client as the fmt.Fprint's writer. io.Writer // to access administration APIs Meta client.Meta // to obtain perf-counters of ReplicaServers Perf *aggregate.PerfClient Nodes *util.PegasusNodeManager }
Client represents as a manager of various SDKs that can access both Pegasus ReplicaServer and MetaServer.
type CompactionParams ¶
type DiskCapacityStruct ¶
type DiskInfoType ¶
type DiskInfoType string
const ( CapacitySize DiskInfoType = "CapacitySize" ReplicaCount DiskInfoType = "ReplicaCount" )
type NodeDiskStats ¶
type NodeDiskStats struct { NodeAddress string DiskTag string DiskCapacity int64 DiskAvailable int64 ReplicaCapacity []ReplicaCapacityStruct }
type PartitionStruct ¶
type PartitionStruct struct { Pidx int32 `json:"pidx"` PrimaryAddr string `json:"primary"` SecondariesAddr string `json:"secondaries"` }
func GetTablePartition ¶
func GetTablePartition(client *Client, tableName string, partitionIndex int32) (*PartitionStruct, error)
func GetTablePartitions ¶
func GetTablePartitions(client *Client, tableName string) (partitions []PartitionStruct, err error)
type ReplicaCapacityStruct ¶
type ReplicaCapacityStruct struct { Gpid string `json:"replica"` Status string `json:"status"` Size int64 `json:"size"` }
func ConvertReplicaCapacityStruct ¶
func ConvertReplicaCapacityStruct(replicaCapacityInfos []interface{}) ([]ReplicaCapacityStruct, error)
type TableDataVersion ¶
type TableDataVersion struct {
DataVersion string `json:"data_version"`
}
func QueryReplicaDataVersion ¶
func QueryReplicaDataVersion(client *Client, table string) (*TableDataVersion, error)
Source Files ¶
- backup_restore.go
- bulk_load.go
- client.go
- cluster_info.go
- compaction.go
- create_table.go
- disk_info.go
- disk_migrate.go
- drop_table.go
- duplication.go
- list_nodes.go
- list_tables.go
- manual_compaction.go
- meta_level.go
- nodes_stat.go
- partition_split.go
- partition_stat.go
- recall_table.go
- remote_command.go
- server_config.go
- server_info.go
- table_env.go
- table_partitions.go
- table_stat.go
- table_version.go
- use_table.go
Click to show internal directories.
Click to hide internal directories.