public class Stability extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER
The Logger.
|
static int |
MAX_TRIES
The number of attempts.
|
| Constructor and Description |
|---|
Stability() |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
areAllQueuesEmpty(List<Object> queues)
Checks whether or not all the iPOJO processing queue are empty or not.
|
static boolean |
getBundleStability(org.osgi.framework.BundleContext bc)
Are bundle stables.
|
static void |
waitForBundleStability(org.osgi.framework.BundleContext context) |
private static void |
waitForIPOJOQueuesToBeEmpty(org.osgi.framework.BundleContext context) |
private static void |
waitForServiceStability(org.osgi.framework.BundleContext context) |
static void |
waitForStability(org.osgi.framework.BundleContext context)
Waits for stability:
all bundles are activated
service count is stable
If the stability can't be reached after a specified time,
the method throws a
IllegalStateException. |
private static final org.slf4j.Logger LOGGER
public static final int MAX_TRIES
public static void waitForStability(org.osgi.framework.BundleContext context)
throws IllegalStateException
IllegalStateException.context - the bundle contextIllegalStateException - when the stability can't be reach after a several attempts.private static void waitForIPOJOQueuesToBeEmpty(org.osgi.framework.BundleContext context)
private static boolean areAllQueuesEmpty(List<Object> queues)
queues - the queuesprivate static void waitForServiceStability(org.osgi.framework.BundleContext context)
public static void waitForBundleStability(org.osgi.framework.BundleContext context)
public static boolean getBundleStability(org.osgi.framework.BundleContext bc)
bc - the bundle contexttrue if every bundles are activated.Copyright © 2013–2014 Wisdom Framework. All rights reserved.