org.knopflerfish.framework.BundleStorage Interface Reference

Inheritance diagram for org.knopflerfish.framework.BundleStorage:

org.knopflerfish.framework.bundlestorage.file.BundleStorageImpl org.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl

List of all members.


Detailed Description

Interface for managing all bundles jar content.

Author:
Jan Stein

Definition at line 45 of file BundleStorage.java.


Public Member Functions

BundleArchive updateBundleArchive (BundleArchive old, InputStream is) throws Exception
 Insert a new jar file into persistent storagedata as an update to an existing bundle archive.
void replaceBundleArchive (BundleArchive oldBA, BundleArchive newBA) throws Exception
 Replace old bundle archive with a new updated bundle archive, that was created with updateBundleArchive.
BundleArchive[] getAllBundleArchives ()
 Get all bundle archive objects.
List getStartOnLaunchBundles ()
 Get all bundles tagged to start at next launch of framework.

Package Functions

BundleArchive insertBundleJar (String location, InputStream is) throws Exception
 Insert bundle into persistent storagedata.

Member Function Documentation

BundleArchive org.knopflerfish.framework.BundleStorage.insertBundleJar ( String  location,
InputStream  is 
) throws Exception [package]

Insert bundle into persistent storagedata.

Parameters:
key Name of attribute to get.
Returns:

Implemented in org.knopflerfish.framework.bundlestorage.file.BundleStorageImpl, and org.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl.

BundleArchive org.knopflerfish.framework.BundleStorage.updateBundleArchive ( BundleArchive  old,
InputStream  is 
) throws Exception

Insert a new jar file into persistent storagedata as an update to an existing bundle archive.

To commit this data a call to replaceBundleArchive is needed.

Parameters:
old BundleArchive to be replaced.
is Inputstrem with bundle content.
Returns:
Bundle archive object.

Implemented in org.knopflerfish.framework.bundlestorage.file.BundleStorageImpl, and org.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl.

void org.knopflerfish.framework.BundleStorage.replaceBundleArchive ( BundleArchive  oldBA,
BundleArchive  newBA 
) throws Exception

Replace old bundle archive with a new updated bundle archive, that was created with updateBundleArchive.

Parameters:
oldBA BundleArchive to be replaced.
newBA Inputstrem with bundle content.
Returns:
New bundle archive object.

Implemented in org.knopflerfish.framework.bundlestorage.file.BundleStorageImpl, and org.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl.

BundleArchive [] org.knopflerfish.framework.BundleStorage.getAllBundleArchives (  ) 

Get all bundle archive objects.

Returns:
Private copy of a List with bundle id's.

Implemented in org.knopflerfish.framework.bundlestorage.file.BundleStorageImpl, and org.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl.

Referenced by org.knopflerfish.framework.Bundles.load().

List org.knopflerfish.framework.BundleStorage.getStartOnLaunchBundles (  ) 

Get all bundles tagged to start at next launch of framework.

This list is sorted in suggest start order.

Returns:
Private copy of a List with bundle id's.

Implemented in org.knopflerfish.framework.bundlestorage.file.BundleStorageImpl, and org.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl.

Referenced by org.knopflerfish.framework.Framework.launch(), and org.knopflerfish.framework.Framework.shutdown().


The documentation for this interface was generated from the following file:
Generated on Mon Jan 11 21:19:19 2010 for OpenMobileIS by  doxygen 1.5.4