Package io.grpc.benchmarks.proto
Interface Control.ScenarioOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Control.Scenario,Control.Scenario.Builder
- Enclosing class:
- Control
public static interface Control.ScenarioOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBenchmarkSeconds()Benchmark time, in secondsControl.ClientConfiggetClientConfig()Client configurationControl.ClientConfigOrBuildergetClientConfigOrBuilder()Client configurationjava.lang.StringgetName()Human readable name for this scenariocom.google.protobuf.ByteStringgetNameBytes()Human readable name for this scenariointgetNumClients()Number of clients to start for the testintgetNumServers()Number of servers to start for the testControl.ServerConfiggetServerConfig()Server configurationControl.ServerConfigOrBuildergetServerConfigOrBuilder()Server configurationintgetSpawnLocalWorkerCount()Number of workers to spawn locally (usually zero)intgetWarmupSeconds()Warmup period, in secondsbooleanhasClientConfig()Client configurationbooleanhasServerConfig()Server configuration-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
Human readable name for this scenario
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Human readable name for this scenario
string name = 1;- Returns:
- The bytes for name.
-
hasClientConfig
boolean hasClientConfig()
Client configuration
.grpc.testing.ClientConfig client_config = 2;- Returns:
- Whether the clientConfig field is set.
-
getClientConfig
Control.ClientConfig getClientConfig()
Client configuration
.grpc.testing.ClientConfig client_config = 2;- Returns:
- The clientConfig.
-
getClientConfigOrBuilder
Control.ClientConfigOrBuilder getClientConfigOrBuilder()
Client configuration
.grpc.testing.ClientConfig client_config = 2;
-
getNumClients
int getNumClients()
Number of clients to start for the test
int32 num_clients = 3;- Returns:
- The numClients.
-
hasServerConfig
boolean hasServerConfig()
Server configuration
.grpc.testing.ServerConfig server_config = 4;- Returns:
- Whether the serverConfig field is set.
-
getServerConfig
Control.ServerConfig getServerConfig()
Server configuration
.grpc.testing.ServerConfig server_config = 4;- Returns:
- The serverConfig.
-
getServerConfigOrBuilder
Control.ServerConfigOrBuilder getServerConfigOrBuilder()
Server configuration
.grpc.testing.ServerConfig server_config = 4;
-
getNumServers
int getNumServers()
Number of servers to start for the test
int32 num_servers = 5;- Returns:
- The numServers.
-
getWarmupSeconds
int getWarmupSeconds()
Warmup period, in seconds
int32 warmup_seconds = 6;- Returns:
- The warmupSeconds.
-
getBenchmarkSeconds
int getBenchmarkSeconds()
Benchmark time, in seconds
int32 benchmark_seconds = 7;- Returns:
- The benchmarkSeconds.
-
getSpawnLocalWorkerCount
int getSpawnLocalWorkerCount()
Number of workers to spawn locally (usually zero)
int32 spawn_local_worker_count = 8;- Returns:
- The spawnLocalWorkerCount.
-
-