|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.deploymentadmin.spi.DeploymentSessionImpl
public class DeploymentSessionImpl
Represents a running deployment session.
Constructor Summary | |
---|---|
DeploymentSessionImpl(AbstractDeploymentPackage source,
AbstractDeploymentPackage target,
List commands,
DeploymentAdminImpl admin)
|
Method Summary | |
---|---|
void |
call()
Calling this method will cause the commands specified for this session to be executed. |
boolean |
cancel()
Cancels the session if it is in progress. |
BundleContext |
getBundleContext()
Returns the bundle context of the bundle this class is part of. |
File |
getDataFile(Bundle bundle)
Retrieve the base directory of the persistent storage area according to OSGi Core R4 6.1.6.10 for the given BundleContext . |
LogService |
getLog()
Returns the currently present log service. |
PackageAdmin |
getPackageAdmin()
Returns the currently present package admin. |
AbstractDeploymentPackage |
getSourceAbstractDeploymentPackage()
Returns the source deployment package as an AbstractDeploymentPackage . |
DeploymentPackage |
getSourceDeploymentPackage()
If the deployment action is an install or an update, this call returns the DeploymentPackage instance that corresponds to the deployment package
being streamed in for this session. |
AbstractDeploymentPackage |
getTargetAbstractDeploymentPackage()
Returns the target deployment package as an AbstractDeploymentPackage . |
DeploymentPackage |
getTargetDeploymentPackage()
If the deployment action is an update or an uninstall, this call returns the DeploymentPackage instance for the installed deployment package. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeploymentSessionImpl(AbstractDeploymentPackage source, AbstractDeploymentPackage target, List commands, DeploymentAdminImpl admin)
Method Detail |
---|
public void call() throws DeploymentException
DeploymentException
- If the session was canceled (DeploymentException.CODE_CANCELLED
) or if one of the commands caused an exception (DeploymentException.*
)public boolean cancel()
public File getDataFile(Bundle bundle)
BundleContext
.
getDataFile
in interface DeploymentSession
bundle
- of which the storage area will be returned
File
that represents the base directory of the
persistent storage area for the bundleDeploymentPackage
,
DeploymentCustomizerPermission
public DeploymentPackage getSourceDeploymentPackage()
DeploymentSession
DeploymentPackage
instance that corresponds to the deployment package
being streamed in for this session. If the deployment action is an uninstall, this call
returns the empty deployment package (see DeploymentPackage
).
getSourceDeploymentPackage
in interface DeploymentSession
DeploymentPackage
public DeploymentPackage getTargetDeploymentPackage()
DeploymentSession
DeploymentPackage
instance for the installed deployment package. If the
deployment action is an install, this call returns the empty deployment package (see
DeploymentPackage
).
getTargetDeploymentPackage
in interface DeploymentSession
DeploymentPackage
public BundleContext getBundleContext()
BundleContext
.public LogService getLog()
LogService
.public PackageAdmin getPackageAdmin()
PackageAdmin
public AbstractDeploymentPackage getTargetAbstractDeploymentPackage()
AbstractDeploymentPackage
.
public AbstractDeploymentPackage getSourceAbstractDeploymentPackage()
AbstractDeploymentPackage
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |