Google Cloud Migration Center V1 Client - Class RunningService (0.2.0)

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class RunningService.

Guest OS running service details.

Generated from protobuf message google.cloud.migrationcenter.v1.RunningService

Namespace

Google \ Cloud \ MigrationCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ service_name string

Service name.

↳ state int

Service state (OS-agnostic).

↳ start_mode int

Service start mode (OS-agnostic).

↳ exe_path string

Service binary path.

↳ cmdline string

Service command line.

↳ pid int|string

Service pid.

getServiceName

Service name.

Returns
TypeDescription
string

setServiceName

Service name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Service state (OS-agnostic).

Returns
TypeDescription
int

setState

Service state (OS-agnostic).

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStartMode

Service start mode (OS-agnostic).

Returns
TypeDescription
int

setStartMode

Service start mode (OS-agnostic).

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getExePath

Service binary path.

Returns
TypeDescription
string

setExePath

Service binary path.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCmdline

Service command line.

Returns
TypeDescription
string

setCmdline

Service command line.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPid

Service pid.

Returns
TypeDescription
int|string

setPid

Service pid.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this