public class NodeLocator extends Object implements Serializable
NodeLocator
s represent locators for Corfu nodes.
A detailed document regarding their contents and format can be found in docs/NODE_FORMAT.md
Modifier and Type | Class and Description |
---|---|
static class |
NodeLocator.Protocol
Represents protocols for Corfu nodes.
|
Constructor and Description |
---|
NodeLocator() |
Modifier and Type | Method and Description |
---|---|
static String |
getLegacyEndpoint(NodeLocator nodeLocator)
Creates and returns the endpoint address in the legacy format host:port.
|
static NodeLocator |
parseString(String toParse)
Parse a node locator string.
|
String |
toString() |
public static NodeLocator parseString(String toParse)
toParse
- The string to parse.NodeLocator
which represents the string.public static String getLegacyEndpoint(@NonNull NodeLocator nodeLocator)
nodeLocator
- Nodelocator to convert to legacy format.Copyright © 2019 CorfuDB. All rights reserved.