Package io.deephaven.envoysupport.xds
Class WorkerStreamProvider.WorkerInfo
java.lang.Object
io.deephaven.envoysupport.xds.WorkerStreamProvider.WorkerInfo
- Enclosing interface:
- WorkerStreamProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe worker host.final longA random number used to salt the worker's prefix.final intThe worker port.The worker kind. -
Constructor Summary
ConstructorsConstructorDescriptionWorkerInfo(@NotNull String host, int port, long nonce, @NotNull WorkerStreamProvider.WorkerKind workerKind) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<WorkerStreamProvider.WorkerInfo>fromJsonArrayString(@NotNull String workerInfoJson) static StringtoJsonArrayString(@NotNull List<WorkerStreamProvider.WorkerInfo> workerInfo)
-
Field Details
-
host
The worker host. -
port
public final int portThe worker port. -
nonce
public final long nonceA random number used to salt the worker's prefix. This must be stable for the lifetime of the worker -
workerKind
The worker kind.
-
-
Constructor Details
-
WorkerInfo
public WorkerInfo(@NotNull @NotNull String host, int port, long nonce, @NotNull @NotNull WorkerStreamProvider.WorkerKind workerKind)
-
-
Method Details
-
toJsonArrayString
public static String toJsonArrayString(@NotNull @NotNull List<WorkerStreamProvider.WorkerInfo> workerInfo) throws io.deephaven.shadow.jackson.com.fasterxml.jackson.core.JsonProcessingException - Throws:
io.deephaven.shadow.jackson.com.fasterxml.jackson.core.JsonProcessingException
-
fromJsonArrayString
public static List<WorkerStreamProvider.WorkerInfo> fromJsonArrayString(@NotNull @NotNull String workerInfoJson) throws IOException - Throws:
IOException
-