Interface ServerDefOrBuilder
- All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
- All Known Implementing Classes:
ServerDef, ServerDef.Builder
-
Method Summary
Modifier and TypeMethodDescriptionThe cluster of which this server is a member.Device filters for remote tasks in the cluster.Device filters for remote tasks in the cluster.The cluster of which this server is a member.The default configuration for sessions that run on this server.The default configuration for sessions that run on this server.The name of the job of which this server is a member.The name of the job of which this server is a member.intgetPort()The server port.The protocol to be used by this server.The protocol to be used by this server.intReplica this server manages.intThe task index of this server in its job.booleanThe cluster of which this server is a member.booleanDevice filters for remote tasks in the cluster.booleanThe default configuration for sessions that run on this server.Methods inherited from interface MessageLiteOrBuilder
isInitialized
-
Method Details
-
hasCluster
boolean hasCluster()The cluster of which this server is a member.
.tensorflow.ClusterDef cluster = 1;- Returns:
- Whether the cluster field is set.
-
getCluster
ClusterDef getCluster()The cluster of which this server is a member.
.tensorflow.ClusterDef cluster = 1;- Returns:
- The cluster.
-
getClusterOrBuilder
ClusterDefOrBuilder getClusterOrBuilder()The cluster of which this server is a member.
.tensorflow.ClusterDef cluster = 1; -
getJobName
String getJobName()The name of the job of which this server is a member. NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field that matches this name.
string job_name = 2;- Returns:
- The jobName.
-
getJobNameBytes
ByteString getJobNameBytes()The name of the job of which this server is a member. NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field that matches this name.
string job_name = 2;- Returns:
- The bytes for jobName.
-
getReplica
int getReplica()Replica this server manages.
int32 replica = 8;- Returns:
- The replica.
-
getTaskIndex
int getTaskIndex()The task index of this server in its job. NOTE: The `cluster` field must contain a `JobDef` with a matching `name` and a mapping in its `tasks` field for this index.
int32 task_index = 3;- Returns:
- The taskIndex.
-
hasDefaultSessionConfig
boolean hasDefaultSessionConfig()The default configuration for sessions that run on this server.
.tensorflow.ConfigProto default_session_config = 4;- Returns:
- Whether the defaultSessionConfig field is set.
-
getDefaultSessionConfig
ConfigProto getDefaultSessionConfig()The default configuration for sessions that run on this server.
.tensorflow.ConfigProto default_session_config = 4;- Returns:
- The defaultSessionConfig.
-
getDefaultSessionConfigOrBuilder
ConfigProtoOrBuilder getDefaultSessionConfigOrBuilder()The default configuration for sessions that run on this server.
.tensorflow.ConfigProto default_session_config = 4; -
getProtocol
String getProtocol()The protocol to be used by this server. Acceptable values include: "grpc", "grpc+verbs".
string protocol = 5;- Returns:
- The protocol.
-
getProtocolBytes
ByteString getProtocolBytes()The protocol to be used by this server. Acceptable values include: "grpc", "grpc+verbs".
string protocol = 5;- Returns:
- The bytes for protocol.
-
getPort
int getPort()The server port. If not set, then we identify the port from the job_name.
int32 port = 6;- Returns:
- The port.
-
hasClusterDeviceFilters
boolean hasClusterDeviceFilters()Device filters for remote tasks in the cluster. NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
.tensorflow.ClusterDeviceFilters cluster_device_filters = 7;- Returns:
- Whether the clusterDeviceFilters field is set.
-
getClusterDeviceFilters
ClusterDeviceFilters getClusterDeviceFilters()Device filters for remote tasks in the cluster. NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
.tensorflow.ClusterDeviceFilters cluster_device_filters = 7;- Returns:
- The clusterDeviceFilters.
-
getClusterDeviceFiltersOrBuilder
ClusterDeviceFiltersOrBuilder getClusterDeviceFiltersOrBuilder()Device filters for remote tasks in the cluster. NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
.tensorflow.ClusterDeviceFilters cluster_device_filters = 7;
-