Shard.php
2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
/**
* The class used to present the shard detail, for every shard ,it contains id , status , begin Range, end range, createtime
*
* @author log service dev
*/
class Aliyun_Log_Models_Shard{
/**
* @var interger the shard id
*/
private $shardId;
/**
* @var string shard status (readwrite or readonly)
*/
private $status;
/**
* @var string shard inclusive begin key
*/
private $inclusiveBeginKey;
/**
* @var string shard exclusive begin key
*/
private $exclusiveEndKey;
/**
* @var integer shard create time
*/
private $createTime;
/**
* Aliyun_Log_Models_Shhard constructor
*
* @param integer $shardId
* the shard id
* @param string $status
* the shard status
* @param string $inclusiveBeginKey
* the shard inclusive begin key
* @param string $exclusiveEndKey
* the shard exclusive end key
* @para integer @createTime
* the shard create time
*/
public function __construct($shardId,$status,$inclusiveBeginKey,$exclusiveEndKey,$createTime) {
$this->shardId=$shardId;
$this->status = $status;
$this->inclusiveBeginKey = $inclusiveBeginKey;
$this->exclusiveEndKey = $exclusiveEndKey;
$this->createTime = $createTime;
}
/**
* Get the shardId
*
* @return integer the shard id
*/
public function getShardId(){
return $this -> shardId;
}
/**
* Get the shard status
*
* @return string the shard status
*/
public function getStatus(){
return $this -> status;
}
/**
* Get the shard inclusive begin key
*
* @return string inclusive begin key
*/
public function getInclusiveBeginKey(){
return $this -> inclusiveBeginKey;
}
/**
* Get the shard exclusive begin key
*
* @return string exclusive begin key
*/
public function getExclusiveBeginKey(){
return $this -> exclusiveBeginKey;
}
/**
* Get the shard create time
*
* @return integer createTime
*/
public function getCreateTime(){
return $this -> createTime;
}
}