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. |
BundleArchive org.knopflerfish.framework.BundleStorage.insertBundleJar | ( | String | location, | |
InputStream | is | |||
) | throws Exception [package] |
Insert bundle into persistent storagedata.
key | Name of attribute to get. |
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.
old | BundleArchive to be replaced. | |
is | Inputstrem with bundle content. |
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.
oldBA | BundleArchive to be replaced. | |
newBA | Inputstrem with bundle content. |
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.
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.
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().