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.
Terminate the currently published server process.
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 107
protected void
terminateServer()
Terminate the currently published server process.
at line 135
protected void
launchServer()
Launch the server lifecycle in its owner coroutine.
at line 167
protected void
runServer()
Run one watched server process to completion.
at line 230
protected array
serverCommand()
Build the server command arguments without a shell intermediary.
at line 245
protected mixed
openProcess(array $descriptorSpec, array $pipes)
Open the watched server process.
at line 259
protected int
closeProcess(mixed $process)
Close the watched server process.
at line 270
protected array
processStatus(mixed $process)
Read the watched server process status.
at line 278
protected bool
signalProcess(int $pid, int $signal)
Send a signal to a server process.
at line 286
protected void
reloadEnvironment()
Reload the application environment before spawning a server.