@Stability(value=Stable)
public static interface CfnFleet.ServerProcessProperty
extends software.amazon.jsii.JsiiSerializable
Each instruction set identifies the location of the server executable, optional launch parameters, and the number of server processes with this configuration to maintain concurrently on the instance. Server process configurations make up a fleet's RuntimeConfiguration .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.gamelift.*;
ServerProcessProperty serverProcessProperty = ServerProcessProperty.builder()
.concurrentExecutions(123)
.launchPath("launchPath")
// the properties below are optional
.parameters("parameters")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnFleet.ServerProcessProperty.Builder
A builder for
CfnFleet.ServerProcessProperty |
static class |
CfnFleet.ServerProcessProperty.Jsii$Proxy
An implementation for
CfnFleet.ServerProcessProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnFleet.ServerProcessProperty.Builder |
builder() |
Number |
getConcurrentExecutions()
The number of server processes using this configuration that run concurrently on each instance.
|
String |
getLaunchPath()
The location of a game build executable or the Realtime script file that contains the `Init()` function.
|
default String |
getParameters()
An optional list of parameters to pass to the server executable or Realtime script on launch.
|
@Stability(value=Stable) @NotNull Number getConcurrentExecutions()
@Stability(value=Stable) @NotNull String getLaunchPath()
Game builds and Realtime scripts are installed on instances at the root:
C:\game . Example: " C:\game\MyGame\server.exe "/local/game . Examples: " /local/game/MyGame/server.exe " or " /local/game/MyRealtimeScript.js "@Stability(value=Stable) @Nullable default String getParameters()
@Stability(value=Stable) static CfnFleet.ServerProcessProperty.Builder builder()
Copyright © 2022. All rights reserved.