Interface ServerProcess.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ServerProcess.Builder,ServerProcess>, SdkBuilder<ServerProcess.Builder,ServerProcess>, SdkPojo
Enclosing class:
ServerProcess

public static interface ServerProcess.Builder extends SdkPojo, CopyableBuilder<ServerProcess.Builder,ServerProcess>
  • Method Details

    • launchPath

      ServerProcess.Builder launchPath(String launchPath)

      The location of a game build executable or Realtime script. Game builds and Realtime scripts are installed on instances at the root:

      • Windows (custom game builds only): C:\game. Example: "C:\game\MyGame\server.exe"

      • Linux: /local/game. Examples: "/local/game/MyGame/server.exe" or " /local/game/MyRealtimeScript.js"

      Amazon GameLift doesn't support the use of setup scripts that launch the game executable. For custom game builds, this parameter must indicate the executable that calls the server SDK operations initSDK() and ProcessReady().

      Parameters:
      launchPath - The location of a game build executable or Realtime script. Game builds and Realtime scripts are installed on instances at the root:

      • Windows (custom game builds only): C:\game. Example: " C:\game\MyGame\server.exe"

      • Linux: /local/game. Examples: "/local/game/MyGame/server.exe" or " /local/game/MyRealtimeScript.js"

      Amazon GameLift doesn't support the use of setup scripts that launch the game executable. For custom game builds, this parameter must indicate the executable that calls the server SDK operations initSDK() and ProcessReady().

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parameters

      ServerProcess.Builder parameters(String parameters)

      An optional list of parameters to pass to the server executable or Realtime script on launch.

      Parameters:
      parameters - An optional list of parameters to pass to the server executable or Realtime script on launch.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • concurrentExecutions

      ServerProcess.Builder concurrentExecutions(Integer concurrentExecutions)

      The number of server processes using this configuration that run concurrently on each instance.

      Parameters:
      concurrentExecutions - The number of server processes using this configuration that run concurrently on each instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.