@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServerProcess extends Object implements Serializable, Cloneable, StructuredPojo
A set of instructions for launching server processes on fleet computes. Server processes run either an executable in a custom game build or a Realtime Servers script. Server process configurations are part of a fleet's runtime configuration.
Constructor and Description |
---|
ServerProcess() |
Modifier and Type | Method and Description |
---|---|
ServerProcess |
clone() |
boolean |
equals(Object obj) |
Integer |
getConcurrentExecutions()
The number of server processes using this configuration that run concurrently on each instance or container..
|
String |
getLaunchPath()
The location of a game build executable or Realtime script.
|
String |
getParameters()
An optional list of parameters to pass to the server executable or Realtime script on launch.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConcurrentExecutions(Integer concurrentExecutions)
The number of server processes using this configuration that run concurrently on each instance or container..
|
void |
setLaunchPath(String launchPath)
The location of a game build executable or Realtime script.
|
void |
setParameters(String parameters)
An optional list of parameters to pass to the server executable or Realtime script on launch.
|
String |
toString()
Returns a string representation of this object.
|
ServerProcess |
withConcurrentExecutions(Integer concurrentExecutions)
The number of server processes using this configuration that run concurrently on each instance or container..
|
ServerProcess |
withLaunchPath(String launchPath)
The location of a game build executable or Realtime script.
|
ServerProcess |
withParameters(String parameters)
An optional list of parameters to pass to the server executable or Realtime script on launch.
|
public void setLaunchPath(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()
.
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()
.
public String getLaunchPath()
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()
.
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()
.
public ServerProcess withLaunchPath(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()
.
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()
.
public void setParameters(String parameters)
An optional list of parameters to pass to the server executable or Realtime script on launch.
parameters
- An optional list of parameters to pass to the server executable or Realtime script on launch.public String getParameters()
An optional list of parameters to pass to the server executable or Realtime script on launch.
public ServerProcess withParameters(String parameters)
An optional list of parameters to pass to the server executable or Realtime script on launch.
parameters
- An optional list of parameters to pass to the server executable or Realtime script on launch.public void setConcurrentExecutions(Integer concurrentExecutions)
The number of server processes using this configuration that run concurrently on each instance or container..
concurrentExecutions
- The number of server processes using this configuration that run concurrently on each instance or
container..public Integer getConcurrentExecutions()
The number of server processes using this configuration that run concurrently on each instance or container..
public ServerProcess withConcurrentExecutions(Integer concurrentExecutions)
The number of server processes using this configuration that run concurrently on each instance or container..
concurrentExecutions
- The number of server processes using this configuration that run concurrently on each instance or
container..public String toString()
toString
in class Object
Object.toString()
public ServerProcess clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.