ServerRestartStrategy
class ServerRestartStrategy implements RestartStrategy
Properties
| protected int|null | $processId | ||
| protected bool | $lifecycleRunning | ||
| protected bool | $restartRequested | ||
| protected bool | $stopping | ||
| protected string | $bin | ||
| protected non-empty-list<non-empty-string> | $command |
Methods
Perform the initial start of the server process.
Restart the server process (stop current instance, start new).
Stop the currently running server process.
Return the currently published server process ID.
Terminate the currently published server process.
Report a failed server termination.
Launch the server lifecycle in its owner coroutine.
Run one watched server process to completion.
Build the server command arguments without a shell intermediary.
Open the watched server process.
Close the watched server process.
Read the watched server process status.
Send a signal to a server process.
Reload the application environment before spawning a server.
Details
at line 32
__construct(Container $container, OutputInterface $output)
No description
at line 64
void
start()
Perform the initial start of the server process.
at line 78
void
restart()
Restart the server process (stop current instance, start new).
at line 97
void
stop()
Stop the currently running server process.
at line 111
protected int|null
currentProcessId()
Return the currently published server process ID.
The value may change while hooked output yields to another coroutine.
at line 119
protected void
terminateServer()
Terminate the currently published server process.
at line 150
protected void
reportStopFailure()
Report a failed server termination.
at line 161
protected void
launchServer()
Launch the server lifecycle in its owner coroutine.
at line 193
protected void
runServer()
Run one watched server process to completion.
at line 256
protected array
serverCommand()
Build the server command arguments without a shell intermediary.
at line 271
protected mixed
openProcess(array $descriptorSpec, array $pipes)
Open the watched server process.
at line 285
protected int
closeProcess(mixed $process)
Close the watched server process.
at line 296
protected array
processStatus(mixed $process)
Read the watched server process status.
at line 304
protected bool
signalProcess(int $pid, int $signal)
Send a signal to a server process.
at line 312
protected void
reloadEnvironment()
Reload the application environment before spawning a server.