Definition at line 47 of file memory/BundleStorageImpl.java.
Public Member Functions | |
BundleStorageImpl () | |
Create a container for all bundle data in this framework. | |
BundleArchive | insertBundleJar (String location, InputStream is) throws Exception |
Insert bundle into persistent storage. | |
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 | |
boolean | removeArchive (BundleArchive ba) |
Remove bundle archive from archives list. |
org.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl.BundleStorageImpl | ( | ) |
Create a container for all bundle data in this framework.
Try to restore all saved bundle archive state.
Definition at line 64 of file memory/BundleStorageImpl.java.
BundleArchive org.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl.insertBundleJar | ( | String | location, | |
InputStream | is | |||
) | throws Exception |
Insert bundle into persistent storage.
location | Location of bundle. | |
is | Inputstrem with bundle content. |
Implements org.knopflerfish.framework.BundleStorage.
Definition at line 74 of file memory/BundleStorageImpl.java.
BundleArchive org.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl.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. |
Implements org.knopflerfish.framework.BundleStorage.
Definition at line 93 of file memory/BundleStorageImpl.java.
void org.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl.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. |
Implements org.knopflerfish.framework.BundleStorage.
Definition at line 108 of file memory/BundleStorageImpl.java.
BundleArchive [] org.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl.getAllBundleArchives | ( | ) |
Get all bundle archive objects.
Implements org.knopflerfish.framework.BundleStorage.
Definition at line 128 of file memory/BundleStorageImpl.java.
List org.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl.getStartOnLaunchBundles | ( | ) |
Get all bundles tagged to start at next launch of framework.
This list is sorted in increasing bundle id order.
Implements org.knopflerfish.framework.BundleStorage.
Definition at line 141 of file memory/BundleStorageImpl.java.
References org.knopflerfish.framework.BundleArchive.getBundleLocation(), and org.knopflerfish.framework.BundleArchive.getStartOnLaunchFlag().
boolean org.knopflerfish.framework.bundlestorage.memory.BundleStorageImpl.removeArchive | ( | BundleArchive | ba | ) | [package] |
Remove bundle archive from archives list.
id | Bundle archive id to find. |
Definition at line 162 of file memory/BundleStorageImpl.java.
References org.knopflerfish.framework.BundleArchive.getBundleId().
Referenced by org.knopflerfish.framework.bundlestorage.memory.BundleArchiveImpl.purge().