@Generated(value="software.amazon.awssdk:codegen") public class RuntimeConfiguration extends Object implements StructuredPojo, ToCopyableBuilder<RuntimeConfiguration.Builder,RuntimeConfiguration>
A collection of server process configurations that describe what processes to run on each instance in a fleet. All fleets must have a run-time configuration. Each instance in the fleet launches the server processes specified in the run-time configuration and launches new ones as existing processes end. Each instance regularly checks for an updated run-time configuration and follows the new instructions.
The run-time configuration enables the instances in a fleet to run multiple processes simultaneously. Potential scenarios are as follows: (1) Run multiple processes of a single game server executable to maximize usage of your hosting resources. (2) Run one or more processes of different build executables, such as your game server executable and a related program, or two or more different versions of a game server. (3) Run multiple processes of a single game server but with different launch parameters, for example to run one process on each instance in debug mode.
A Amazon GameLift instance is limited to 50 processes running simultaneously. A run-time configuration must specify
fewer than this limit. To calculate the total number of processes specified in a run-time configuration, add the
values of the ConcurrentExecutions
parameter for each ServerProcess
object in the
run-time configuration.
Fleet-related operations include:
Describe fleets:
Update fleets:
Manage fleet capacity:
PutScalingPolicy (automatic scaling)
DescribeScalingPolicies (automatic scaling)
DeleteScalingPolicy (automatic scaling)
Modifier and Type | Class and Description |
---|---|
static interface |
RuntimeConfiguration.Builder |
Modifier and Type | Method and Description |
---|---|
static RuntimeConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
Integer |
gameSessionActivationTimeoutSeconds()
Maximum amount of time (in seconds) that a game session can remain in status
ACTIVATING . |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Integer |
maxConcurrentGameSessionActivations()
Maximum number of game sessions with status
ACTIVATING to allow on an instance simultaneously. |
static Class<? extends RuntimeConfiguration.Builder> |
serializableBuilderClass() |
List<ServerProcess> |
serverProcesses()
Collection of server process configurations that describe which server processes to run on each instance in a
fleet.
|
RuntimeConfiguration.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public List<ServerProcess> serverProcesses()
Collection of server process configurations that describe which server processes to run on each instance in a fleet.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Integer maxConcurrentGameSessionActivations()
Maximum number of game sessions with status ACTIVATING
to allow on an instance simultaneously. This
setting limits the amount of instance resources that can be used for new game activations at any one time.
ACTIVATING
to allow on an instance
simultaneously. This setting limits the amount of instance resources that can be used for new game
activations at any one time.public Integer gameSessionActivationTimeoutSeconds()
Maximum amount of time (in seconds) that a game session can remain in status ACTIVATING
. If the game
session is not active before the timeout, activation is terminated and the game session status is changed to
TERMINATED
.
ACTIVATING
. If
the game session is not active before the timeout, activation is terminated and the game session status
is changed to TERMINATED
.public RuntimeConfiguration.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<RuntimeConfiguration.Builder,RuntimeConfiguration>
public static RuntimeConfiguration.Builder builder()
public static Class<? extends RuntimeConfiguration.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.