|
||||||||||
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()
|
AbstractDeploymentPackage |
getTargetAbstractDeploymentPackage()
Returns the target deployment package as an AbstractDeploymentPackage . |
DeploymentPackage |
getTargetDeploymentPackage()
|
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 bundlepublic DeploymentPackage getSourceDeploymentPackage()
getSourceDeploymentPackage
in interface DeploymentSession
public DeploymentPackage getTargetDeploymentPackage()
getTargetDeploymentPackage
in interface DeploymentSession
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 |