github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/go-hbase/proto/ClusterStatus.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: ClusterStatus.proto 3 // DO NOT EDIT! 4 5 package proto 6 7 import proto1 "github.com/insionng/yougam/libraries/golang/protobuf/proto" 8 import math "math" 9 10 // Reference imports to suppress errors if they are not otherwise used. 11 var _ = proto1.Marshal 12 var _ = math.Inf 13 14 type RegionState_State int32 15 16 const ( 17 RegionState_OFFLINE RegionState_State = 0 18 RegionState_PENDING_OPEN RegionState_State = 1 19 RegionState_OPENING RegionState_State = 2 20 RegionState_OPEN RegionState_State = 3 21 RegionState_PENDING_CLOSE RegionState_State = 4 22 RegionState_CLOSING RegionState_State = 5 23 RegionState_CLOSED RegionState_State = 6 24 RegionState_SPLITTING RegionState_State = 7 25 RegionState_SPLIT RegionState_State = 8 26 RegionState_FAILED_OPEN RegionState_State = 9 27 RegionState_FAILED_CLOSE RegionState_State = 10 28 RegionState_MERGING RegionState_State = 11 29 RegionState_MERGED RegionState_State = 12 30 RegionState_SPLITTING_NEW RegionState_State = 13 31 // region but hasn't be created yet, or master doesn't 32 // know it's already created 33 RegionState_MERGING_NEW RegionState_State = 14 34 ) 35 36 var RegionState_State_name = map[int32]string{ 37 0: "OFFLINE", 38 1: "PENDING_OPEN", 39 2: "OPENING", 40 3: "OPEN", 41 4: "PENDING_CLOSE", 42 5: "CLOSING", 43 6: "CLOSED", 44 7: "SPLITTING", 45 8: "SPLIT", 46 9: "FAILED_OPEN", 47 10: "FAILED_CLOSE", 48 11: "MERGING", 49 12: "MERGED", 50 13: "SPLITTING_NEW", 51 14: "MERGING_NEW", 52 } 53 var RegionState_State_value = map[string]int32{ 54 "OFFLINE": 0, 55 "PENDING_OPEN": 1, 56 "OPENING": 2, 57 "OPEN": 3, 58 "PENDING_CLOSE": 4, 59 "CLOSING": 5, 60 "CLOSED": 6, 61 "SPLITTING": 7, 62 "SPLIT": 8, 63 "FAILED_OPEN": 9, 64 "FAILED_CLOSE": 10, 65 "MERGING": 11, 66 "MERGED": 12, 67 "SPLITTING_NEW": 13, 68 "MERGING_NEW": 14, 69 } 70 71 func (x RegionState_State) Enum() *RegionState_State { 72 p := new(RegionState_State) 73 *p = x 74 return p 75 } 76 func (x RegionState_State) String() string { 77 return proto1.EnumName(RegionState_State_name, int32(x)) 78 } 79 func (x *RegionState_State) UnmarshalJSON(data []byte) error { 80 value, err := proto1.UnmarshalJSONEnum(RegionState_State_value, data, "RegionState_State") 81 if err != nil { 82 return err 83 } 84 *x = RegionState_State(value) 85 return nil 86 } 87 88 type RegionState struct { 89 RegionInfo *RegionInfo `protobuf:"bytes,1,req,name=region_info" json:"region_info,omitempty"` 90 State *RegionState_State `protobuf:"varint,2,req,name=state,enum=proto.RegionState_State" json:"state,omitempty"` 91 Stamp *uint64 `protobuf:"varint,3,opt,name=stamp" json:"stamp,omitempty"` 92 XXX_unrecognized []byte `json:"-"` 93 } 94 95 func (m *RegionState) Reset() { *m = RegionState{} } 96 func (m *RegionState) String() string { return proto1.CompactTextString(m) } 97 func (*RegionState) ProtoMessage() {} 98 99 func (m *RegionState) GetRegionInfo() *RegionInfo { 100 if m != nil { 101 return m.RegionInfo 102 } 103 return nil 104 } 105 106 func (m *RegionState) GetState() RegionState_State { 107 if m != nil && m.State != nil { 108 return *m.State 109 } 110 return RegionState_OFFLINE 111 } 112 113 func (m *RegionState) GetStamp() uint64 { 114 if m != nil && m.Stamp != nil { 115 return *m.Stamp 116 } 117 return 0 118 } 119 120 type RegionInTransition struct { 121 Spec *RegionSpecifier `protobuf:"bytes,1,req,name=spec" json:"spec,omitempty"` 122 RegionState *RegionState `protobuf:"bytes,2,req,name=region_state" json:"region_state,omitempty"` 123 XXX_unrecognized []byte `json:"-"` 124 } 125 126 func (m *RegionInTransition) Reset() { *m = RegionInTransition{} } 127 func (m *RegionInTransition) String() string { return proto1.CompactTextString(m) } 128 func (*RegionInTransition) ProtoMessage() {} 129 130 func (m *RegionInTransition) GetSpec() *RegionSpecifier { 131 if m != nil { 132 return m.Spec 133 } 134 return nil 135 } 136 137 func (m *RegionInTransition) GetRegionState() *RegionState { 138 if m != nil { 139 return m.RegionState 140 } 141 return nil 142 } 143 144 type RegionLoad struct { 145 // * the region specifier 146 RegionSpecifier *RegionSpecifier `protobuf:"bytes,1,req,name=region_specifier" json:"region_specifier,omitempty"` 147 // * the number of stores for the region 148 Stores *uint32 `protobuf:"varint,2,opt,name=stores" json:"stores,omitempty"` 149 // * the number of storefiles for the region 150 Storefiles *uint32 `protobuf:"varint,3,opt,name=storefiles" json:"storefiles,omitempty"` 151 // * the total size of the store files for the region, uncompressed, in MB 152 StoreUncompressedSize_MB *uint32 `protobuf:"varint,4,opt,name=store_uncompressed_size_MB" json:"store_uncompressed_size_MB,omitempty"` 153 // * the current total size of the store files for the region, in MB 154 StorefileSize_MB *uint32 `protobuf:"varint,5,opt,name=storefile_size_MB" json:"storefile_size_MB,omitempty"` 155 // * the current size of the memstore for the region, in MB 156 MemstoreSize_MB *uint32 `protobuf:"varint,6,opt,name=memstore_size_MB" json:"memstore_size_MB,omitempty"` 157 // * 158 // The current total size of root-level store file indexes for the region, 159 // in MB. The same as {@link #rootIndexSizeKB} but in MB. 160 StorefileIndexSize_MB *uint32 `protobuf:"varint,7,opt,name=storefile_index_size_MB" json:"storefile_index_size_MB,omitempty"` 161 // * the current total read requests made to region 162 ReadRequestsCount *uint64 `protobuf:"varint,8,opt,name=read_requests_count" json:"read_requests_count,omitempty"` 163 // * the current total write requests made to region 164 WriteRequestsCount *uint64 `protobuf:"varint,9,opt,name=write_requests_count" json:"write_requests_count,omitempty"` 165 // * the total compacting key values in currently running compaction 166 TotalCompacting_KVs *uint64 `protobuf:"varint,10,opt,name=total_compacting_KVs" json:"total_compacting_KVs,omitempty"` 167 // * the completed count of key values in currently running compaction 168 CurrentCompacted_KVs *uint64 `protobuf:"varint,11,opt,name=current_compacted_KVs" json:"current_compacted_KVs,omitempty"` 169 // * The current total size of root-level indexes for the region, in KB. 170 RootIndexSize_KB *uint32 `protobuf:"varint,12,opt,name=root_index_size_KB" json:"root_index_size_KB,omitempty"` 171 // * The total size of all index blocks, not just the root level, in KB. 172 TotalStaticIndexSize_KB *uint32 `protobuf:"varint,13,opt,name=total_static_index_size_KB" json:"total_static_index_size_KB,omitempty"` 173 // * 174 // The total size of all Bloom filter blocks, not just loaded into the 175 // block cache, in KB. 176 TotalStaticBloomSize_KB *uint32 `protobuf:"varint,14,opt,name=total_static_bloom_size_KB" json:"total_static_bloom_size_KB,omitempty"` 177 // * the most recent sequence Id from cache flush 178 CompleteSequenceId *uint64 `protobuf:"varint,15,opt,name=complete_sequence_id" json:"complete_sequence_id,omitempty"` 179 // * The current data locality for region in the regionserver 180 DataLocality *float32 `protobuf:"fixed32,16,opt,name=data_locality" json:"data_locality,omitempty"` 181 XXX_unrecognized []byte `json:"-"` 182 } 183 184 func (m *RegionLoad) Reset() { *m = RegionLoad{} } 185 func (m *RegionLoad) String() string { return proto1.CompactTextString(m) } 186 func (*RegionLoad) ProtoMessage() {} 187 188 func (m *RegionLoad) GetRegionSpecifier() *RegionSpecifier { 189 if m != nil { 190 return m.RegionSpecifier 191 } 192 return nil 193 } 194 195 func (m *RegionLoad) GetStores() uint32 { 196 if m != nil && m.Stores != nil { 197 return *m.Stores 198 } 199 return 0 200 } 201 202 func (m *RegionLoad) GetStorefiles() uint32 { 203 if m != nil && m.Storefiles != nil { 204 return *m.Storefiles 205 } 206 return 0 207 } 208 209 func (m *RegionLoad) GetStoreUncompressedSize_MB() uint32 { 210 if m != nil && m.StoreUncompressedSize_MB != nil { 211 return *m.StoreUncompressedSize_MB 212 } 213 return 0 214 } 215 216 func (m *RegionLoad) GetStorefileSize_MB() uint32 { 217 if m != nil && m.StorefileSize_MB != nil { 218 return *m.StorefileSize_MB 219 } 220 return 0 221 } 222 223 func (m *RegionLoad) GetMemstoreSize_MB() uint32 { 224 if m != nil && m.MemstoreSize_MB != nil { 225 return *m.MemstoreSize_MB 226 } 227 return 0 228 } 229 230 func (m *RegionLoad) GetStorefileIndexSize_MB() uint32 { 231 if m != nil && m.StorefileIndexSize_MB != nil { 232 return *m.StorefileIndexSize_MB 233 } 234 return 0 235 } 236 237 func (m *RegionLoad) GetReadRequestsCount() uint64 { 238 if m != nil && m.ReadRequestsCount != nil { 239 return *m.ReadRequestsCount 240 } 241 return 0 242 } 243 244 func (m *RegionLoad) GetWriteRequestsCount() uint64 { 245 if m != nil && m.WriteRequestsCount != nil { 246 return *m.WriteRequestsCount 247 } 248 return 0 249 } 250 251 func (m *RegionLoad) GetTotalCompacting_KVs() uint64 { 252 if m != nil && m.TotalCompacting_KVs != nil { 253 return *m.TotalCompacting_KVs 254 } 255 return 0 256 } 257 258 func (m *RegionLoad) GetCurrentCompacted_KVs() uint64 { 259 if m != nil && m.CurrentCompacted_KVs != nil { 260 return *m.CurrentCompacted_KVs 261 } 262 return 0 263 } 264 265 func (m *RegionLoad) GetRootIndexSize_KB() uint32 { 266 if m != nil && m.RootIndexSize_KB != nil { 267 return *m.RootIndexSize_KB 268 } 269 return 0 270 } 271 272 func (m *RegionLoad) GetTotalStaticIndexSize_KB() uint32 { 273 if m != nil && m.TotalStaticIndexSize_KB != nil { 274 return *m.TotalStaticIndexSize_KB 275 } 276 return 0 277 } 278 279 func (m *RegionLoad) GetTotalStaticBloomSize_KB() uint32 { 280 if m != nil && m.TotalStaticBloomSize_KB != nil { 281 return *m.TotalStaticBloomSize_KB 282 } 283 return 0 284 } 285 286 func (m *RegionLoad) GetCompleteSequenceId() uint64 { 287 if m != nil && m.CompleteSequenceId != nil { 288 return *m.CompleteSequenceId 289 } 290 return 0 291 } 292 293 func (m *RegionLoad) GetDataLocality() float32 { 294 if m != nil && m.DataLocality != nil { 295 return *m.DataLocality 296 } 297 return 0 298 } 299 300 type ReplicationLoadSink struct { 301 AgeOfLastAppliedOp *uint64 `protobuf:"varint,1,req,name=ageOfLastAppliedOp" json:"ageOfLastAppliedOp,omitempty"` 302 TimeStampsOfLastAppliedOp *uint64 `protobuf:"varint,2,req,name=timeStampsOfLastAppliedOp" json:"timeStampsOfLastAppliedOp,omitempty"` 303 XXX_unrecognized []byte `json:"-"` 304 } 305 306 func (m *ReplicationLoadSink) Reset() { *m = ReplicationLoadSink{} } 307 func (m *ReplicationLoadSink) String() string { return proto1.CompactTextString(m) } 308 func (*ReplicationLoadSink) ProtoMessage() {} 309 310 func (m *ReplicationLoadSink) GetAgeOfLastAppliedOp() uint64 { 311 if m != nil && m.AgeOfLastAppliedOp != nil { 312 return *m.AgeOfLastAppliedOp 313 } 314 return 0 315 } 316 317 func (m *ReplicationLoadSink) GetTimeStampsOfLastAppliedOp() uint64 { 318 if m != nil && m.TimeStampsOfLastAppliedOp != nil { 319 return *m.TimeStampsOfLastAppliedOp 320 } 321 return 0 322 } 323 324 type ReplicationLoadSource struct { 325 PeerID *string `protobuf:"bytes,1,req,name=peerID" json:"peerID,omitempty"` 326 AgeOfLastShippedOp *uint64 `protobuf:"varint,2,req,name=ageOfLastShippedOp" json:"ageOfLastShippedOp,omitempty"` 327 SizeOfLogQueue *uint32 `protobuf:"varint,3,req,name=sizeOfLogQueue" json:"sizeOfLogQueue,omitempty"` 328 TimeStampOfLastShippedOp *uint64 `protobuf:"varint,4,req,name=timeStampOfLastShippedOp" json:"timeStampOfLastShippedOp,omitempty"` 329 ReplicationLag *uint64 `protobuf:"varint,5,req,name=replicationLag" json:"replicationLag,omitempty"` 330 XXX_unrecognized []byte `json:"-"` 331 } 332 333 func (m *ReplicationLoadSource) Reset() { *m = ReplicationLoadSource{} } 334 func (m *ReplicationLoadSource) String() string { return proto1.CompactTextString(m) } 335 func (*ReplicationLoadSource) ProtoMessage() {} 336 337 func (m *ReplicationLoadSource) GetPeerID() string { 338 if m != nil && m.PeerID != nil { 339 return *m.PeerID 340 } 341 return "" 342 } 343 344 func (m *ReplicationLoadSource) GetAgeOfLastShippedOp() uint64 { 345 if m != nil && m.AgeOfLastShippedOp != nil { 346 return *m.AgeOfLastShippedOp 347 } 348 return 0 349 } 350 351 func (m *ReplicationLoadSource) GetSizeOfLogQueue() uint32 { 352 if m != nil && m.SizeOfLogQueue != nil { 353 return *m.SizeOfLogQueue 354 } 355 return 0 356 } 357 358 func (m *ReplicationLoadSource) GetTimeStampOfLastShippedOp() uint64 { 359 if m != nil && m.TimeStampOfLastShippedOp != nil { 360 return *m.TimeStampOfLastShippedOp 361 } 362 return 0 363 } 364 365 func (m *ReplicationLoadSource) GetReplicationLag() uint64 { 366 if m != nil && m.ReplicationLag != nil { 367 return *m.ReplicationLag 368 } 369 return 0 370 } 371 372 type ServerLoad struct { 373 // * Number of requests since last report. 374 NumberOfRequests *uint32 `protobuf:"varint,1,opt,name=number_of_requests" json:"number_of_requests,omitempty"` 375 // * Total Number of requests from the start of the region server. 376 TotalNumberOfRequests *uint32 `protobuf:"varint,2,opt,name=total_number_of_requests" json:"total_number_of_requests,omitempty"` 377 // * the amount of used heap, in MB. 378 UsedHeap_MB *uint32 `protobuf:"varint,3,opt,name=used_heap_MB" json:"used_heap_MB,omitempty"` 379 // * the maximum allowable size of the heap, in MB. 380 MaxHeap_MB *uint32 `protobuf:"varint,4,opt,name=max_heap_MB" json:"max_heap_MB,omitempty"` 381 // * Information on the load of individual regions. 382 RegionLoads []*RegionLoad `protobuf:"bytes,5,rep,name=region_loads" json:"region_loads,omitempty"` 383 // * 384 // Regionserver-level coprocessors, e.g., WALObserver implementations. 385 // Region-level coprocessors, on the other hand, are stored inside RegionLoad 386 // objects. 387 Coprocessors []*Coprocessor `protobuf:"bytes,6,rep,name=coprocessors" json:"coprocessors,omitempty"` 388 // * 389 // Time when incremental (non-total) counts began being calculated (e.g. number_of_requests) 390 // time is measured as the difference, measured in milliseconds, between the current time 391 // and midnight, January 1, 1970 UTC. 392 ReportStartTime *uint64 `protobuf:"varint,7,opt,name=report_start_time" json:"report_start_time,omitempty"` 393 // * 394 // Time when report was generated. 395 // time is measured as the difference, measured in milliseconds, between the current time 396 // and midnight, January 1, 1970 UTC. 397 ReportEndTime *uint64 `protobuf:"varint,8,opt,name=report_end_time" json:"report_end_time,omitempty"` 398 // * 399 // The port number that this region server is hosing an info server on. 400 InfoServerPort *uint32 `protobuf:"varint,9,opt,name=info_server_port" json:"info_server_port,omitempty"` 401 // * 402 // The replicationLoadSource for the replication Source status of this region server. 403 ReplLoadSource []*ReplicationLoadSource `protobuf:"bytes,10,rep,name=replLoadSource" json:"replLoadSource,omitempty"` 404 // * 405 // The replicationLoadSink for the replication Sink status of this region server. 406 ReplLoadSink *ReplicationLoadSink `protobuf:"bytes,11,opt,name=replLoadSink" json:"replLoadSink,omitempty"` 407 XXX_unrecognized []byte `json:"-"` 408 } 409 410 func (m *ServerLoad) Reset() { *m = ServerLoad{} } 411 func (m *ServerLoad) String() string { return proto1.CompactTextString(m) } 412 func (*ServerLoad) ProtoMessage() {} 413 414 func (m *ServerLoad) GetNumberOfRequests() uint32 { 415 if m != nil && m.NumberOfRequests != nil { 416 return *m.NumberOfRequests 417 } 418 return 0 419 } 420 421 func (m *ServerLoad) GetTotalNumberOfRequests() uint32 { 422 if m != nil && m.TotalNumberOfRequests != nil { 423 return *m.TotalNumberOfRequests 424 } 425 return 0 426 } 427 428 func (m *ServerLoad) GetUsedHeap_MB() uint32 { 429 if m != nil && m.UsedHeap_MB != nil { 430 return *m.UsedHeap_MB 431 } 432 return 0 433 } 434 435 func (m *ServerLoad) GetMaxHeap_MB() uint32 { 436 if m != nil && m.MaxHeap_MB != nil { 437 return *m.MaxHeap_MB 438 } 439 return 0 440 } 441 442 func (m *ServerLoad) GetRegionLoads() []*RegionLoad { 443 if m != nil { 444 return m.RegionLoads 445 } 446 return nil 447 } 448 449 func (m *ServerLoad) GetCoprocessors() []*Coprocessor { 450 if m != nil { 451 return m.Coprocessors 452 } 453 return nil 454 } 455 456 func (m *ServerLoad) GetReportStartTime() uint64 { 457 if m != nil && m.ReportStartTime != nil { 458 return *m.ReportStartTime 459 } 460 return 0 461 } 462 463 func (m *ServerLoad) GetReportEndTime() uint64 { 464 if m != nil && m.ReportEndTime != nil { 465 return *m.ReportEndTime 466 } 467 return 0 468 } 469 470 func (m *ServerLoad) GetInfoServerPort() uint32 { 471 if m != nil && m.InfoServerPort != nil { 472 return *m.InfoServerPort 473 } 474 return 0 475 } 476 477 func (m *ServerLoad) GetReplLoadSource() []*ReplicationLoadSource { 478 if m != nil { 479 return m.ReplLoadSource 480 } 481 return nil 482 } 483 484 func (m *ServerLoad) GetReplLoadSink() *ReplicationLoadSink { 485 if m != nil { 486 return m.ReplLoadSink 487 } 488 return nil 489 } 490 491 type LiveServerInfo struct { 492 Server *ServerName `protobuf:"bytes,1,req,name=server" json:"server,omitempty"` 493 ServerLoad *ServerLoad `protobuf:"bytes,2,req,name=server_load" json:"server_load,omitempty"` 494 XXX_unrecognized []byte `json:"-"` 495 } 496 497 func (m *LiveServerInfo) Reset() { *m = LiveServerInfo{} } 498 func (m *LiveServerInfo) String() string { return proto1.CompactTextString(m) } 499 func (*LiveServerInfo) ProtoMessage() {} 500 501 func (m *LiveServerInfo) GetServer() *ServerName { 502 if m != nil { 503 return m.Server 504 } 505 return nil 506 } 507 508 func (m *LiveServerInfo) GetServerLoad() *ServerLoad { 509 if m != nil { 510 return m.ServerLoad 511 } 512 return nil 513 } 514 515 type ClusterStatus struct { 516 HbaseVersion *HBaseVersionFileContent `protobuf:"bytes,1,opt,name=hbase_version" json:"hbase_version,omitempty"` 517 LiveServers []*LiveServerInfo `protobuf:"bytes,2,rep,name=live_servers" json:"live_servers,omitempty"` 518 DeadServers []*ServerName `protobuf:"bytes,3,rep,name=dead_servers" json:"dead_servers,omitempty"` 519 RegionsInTransition []*RegionInTransition `protobuf:"bytes,4,rep,name=regions_in_transition" json:"regions_in_transition,omitempty"` 520 ClusterId *ClusterId `protobuf:"bytes,5,opt,name=cluster_id" json:"cluster_id,omitempty"` 521 MasterCoprocessors []*Coprocessor `protobuf:"bytes,6,rep,name=master_coprocessors" json:"master_coprocessors,omitempty"` 522 Master *ServerName `protobuf:"bytes,7,opt,name=master" json:"master,omitempty"` 523 BackupMasters []*ServerName `protobuf:"bytes,8,rep,name=backup_masters" json:"backup_masters,omitempty"` 524 BalancerOn *bool `protobuf:"varint,9,opt,name=balancer_on" json:"balancer_on,omitempty"` 525 XXX_unrecognized []byte `json:"-"` 526 } 527 528 func (m *ClusterStatus) Reset() { *m = ClusterStatus{} } 529 func (m *ClusterStatus) String() string { return proto1.CompactTextString(m) } 530 func (*ClusterStatus) ProtoMessage() {} 531 532 func (m *ClusterStatus) GetHbaseVersion() *HBaseVersionFileContent { 533 if m != nil { 534 return m.HbaseVersion 535 } 536 return nil 537 } 538 539 func (m *ClusterStatus) GetLiveServers() []*LiveServerInfo { 540 if m != nil { 541 return m.LiveServers 542 } 543 return nil 544 } 545 546 func (m *ClusterStatus) GetDeadServers() []*ServerName { 547 if m != nil { 548 return m.DeadServers 549 } 550 return nil 551 } 552 553 func (m *ClusterStatus) GetRegionsInTransition() []*RegionInTransition { 554 if m != nil { 555 return m.RegionsInTransition 556 } 557 return nil 558 } 559 560 func (m *ClusterStatus) GetClusterId() *ClusterId { 561 if m != nil { 562 return m.ClusterId 563 } 564 return nil 565 } 566 567 func (m *ClusterStatus) GetMasterCoprocessors() []*Coprocessor { 568 if m != nil { 569 return m.MasterCoprocessors 570 } 571 return nil 572 } 573 574 func (m *ClusterStatus) GetMaster() *ServerName { 575 if m != nil { 576 return m.Master 577 } 578 return nil 579 } 580 581 func (m *ClusterStatus) GetBackupMasters() []*ServerName { 582 if m != nil { 583 return m.BackupMasters 584 } 585 return nil 586 } 587 588 func (m *ClusterStatus) GetBalancerOn() bool { 589 if m != nil && m.BalancerOn != nil { 590 return *m.BalancerOn 591 } 592 return false 593 } 594 595 func init() { 596 proto1.RegisterEnum("proto.RegionState_State", RegionState_State_name, RegionState_State_value) 597 }