public class RuntimeConfiguration extends Object implements Serializable, Cloneable
Collection of server process configurations that describe what processes should be run on each instance in a fleet. An instance can launch and maintain multiple server processes based on the runtime configuration; it regularly checks for an updated runtime configuration and starts new server processes to match the latest version.
The key purpose of a runtime configuration with multiple server process configurations is to be able to run more than one kind of game server in a single fleet. You can include configurations for more than one server executable in order to run two or more different programs to run on the same instance. This option might be useful, for example, to run more than one version of your game server on the same fleet. Another option is to specify configurations for the same server executable but with different launch parameters.
A GameLift instance is limited to 50 processes running simultaneously. To calculate the total number of processes
specified in a runtime configuration, add the values of the ConcurrentExecutions
parameter for each
ServerProcess
object in the runtime configuration.
Constructor and Description |
---|
RuntimeConfiguration() |
Modifier and Type | Method and Description |
---|---|
RuntimeConfiguration |
clone() |
boolean |
equals(Object obj) |
List<ServerProcess> |
getServerProcesses()
Collection of server process configurations describing what server processes to run on each instance in a fleet
|
int |
hashCode() |
void |
setServerProcesses(Collection<ServerProcess> serverProcesses)
Collection of server process configurations describing what server processes to run on each instance in a fleet
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RuntimeConfiguration |
withServerProcesses(Collection<ServerProcess> serverProcesses)
Collection of server process configurations describing what server processes to run on each instance in a fleet
|
RuntimeConfiguration |
withServerProcesses(ServerProcess... serverProcesses)
Collection of server process configurations describing what server processes to run on each instance in a fleet
|
public List<ServerProcess> getServerProcesses()
Collection of server process configurations describing what server processes to run on each instance in a fleet
public void setServerProcesses(Collection<ServerProcess> serverProcesses)
Collection of server process configurations describing what server processes to run on each instance in a fleet
serverProcesses
- Collection of server process configurations describing what server processes to run on each instance in a
fleetpublic RuntimeConfiguration withServerProcesses(ServerProcess... serverProcesses)
Collection of server process configurations describing what server processes to run on each instance in a fleet
NOTE: This method appends the values to the existing list (if any). Use
setServerProcesses(java.util.Collection)
or withServerProcesses(java.util.Collection)
if you
want to override the existing values.
serverProcesses
- Collection of server process configurations describing what server processes to run on each instance in a
fleetpublic RuntimeConfiguration withServerProcesses(Collection<ServerProcess> serverProcesses)
Collection of server process configurations describing what server processes to run on each instance in a fleet
serverProcesses
- Collection of server process configurations describing what server processes to run on each instance in a
fleetpublic String toString()
toString
in class Object
Object.toString()
public RuntimeConfiguration clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.