Method | Description | |
---|---|---|
__construct ( AppserverIo\Appserver\Application\Interfaces\ContextInterface $initialContext, AppserverIo\Psr\Naming\NamingDirectoryInterface $namingDirectory, AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, string $runlevel ) | Initializes the container with the initial context, the unique container ID and the deployed applications. | |
addApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | Append the deployed application to the deployment instance and registers it in the system configuration. | |
addApplicationToSystemConfiguration ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | Connects the passed application to the system configuration. | |
getAppBase ( ) : string | (non-PHPdoc) | |
getApplication ( string $name ) : AppserverIo\Psr\Application\ApplicationInterface | Returns the application instance with the passed name. | |
getApplications ( ) : AppserverIo\Storage\GenericStackable | Returns the deployed applications. | |
getBaseDirectory ( string | null $directoryToAppend = null ) : string | (non-PHPdoc) | |
getContainerNode ( ) : |
Returns the containers configuration node. | |
getDeployment ( ) : AppserverIo\Psr\Deployment\DeploymentInterface | Returns the deployment interface for the container for this container thread. | |
getInitialContext ( ) : AppserverIo\Appserver\Application\Interfaces\ContextInterface | Returns the initial context instance. | |
getName ( ) : string | Returns the unique container name from the configuration. | |
getNamingDirectory ( ) : AppserverIo\Psr\Naming\NamingDirectoryInterface | Returns the containers naming directory. | |
getRunlevel ( ) : string | Returns the runlevel the container has been started in. | |
getServer ( string $name ) : AppserverIo\Server\Interfaces\ServerInterface | Returns the sever instance with the passed name. | |
getServers ( ) : AppserverIo\Storage\GenericStackable | Returns the deployed servers. | |
getService ( ) : |
Returns the service instance we need to handle system configuration tasks. | |
getTmpDir ( string | null $directoryToAppend = null ) : string | Returns the servers tmp directory, append with the passed directory. | |
hasProvisioningEnabled ( ) : boolean | Returns TRUE if application provisioning for the container is enabled, else FALSE. | |
hasServersStarted ( ) : boolean | Returns boolean wheather the servers has been started yet or not | |
main ( ) : void | Run the containers logic | |
newInstance ( string $className, array $args = [] ) : object | (non-PHPdoc) | |
newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface | (non-PHPdoc) | |
shutdown ( ) : void | Does shutdown logic for request handler if something went wrong and produces a fatal error for example. | |
stop ( ) : void | Stops the container instance. |
Method | Description | |
---|---|---|
getServerNodeConfiguration ( AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $serverNode ) : |
Return's the prepared server node configuration. | |
registerClassLoaders ( AppserverIo\Storage\GenericStackable $classLoaders ) : void | Register's the class loaders configured for this container. | |
validateDirectories ( ) : void | Validates that the container's application and temporary directory is available. |
public __construct ( AppserverIo\Appserver\Application\Interfaces\ContextInterface $initialContext, AppserverIo\Psr\Naming\NamingDirectoryInterface $namingDirectory, AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, string $runlevel ) | ||
$initialContext | AppserverIo\Appserver\Application\Interfaces\ContextInterface | The initial context |
$namingDirectory | AppserverIo\Psr\Naming\NamingDirectoryInterface | The naming directory |
$containerNode | AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface | The container node |
$runlevel | string | The runlevel the container has been started in |
public addApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | ||
$application | AppserverIo\Psr\Application\ApplicationInterface | The application to append |
return | void |
public addApplicationToSystemConfiguration ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | ||
$application | AppserverIo\Psr\Application\ApplicationInterface | The application to be prepared |
return | void |
public getAppBase ( ) : string | ||
return | string | The application base directory for this container |
public getApplication ( string $name ) : AppserverIo\Psr\Application\ApplicationInterface | ||
$name | string | The name of the application to return |
return | AppserverIo\Psr\Application\ApplicationInterface | The application instance |
public getApplications ( ) : AppserverIo\Storage\GenericStackable | ||
return | AppserverIo\Storage\GenericStackable | The applications |
public getContainerNode ( ) : |
||
return | The configuration node |
public getDeployment ( ) : AppserverIo\Psr\Deployment\DeploymentInterface | ||
return | AppserverIo\Psr\Deployment\DeploymentInterface | The deployment instance for this container thread |
public getInitialContext ( ) : AppserverIo\Appserver\Application\Interfaces\ContextInterface | ||
return | AppserverIo\Appserver\Application\Interfaces\ContextInterface | The initial context instance |
public getNamingDirectory ( ) : AppserverIo\Psr\Naming\NamingDirectoryInterface | ||
return | AppserverIo\Psr\Naming\NamingDirectoryInterface | The containers naming directory |
public getRunlevel ( ) : string | ||
return | string | The runlevel |
protected getServerNodeConfiguration ( AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $serverNode ) : |
||
$serverNode | AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface | The server node |
return | The server node configuration |
public getServers ( ) : AppserverIo\Storage\GenericStackable | ||
return | AppserverIo\Storage\GenericStackable | The servers |
public getService ( ) : |
||
return | The service instance we need |
public hasProvisioningEnabled ( ) : boolean | ||
return | boolean | TRUE if application provisioning is enabled, else FALSE |
public hasServersStarted ( ) : boolean | ||
return | boolean |
public newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface | ||
$className | string | The API service class name to return the instance for |
return | AppserverIo\Appserver\Core\Api\ServiceInterface | The service instance |
protected registerClassLoaders ( AppserverIo\Storage\GenericStackable $classLoaders ) : void | ||
$classLoaders | AppserverIo\Storage\GenericStackable | The container for the class loader instances |
return | void |
protected validateDirectories ( ) : void | ||
return | void |