@InterfaceAudience.Private public class SplitLogTask extends Object
Immutable
Modifier and Type | Class and Description |
---|---|
static class |
SplitLogTask.Done |
static class |
SplitLogTask.Err |
static class |
SplitLogTask.Owned |
static class |
SplitLogTask.Resigned |
static class |
SplitLogTask.Unassigned |
Modifier and Type | Field and Description |
---|---|
private ServerName |
originServer |
private org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.SplitLogTask.State |
state |
Constructor and Description |
---|
SplitLogTask(ServerName originServer,
org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.SplitLogTask.State state) |
SplitLogTask(org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.SplitLogTask slt) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ServerName |
getServerName() |
int |
hashCode() |
boolean |
isDone() |
boolean |
isDone(ServerName sn) |
boolean |
isErr() |
boolean |
isErr(ServerName sn) |
boolean |
isOwned() |
boolean |
isOwned(ServerName sn) |
boolean |
isResigned() |
boolean |
isResigned(ServerName sn) |
boolean |
isUnassigned() |
boolean |
isUnassigned(ServerName sn) |
static SplitLogTask |
parseFrom(byte[] data) |
byte[] |
toByteArray() |
String |
toString() |
private final ServerName originServer
private final org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.SplitLogTask.State state
SplitLogTask(org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.SplitLogTask slt)
SplitLogTask(ServerName originServer, org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.SplitLogTask.State state)
public ServerName getServerName()
public boolean isUnassigned(ServerName sn)
public boolean isUnassigned()
public boolean isOwned(ServerName sn)
public boolean isOwned()
public boolean isResigned(ServerName sn)
public boolean isResigned()
public boolean isDone(ServerName sn)
public boolean isDone()
public boolean isErr(ServerName sn)
public boolean isErr()
public static SplitLogTask parseFrom(byte[] data) throws DeserializationException
data
- Serialized date to parse.data
DeserializationException
toByteArray()
public byte[] toByteArray()
parseFrom(byte[])
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.