Property | Type | Description | |
---|---|---|---|
$extractor | AppserverIo\Appserver\Core\Interfaces\ExtractorInterface | The extractor instance to handle archive operations with |
Method | Description | |
---|---|---|
cleanUpFolders ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | Clean up the the directories for the webapp, e. g. to delete cached stuff that has to be recreated after a restart. | |
createTmpFolders ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | Creates the temporary directory for the webapp. | |
deploy ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, AppserverIo\Configuration\Interfaces\NodeInterface $appNode ) : void | Adds the .dodeploy flag file in the deploy folder, therefore the app will be deployed with the next restart. | |
findAll ( ) : array | Returns all deployed applications. | |
findAllByName ( string $name ) : array | Returns the applications with the passed name. | |
getExtractor ( ) : AppserverIo\Appserver\Core\Interfaces\ExtractorInterface | null | Getter for this service's extractor | |
injectExtractor ( AppserverIo\Appserver\Core\Interfaces\ExtractorInterface $extractor ) : null | Will inject a certain extractor to be used | |
load ( string $uuid ) : |
Returns the application with the passed UUID. | |
loadByWebappPath ( string $webappPath ) : |
Returns the application with the passed webapp path. | |
newFromApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | Creates a new app node for the passed application and attaches it to the system configuration. | |
persist ( AppserverIo\Configuration\Interfaces\NodeInterface $appNode ) : void | Persists the system configuration. | |
soak ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, SplFileInfo $archive ) : void | Soaks the passed archive into from a location in the filesystem to the deploy directory. | |
undeploy ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, string $uuid ) : void | Removes the .deployed flag file from the deploy folder, therefore the app will be undeployed with the next restart. |
public cleanUpFolders ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | ||
$application | AppserverIo\Psr\Application\ApplicationInterface | The application to clean up the directories for |
return | void |
public createTmpFolders ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | ||
$application | AppserverIo\Psr\Application\ApplicationInterface | The application to create the temporary directories for |
return | void |
public deploy ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, AppserverIo\Configuration\Interfaces\NodeInterface $appNode ) : void | ||
$containerNode | AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface | The container the app is bound to |
$appNode | AppserverIo\Configuration\Interfaces\NodeInterface | The application node object |
return | void |
public findAllByName ( string $name ) : array | ||
$name | string | Name of the application to return |
return | array | The applications with the name passed as parameter |
public getExtractor ( ) : AppserverIo\Appserver\Core\Interfaces\ExtractorInterface | null | ||
return | AppserverIo\Appserver\Core\Interfaces\ExtractorInterface | null |
public injectExtractor ( AppserverIo\Appserver\Core\Interfaces\ExtractorInterface $extractor ) : null | ||
$extractor | AppserverIo\Appserver\Core\Interfaces\ExtractorInterface | The extractor instance to inject |
return | null |
public loadByWebappPath ( string $webappPath ) : |
||
$webappPath | string | webapp path of the application to return |
return | The application with the webapp path passed as parameter |
public newFromApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | ||
$application | AppserverIo\Psr\Application\ApplicationInterface | The application to create a new AppNode for |
return | void |