PHP 인터페이스 AppserverIo\Appserver\Core\Interfaces\ExtractorInterface

저자: Johann Zelger ([email protected])
파일 보기 프로젝트 열기: appserver-io/appserver

공개 메소드들

메소드 설명
deployArchive ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, SplFileInfo $archive ) : void Extracts the passed archive to a folder with the basename of the archive file.
deployWebapps ( ) : void Gathers all available archived webapps and extract them for usage.
flagArchive ( SplFileInfo $archive, string $flag ) : void Flags the archive in specific states of extraction
getExtensionSuffix ( ) : string Returns the archive extension suffix e.g. .phar
getExtractorNode ( ) : AppserverIo\Appserver\Core\Api\Node\ExtractorNodeInterface Returns the extractor node configuration data.
isDeployable ( SplFileInfo $archive ) : boolean Checks if archive is deployable.
isUndeployable ( SplFileInfo $archive ) : boolean Check if archive is undeployable.
soakArchive ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, SplFileInfo $archive ) : void Soaks the passed archive from a location in the filesystem into the deploy directory and prepares it for the next restart by setting the appropriate flag.
undeployArchive ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, SplFileInfo $archive ) : void Un-deploys the passed archive after backing up files that are NOT part of the archive.
unflagArchive ( SplFileInfo $archive ) : void Deletes all old flags, so the app will be un-deployed with the next appserver restart.

메소드 상세

deployArchive() 공개 메소드

Extracts the passed archive to a folder with the basename of the archive file.
public deployArchive ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, SplFileInfo $archive ) : void
$containerNode AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface The container the archive belongs to
$archive SplFileInfo The archive file to be deployed
리턴 void

deployWebapps() 공개 메소드

Gathers all available archived webapps and extract them for usage.
public deployWebapps ( ) : void
리턴 void

flagArchive() 공개 메소드

Flags the archive in specific states of extraction
public flagArchive ( SplFileInfo $archive, string $flag ) : void
$archive SplFileInfo The archive file
$flag string The flag to set
리턴 void

getExtensionSuffix() 공개 메소드

Returns the archive extension suffix e.g. .phar
public getExtensionSuffix ( ) : string
리턴 string the archive extension suffix

getExtractorNode() 공개 메소드

Returns the extractor node configuration data.
public getExtractorNode ( ) : AppserverIo\Appserver\Core\Api\Node\ExtractorNodeInterface
리턴 AppserverIo\Appserver\Core\Api\Node\ExtractorNodeInterface The extractor node configuration data

isDeployable() 공개 메소드

Checks if archive is deployable.
public isDeployable ( SplFileInfo $archive ) : boolean
$archive SplFileInfo The archive object
리턴 boolean

isUndeployable() 공개 메소드

Check if archive is undeployable.
public isUndeployable ( SplFileInfo $archive ) : boolean
$archive SplFileInfo The archive object
리턴 boolean

soakArchive() 공개 메소드

Soaks the passed archive from a location in the filesystem into the deploy directory and prepares it for the next restart by setting the appropriate flag.
public soakArchive ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, SplFileInfo $archive ) : void
$containerNode AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface The container the archive belongs to
$archive SplFileInfo The archive to be soaked
리턴 void

undeployArchive() 공개 메소드

Un-deploys the passed archive after backing up files that are NOT part of the archive.
public undeployArchive ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, SplFileInfo $archive ) : void
$containerNode AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface The container the archive belongs to
$archive SplFileInfo The archive file to be un-deployed
리턴 void

unflagArchive() 공개 메소드

Deletes all old flags, so the app will be un-deployed with the next appserver restart.
public unflagArchive ( SplFileInfo $archive ) : void
$archive SplFileInfo The archive to un-flag
리턴 void