Have a question? Connect with the community at the TensorFlow Forum Visit Forum

ServiceConfig.WorkerConfig

public static final class ServiceConfig.WorkerConfig

 Configuration for a tf.data service WorkerServer.
 
Protobuf type tensorflow.data.experimental.WorkerConfig

Nested Classes

class ServiceConfig.WorkerConfig.Builder
 Configuration for a tf.data service WorkerServer. 

Constants

int DISPATCHER_ADDRESS_FIELD_NUMBER
int DISPATCHER_TIMEOUT_MS_FIELD_NUMBER
int HEARTBEAT_INTERVAL_MS_FIELD_NUMBER
int PORT_FIELD_NUMBER
int PROTOCOL_FIELD_NUMBER
int WORKER_ADDRESS_FIELD_NUMBER

Public Methods

boolean
equals (Object obj)
static ServiceConfig.WorkerConfig
ServiceConfig.WorkerConfig
final static com.google.protobuf.Descriptors.Descriptor
String
getDispatcherAddress ()
 The address of the dispatcher to register with.
com.google.protobuf.ByteString
getDispatcherAddressBytes ()
 The address of the dispatcher to register with.
long
getDispatcherTimeoutMs ()
 How long to retry requests to the dispatcher before giving up and reporting
 an error.
long
getHeartbeatIntervalMs ()
 How often the worker should heartbeat to the master.
long
getPort ()
 The port for the worker to bind to.
String
getProtocol ()
 The protocol for the worker to use when connecting to the dispatcher.
com.google.protobuf.ByteString
getProtocolBytes ()
 The protocol for the worker to use when connecting to the dispatcher.
int
final com.google.protobuf.UnknownFieldSet
String
getWorkerAddress ()
 The address of the worker server.
com.google.protobuf.ByteString
getWorkerAddressBytes ()
 The address of the worker server.
int
final boolean
static ServiceConfig.WorkerConfig.Builder
static ServiceConfig.WorkerConfig.Builder
ServiceConfig.WorkerConfig.Builder
static ServiceConfig.WorkerConfig
parseDelimitedFrom (InputStream input)
static ServiceConfig.WorkerConfig
parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServiceConfig.WorkerConfig
parseFrom (ByteBuffer data)
static ServiceConfig.WorkerConfig
parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServiceConfig.WorkerConfig
parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServiceConfig.WorkerConfig
parseFrom (com.google.protobuf.CodedInputStream input)
static ServiceConfig.WorkerConfig
parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServiceConfig.WorkerConfig
parseFrom (com.google.protobuf.ByteString data)
static ServiceConfig.WorkerConfig
parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServiceConfig.WorkerConfig
parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
ServiceConfig.WorkerConfig.Builder
void
writeTo (com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int DISPATCHER_ADDRESS_FIELD_NUMBER

Constant Value: 3

public static final int DISPATCHER_TIMEOUT_MS_FIELD_NUMBER

Constant Value: 6

public static final int HEARTBEAT_INTERVAL_MS_FIELD_NUMBER

Constant Value: 5

public static final int PORT_FIELD_NUMBER

Constant Value: 1

public static final int PROTOCOL_FIELD_NUMBER

Constant Value: 2

public static final int WORKER_ADDRESS_FIELD_NUMBER

Constant Value: 4

Public Methods

public boolean equals (Object obj)

public static ServiceConfig.WorkerConfig getDefaultInstance ()

public ServiceConfig.WorkerConfig getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public String getDispatcherAddress ()

 The address of the dispatcher to register with.
 
string dispatcher_address = 3;

public com.google.protobuf.ByteString getDispatcherAddressBytes ()

 The address of the dispatcher to register with.
 
string dispatcher_address = 3;

public long getDispatcherTimeoutMs ()

 How long to retry requests to the dispatcher before giving up and reporting
 an error.
 
int64 dispatcher_timeout_ms = 6;

public long getHeartbeatIntervalMs ()

 How often the worker should heartbeat to the master.
 
int64 heartbeat_interval_ms = 5;

public getParserForType ()

public long getPort ()

 The port for the worker to bind to. A value of 0 indicates that the
 worker may bind to any available port.
 
int64 port = 1;

public String getProtocol ()

 The protocol for the worker to use when connecting to the dispatcher.
 
string protocol = 2;

public com.google.protobuf.ByteString getProtocolBytes ()

 The protocol for the worker to use when connecting to the dispatcher.
 
string protocol = 2;

public int getSerializedSize ()

public final com.google.protobuf.UnknownFieldSet getUnknownFields ()

public String getWorkerAddress ()

 The address of the worker server. The substring "%port%", if specified,
 will be replaced with the worker's bound port. This is useful when the port
 is set to `0`.
 
string worker_address = 4;

public com.google.protobuf.ByteString getWorkerAddressBytes ()

 The address of the worker server. The substring "%port%", if specified,
 will be replaced with the worker's bound port. This is useful when the port
 is set to `0`.
 
string worker_address = 4;

public int hashCode ()

public final boolean isInitialized ()

public static ServiceConfig.WorkerConfig.Builder newBuilder ()