Package io.grpc.benchmarks.proto
Interface Control.ServerConfigOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Control.ServerConfig,Control.ServerConfig.Builder
- Enclosing class:
- Control
public static interface Control.ServerConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAsyncServerThreads()Only for async server.intgetCoreLimit()Specify the number of cores to limit server to, if desiredintgetCoreList(int index)Specify the cores we should run the server on, if desiredintgetCoreListCount()Specify the cores we should run the server on, if desiredjava.util.List<java.lang.Integer>getCoreListList()Specify the cores we should run the server on, if desiredjava.lang.StringgetOtherServerApi()If we use an OTHER_SERVER client_type, this string gives more detailcom.google.protobuf.ByteStringgetOtherServerApiBytes()If we use an OTHER_SERVER client_type, this string gives more detailPayloads.PayloadConfiggetPayloadConfig()payload config, used in generic server.Payloads.PayloadConfigOrBuildergetPayloadConfigOrBuilder()payload config, used in generic server.intgetPort()Port on which to listen.intgetResourceQuotaSize()Buffer pool size (no buffer pool specified if unset)Control.SecurityParamsgetSecurityParams().grpc.testing.SecurityParams security_params = 2;Control.SecurityParamsOrBuildergetSecurityParamsOrBuilder().grpc.testing.SecurityParams security_params = 2;Control.ServerTypegetServerType().grpc.testing.ServerType server_type = 1;intgetServerTypeValue().grpc.testing.ServerType server_type = 1;booleanhasPayloadConfig()payload config, used in generic server.booleanhasSecurityParams().grpc.testing.SecurityParams security_params = 2;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getServerTypeValue
int getServerTypeValue()
.grpc.testing.ServerType server_type = 1;- Returns:
- The enum numeric value on the wire for serverType.
-
getServerType
Control.ServerType getServerType()
.grpc.testing.ServerType server_type = 1;- Returns:
- The serverType.
-
hasSecurityParams
boolean hasSecurityParams()
.grpc.testing.SecurityParams security_params = 2;- Returns:
- Whether the securityParams field is set.
-
getSecurityParams
Control.SecurityParams getSecurityParams()
.grpc.testing.SecurityParams security_params = 2;- Returns:
- The securityParams.
-
getSecurityParamsOrBuilder
Control.SecurityParamsOrBuilder getSecurityParamsOrBuilder()
.grpc.testing.SecurityParams security_params = 2;
-
getPort
int getPort()
Port on which to listen. Zero means pick unused port.
int32 port = 4;- Returns:
- The port.
-
getAsyncServerThreads
int getAsyncServerThreads()
Only for async server. Number of threads used to serve the requests.
int32 async_server_threads = 7;- Returns:
- The asyncServerThreads.
-
getCoreLimit
int getCoreLimit()
Specify the number of cores to limit server to, if desired
int32 core_limit = 8;- Returns:
- The coreLimit.
-
hasPayloadConfig
boolean hasPayloadConfig()
payload config, used in generic server. Note this must NOT be used in proto (non-generic) servers. For proto servers, 'response sizes' must be configured from the 'response_size' field of the 'SimpleRequest' objects in RPC requests.
.grpc.testing.PayloadConfig payload_config = 9;- Returns:
- Whether the payloadConfig field is set.
-
getPayloadConfig
Payloads.PayloadConfig getPayloadConfig()
payload config, used in generic server. Note this must NOT be used in proto (non-generic) servers. For proto servers, 'response sizes' must be configured from the 'response_size' field of the 'SimpleRequest' objects in RPC requests.
.grpc.testing.PayloadConfig payload_config = 9;- Returns:
- The payloadConfig.
-
getPayloadConfigOrBuilder
Payloads.PayloadConfigOrBuilder getPayloadConfigOrBuilder()
payload config, used in generic server. Note this must NOT be used in proto (non-generic) servers. For proto servers, 'response sizes' must be configured from the 'response_size' field of the 'SimpleRequest' objects in RPC requests.
.grpc.testing.PayloadConfig payload_config = 9;
-
getCoreListList
java.util.List<java.lang.Integer> getCoreListList()
Specify the cores we should run the server on, if desired
repeated int32 core_list = 10;- Returns:
- A list containing the coreList.
-
getCoreListCount
int getCoreListCount()
Specify the cores we should run the server on, if desired
repeated int32 core_list = 10;- Returns:
- The count of coreList.
-
getCoreList
int getCoreList(int index)
Specify the cores we should run the server on, if desired
repeated int32 core_list = 10;- Parameters:
index- The index of the element to return.- Returns:
- The coreList at the given index.
-
getOtherServerApi
java.lang.String getOtherServerApi()
If we use an OTHER_SERVER client_type, this string gives more detail
string other_server_api = 11;- Returns:
- The otherServerApi.
-
getOtherServerApiBytes
com.google.protobuf.ByteString getOtherServerApiBytes()
If we use an OTHER_SERVER client_type, this string gives more detail
string other_server_api = 11;- Returns:
- The bytes for otherServerApi.
-
getResourceQuotaSize
int getResourceQuotaSize()
Buffer pool size (no buffer pool specified if unset)
int32 resource_quota_size = 1001;- Returns:
- The resourceQuotaSize.
-
-