Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeStateProvider#of should prune set of required bundles #15

Open
fschopp opened this issue Feb 17, 2016 · 0 comments
Open

RuntimeStateProvider#of should prune set of required bundles #15

fschopp opened this issue Feb 17, 2016 · 0 comments

Comments

@fschopp
Copy link
Member

fschopp commented Feb 17, 2016

Currently, if a RuntimeStateProvider is serialized (transmitted to a different JVM), the set of required bundle identifiers is determined as:

runtimeContext.getRepository().getBundles()
    .stream()
    .map(RuntimeBundle::getBundleIdentifier)
    .collect(Collectors.toList())

When, e.g., serializing the runtime-state provider in order to execute a simple module in a separate JVM, the set of bundle identifiers may thus include way more than necessary (essentially the entire repository out of which only one simple module is required – possibly with type and annotation plugins though).

In particular, the DSL runtime context provider has the ability to look for all transitive dependencies of a simple module and only link those. That is, at least in this case, if the original bundle URI was of form x-dsl:org.genetics.Wholepipeline, the bundle URI for a simple-module execution may simply be, e.g., x-dsl:org.genertics.SortVariants – this way, many unneeded plug-ins don't have to be linked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant