@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 an executable in a custom game build or a Realtime Servers script. Server process configurations are part of 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 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. |
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.
|
void |
setLaunchPath(String launchPath)
The location of a game build executable or 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 using this configuration that run concurrently on each instance.
|
ServerProcess |
withLaunchPath(String launchPath)
The location of a game build executable or 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 a game build executable or the Realtime script file that contains the Init()
function. 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
"
launchPath
- The location of a game build executable or the Realtime script file that contains the Init()
function. 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
"
public String getLaunchPath()
The location of a game build executable or the Realtime script file that contains the Init()
function. 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
"
Init()
function. 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
"
public ServerProcess withLaunchPath(String launchPath)
The location of a game build executable or the Realtime script file that contains the Init()
function. 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
"
launchPath
- The location of a game build executable or the Realtime script file that contains the Init()
function. 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
"
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.
concurrentExecutions
- The number of server processes using this configuration that run concurrently on each instance.public Integer getConcurrentExecutions()
The number of server processes using this configuration that run concurrently on each instance.
public ServerProcess withConcurrentExecutions(Integer concurrentExecutions)
The number of server processes using this configuration that run concurrently on each instance.
concurrentExecutions
- The number of server processes using this configuration that run concurrently on each 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.