public class BundleStabilityChecker extends AbstractStabilityChecker
It fails if at least one bundle does not reach its final state before a timeout. This timeout is impacted by the "time.factor" system property.
STABILITY_ATTEMPTS, STABILITY_GRACE, TIME_FACTOR| Constructor and Description |
|---|
BundleStabilityChecker(org.osgi.framework.BundleContext context)
Creates a new instance of
BundleStabilityChecker. |
BundleStabilityChecker(org.osgi.framework.BundleContext context,
int max)
Creates a new instance of
BundleStabilityChecker. |
| Modifier and Type | Method and Description |
|---|---|
StabilityResult |
check()
Tries to reach the stability criteria checked by the current checker.
|
static boolean |
getBundleStability(org.osgi.framework.BundleContext bc)
checks whether or not bundles have reach their 'final' state.
|
String |
getName()
Gets the name of the checker.
|
int |
getPriority()
Gets the checker priority.
|
getDefaultGracePeriodInMillis, getDefaultNumberOfAttempts, getTimeFactor, grace, gracepublic BundleStabilityChecker(org.osgi.framework.BundleContext context)
BundleStabilityChecker. It uses the default number of attempts.context - the bundle contextpublic BundleStabilityChecker(org.osgi.framework.BundleContext context,
int max)
BundleStabilityChecker.context - the bundle contextmax - the maximum number of attempspublic String getName()
public int getPriority()
public StabilityResult check()
public static boolean getBundleStability(org.osgi.framework.BundleContext bc)
bc - the bundle contexttrue if every bundles have reached its final state.Copyright © 2009–2015 OW2 Chameleon. All rights reserved.