Свойство | Type | Description | |
---|---|---|---|
$instance | AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface | The application server instance itself. |
Méthode | Description | |
---|---|---|
bindService ( integer $runlevel, object $service ) : void | Binds the passed service to the runlevel. | |
doctrine ( React\Socket\ConnectionInterface $conn, array $command ) : void | Executes a Doctrine command. | |
getBootstrapConfigurationFilename ( ) : string | Returns the name and the path of the bootstrap configuration file. | |
getConfigurationFilename ( ) : string | Returns the name and the path of the system configuration file. | |
getInitialContext ( ) : |
Return's the initial context instance. | |
getLogger ( string $name ) : Psr\Log\LoggerInterface | null | Returns the requested logger instance. | |
getLoggers ( ) : array | Returns the logger instances. | |
getNamingDirectory ( ) : AppserverIo\Psr\Naming\NamingDirectoryInterface | Returns the naming directory instance. | |
getService ( integer $runlevel, string $name ) | Returns the service for the passed runlevel and name. | |
getSystemConfiguration ( ) : AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface | Returns the system configuration. | |
getSystemLogger ( ) : Psr\Log\LoggerInterface | Return's the system logger instance. | |
init ( React\Socket\ConnectionInterface $conn = null, integer $runlevel = ApplicationServerInterface::FULL ) : void | The runlevel to switch to. | |
keepRunning ( ) : boolean | Query whether the application server should keep running or not. | |
mode ( React\Socket\ConnectionInterface $conn, string $mode ) : void | Switch to the passed mode, which can either be 'dev', 'prod' or 'install'. | |
newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface | Returns a new instance of the passed API service. | |
run ( ) | The thread's run() method that runs asynchronously. | |
runlevelFromString ( string $runlevel ) : integer | Translates and returns the runlevel of the passed a string representation. | |
runlevelToString ( integer $runlevel ) : string | Translates and returns a string representation of the passed runlevel. | |
setInitialContext ( |
Sets the initial context instance. | |
setLoggers ( array $loggers ) | Set's the logger instances. | |
setSystemConfiguration ( AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface $systemConfiguration ) : null | Sets the system configuration. | |
shutdown ( ) : void | Shutdown handler that checks for fatal/user errors. | |
singleton ( AppserverIo\Psr\Naming\NamingDirectoryInterface $namingDirectory, AppserverIo\Storage\GenericStackable $runlevels ) : AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface | Creates a new singleton application server instance. | |
stopServices ( integer $runlevel ) : void | Stops all services of the passed runlevel. | |
unbindService ( integer $runlevel, string $name ) : void | Unbind the service with the passed name and runlevel. |
Méthode | Description | |
---|---|---|
__construct ( AppserverIo\Psr\Naming\NamingDirectoryInterface $namingDirectory, AppserverIo\Storage\GenericStackable $runlevels ) | Initialize and start the application server. | |
doDoctrine ( array $command = [] ) : string | Execute the Doctrine CLI tool. | |
doLoadBootstrap ( $bootstrapConfigurationFilename ) : |
Loads the bootstrap configuration from the XML file. | |
doStopServices ( integer $runlevel ) : void | Stops all services of the passed runlevel. | |
doSwitchSetupMode ( string $newMode, string $configurationFilename ) : void | Switches the running setup mode to the passed value. |
protected __construct ( AppserverIo\Psr\Naming\NamingDirectoryInterface $namingDirectory, AppserverIo\Storage\GenericStackable $runlevels ) | ||
$namingDirectory | AppserverIo\Psr\Naming\NamingDirectoryInterface | |
$runlevels | AppserverIo\Storage\GenericStackable | The storage for the services |
protected doDoctrine ( array $command = [] ) : string | ||
$command | array | The Doctrine command to be executed |
Résultat | string | The commands output |
protected doLoadBootstrap ( $bootstrapConfigurationFilename ) : |
||
Résultat | The boostrap configuration |
protected doStopServices ( integer $runlevel ) : void | ||
$runlevel | integer | The runlevel to stop all services for |
Résultat | void |
public getBootstrapConfigurationFilename ( ) : string | ||
Résultat | string | Name and path of the bootstrap configuraiton file |
public getConfigurationFilename ( ) : string | ||
Résultat | string | Name and path of the sytsem configuration file |
public getInitialContext ( ) : |
||
Résultat | The initial context instance |
public getLoggers ( ) : array | ||
Résultat | array | The logger instances |
public getNamingDirectory ( ) : AppserverIo\Psr\Naming\NamingDirectoryInterface | ||
Résultat | AppserverIo\Psr\Naming\NamingDirectoryInterface | $namingDirectory The default naming directory |
public getService ( integer $runlevel, string $name ) | ||
$runlevel | integer | The runlevel of the requested service |
$name | string | The name of the requested service |
public getSystemConfiguration ( ) : AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface | ||
Résultat | AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface | The system configuration |
public getSystemLogger ( ) : Psr\Log\LoggerInterface | ||
Résultat | Psr\Log\LoggerInterface | The system logger instance |
public keepRunning ( ) : boolean | ||
Résultat | boolean | TRUE if the server should keep running, else FALSE |
public newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface | ||
$className | string | The API service class name to return the instance for |
Résultat | AppserverIo\Appserver\Core\Api\ServiceInterface | The service instance |
public runlevelFromString ( string $runlevel ) : integer | ||
$runlevel | string | The string representation of the runlevel to return |
Résultat | integer | The runlevel of the passed string representation |
public runlevelToString ( integer $runlevel ) : string | ||
$runlevel | integer | The runlevel to return the string representation for |
Résultat | string | The string representation for the passed runlevel |
public setInitialContext ( |
||
$initialContext | The initial context instance | |
Résultat | void |
public setLoggers ( array $loggers ) | ||
$loggers | array | The logger instances to set |
public setSystemConfiguration ( AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface $systemConfiguration ) : null | ||
$systemConfiguration | AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface | The system configuration object |
Résultat | null |
public static singleton ( AppserverIo\Psr\Naming\NamingDirectoryInterface $namingDirectory, AppserverIo\Storage\GenericStackable $runlevels ) : AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface | ||
$namingDirectory | AppserverIo\Psr\Naming\NamingDirectoryInterface | |
$runlevels | AppserverIo\Storage\GenericStackable | The storage for the services |
Résultat | AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface | The singleton application instance |
public stopServices ( integer $runlevel ) : void | ||
$runlevel | integer | The runlevel to stop all services for |
Résultat | void |