public class KetaIdentity extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CURRENT_VERSION |
| Constructor and Description |
|---|
KetaIdentity(String scheme,
String host,
Integer port,
Boolean leaderEligibility) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static KetaIdentity |
fromJson(ByteBuffer json) |
static KetaIdentity |
fromJson(String json) |
static int |
getCurrentVersion() |
String |
getHost() |
boolean |
getLeaderEligibility() |
Integer |
getPort() |
String |
getScheme() |
String |
getUrl() |
Integer |
getVersion() |
int |
hashCode() |
boolean |
isSecure() |
void |
setHost(String host) |
void |
setLeaderEligibility(Boolean eligibility) |
void |
setPort(Integer port) |
void |
setScheme(String scheme) |
void |
setVersion(Integer version) |
String |
toJson() |
ByteBuffer |
toJsonBytes() |
String |
toString() |
public static final int CURRENT_VERSION
public static KetaIdentity fromJson(String json) throws IOException
IOExceptionpublic static KetaIdentity fromJson(ByteBuffer json)
public Integer getVersion()
public void setVersion(Integer version)
public String getScheme()
public void setScheme(String scheme)
public String getHost()
public void setHost(String host)
public Integer getPort()
public void setPort(Integer port)
public boolean getLeaderEligibility()
public void setLeaderEligibility(Boolean eligibility)
public static int getCurrentVersion()
public String toJson() throws IOException
IOExceptionpublic ByteBuffer toJsonBytes()
public String getUrl()
public boolean isSecure()
Copyright © 2021. All rights reserved.