public class ServerIdRange extends Object implements Serializable
MySqlSourceOptions.SERVER_ID,
Serialized Form| Constructor and Description |
|---|
ServerIdRange(int startServerId,
int endServerId) |
| Modifier and Type | Method and Description |
|---|---|
static ServerIdRange |
from(String range)
Returns a
ServerIdRange from a server id range string which likes '5400-5408' or a
single server id likes '5400'. |
int |
getEndServerId() |
int |
getNumberOfServerIds() |
int |
getServerId(int subTaskId) |
int |
getStartServerId() |
String |
toString() |
public int getStartServerId()
public int getEndServerId()
public int getServerId(int subTaskId)
public int getNumberOfServerIds()
@Nullable public static ServerIdRange from(@Nullable String range)
ServerIdRange from a server id range string which likes '5400-5408' or a
single server id likes '5400'.Copyright © 2022 The Apache Software Foundation. All rights reserved.