@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 each instance in a fleet. Server processes run either a
custom game build executable or a Realtime Servers script. Each instruction set identifies the location of the custom
game build executable or Realtime launch script, 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
.
Constructor and Description |
---|
ServerProcess() |
Modifier and Type | Method and Description |
---|---|
ServerProcess |
clone() |
boolean |
equals(Object obj) |
Integer |
getConcurrentExecutions()
The number of server processes that use this configuration to run concurrently on an instance.
|
String |
getLaunchPath()
The location of the server executable in a custom game build or the name of the Realtime script file that
contains the
Init() function. |
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 that use this configuration to run concurrently on an instance.
|
void |
setLaunchPath(String launchPath)
The location of the server executable in a custom game build or the name of the Realtime script file that
contains the
Init() function. |
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 that use this configuration to run concurrently on an instance.
|
ServerProcess |
withLaunchPath(String launchPath)
The location of the server executable in a custom game build or the name of the Realtime script file that
contains the
Init() function. |
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 the server executable in a custom game build or the name of the Realtime script file that
contains the Init()
function. Game builds and Realtime scripts are installed on instances at the
root:
Windows (for 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
"
launchPath
- The location of the server executable in a custom game build or the name of the Realtime script file that
contains the Init()
function. Game builds and Realtime scripts are installed on instances at
the root:
Windows (for 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
"
public String getLaunchPath()
The location of the server executable in a custom game build or the name of the Realtime script file that
contains the Init()
function. Game builds and Realtime scripts are installed on instances at the
root:
Windows (for 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
"
Init()
function. Game builds and Realtime scripts are installed on instances at
the root:
Windows (for 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
"
public ServerProcess withLaunchPath(String launchPath)
The location of the server executable in a custom game build or the name of the Realtime script file that
contains the Init()
function. Game builds and Realtime scripts are installed on instances at the
root:
Windows (for 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
"
launchPath
- The location of the server executable in a custom game build or the name of the Realtime script file that
contains the Init()
function. Game builds and Realtime scripts are installed on instances at
the root:
Windows (for 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
"
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 that use this configuration to run concurrently on an instance.
concurrentExecutions
- The number of server processes that use this configuration to run concurrently on an instance.public Integer getConcurrentExecutions()
The number of server processes that use this configuration to run concurrently on an instance.
public ServerProcess withConcurrentExecutions(Integer concurrentExecutions)
The number of server processes that use this configuration to run concurrently on an instance.
concurrentExecutions
- The number of server processes that use this configuration to run concurrently on an instance.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.