class State extends Alvine

Container-Status

State: {
  Running: true,
  Pid: 31588,
  ExitCode: 0,
  StartedAt: "2013-09-20T18:31:38.050822433+02:00",
  FinishedAt: "2013-11-06T14:49:36.024905524Z",
  Ghost: false
},

Properties

protected boolean $running
protected integer $pid
protected integer $exitCode
protected DatTime $startedAt
protected DatTime $finishedAt
protected boolean $ghost

Methods

__construct(boolean $running, integer $pid, integer $exitCode, DateTime $startedAt = null, DateTime $finishedAt = null, boolean $ghost = false)

Neue Instanz erstellen

boolean
isRunning()

Läuft der Container

integer
getPID()

Prozess-ID

string
getExitCode()

Exit-Code

DateTime|null
getStartedAt()

Startdatum

DateTime|null
getFinishedAt()

Enddatum

boolean
isGhost()

Ghost

static State
getInstanceFromArray(array $array)

Neues StatusObjekt erstellen

Details

at line 88
__construct(boolean $running, integer $pid, integer $exitCode, DateTime $startedAt = null, DateTime $finishedAt = null, boolean $ghost = false)

Neue Instanz erstellen

Parameters

boolean $running Läuft der Container
integer $pid Prozess-ID
integer $exitCode ExitCode
DateTime $startedAt Startzeit
DateTime $finishedAt Beendigungszeit
boolean $ghost Ghost

at line 105
boolean isRunning()

Läuft der Container

Return Value

boolean Status

at line 114
integer getPID()

Prozess-ID

Return Value

integer PID

at line 123
string getExitCode()

Exit-Code

Return Value

string Exit

at line 132
DateTime|null getStartedAt()

Startdatum

Return Value

DateTime|null Zeitpunkt des Starts

at line 141
DateTime|null getFinishedAt()

Enddatum

Return Value

DateTime|null Zeitpunkt der Beendigung

at line 150
boolean isGhost()

Ghost

Return Value

boolean Ghost

at line 169
static State getInstanceFromArray(array $array)

Neues StatusObjekt erstellen

State: { Running: true, Pid: 31588, ExitCode: 0, StartedAt: "2013-09-20T18:31:38.050822433+02:00", Ghost: false },

Parameters

array $array Definition

Return Value

State Dieses Objekt