@InterfaceAudience.Private public class RegionTransition extends Object
Immutable
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.RegionTransition |
rt |
Modifier | Constructor and Description |
---|---|
private |
RegionTransition()
Shutdown constructor
|
private |
RegionTransition(org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.RegionTransition rt) |
Modifier and Type | Method and Description |
---|---|
static RegionTransition |
createRegionTransition(EventType type,
byte[] regionName,
ServerName sn) |
static RegionTransition |
createRegionTransition(EventType type,
byte[] regionName,
ServerName sn,
byte[] payload) |
long |
getCreateTime() |
EventType |
getEventType() |
byte[] |
getPayload() |
byte[] |
getRegionName() |
ServerName |
getServerName() |
static RegionTransition |
parseFrom(byte[] data) |
byte[] |
toByteArray() |
String |
toString() |
private final org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.RegionTransition rt
private RegionTransition()
private RegionTransition(org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.RegionTransition rt)
public EventType getEventType()
public ServerName getServerName()
public long getCreateTime()
public byte[] getRegionName()
public byte[] getPayload()
public static RegionTransition createRegionTransition(EventType type, byte[] regionName, ServerName sn)
type
- regionName
- sn
- RegionTransition
public static RegionTransition createRegionTransition(EventType type, byte[] regionName, ServerName sn, byte[] payload)
type
- regionName
- sn
- payload
- May be nullRegionTransition
public static RegionTransition parseFrom(byte[] data) throws DeserializationException
data
- Serialized date to parse.data
DeserializationException
toByteArray()
public byte[] toByteArray()
parseFrom(byte[])
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.