@InterfaceAudience.Private public class RegionTransition extends Object
Immutable
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() |
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-2016 The Apache Software Foundation. All Rights Reserved.