org.apache.ignite.osgi

## Class IgniteOsgiUtils

- java.lang.Object
- - org.apache.ignite.osgi.IgniteOsgiUtils

-     public class IgniteOsgiUtils
      extends Object

  Helper class for OSGi.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected static Map<Ignite,ClassLoader>` | `classloaders()` Returns a `Map` of `Ignite` instances and the classloaders of the `Bundle`s they were started from.
    `static int` | `gridCount()` Returns the number of grids currently running in this OSGi container.
    `static boolean` | `isOsgi()` Returns whether we are running in an OSGi environment.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### isOsgi

          public static boolean isOsgi()

      Returns whether we are running in an OSGi environment.
      Returns:
        `true/false`.

    - #### classloaders

          protected static Map<Ignite,ClassLoader> classloaders()

      Returns a `Map` of `Ignite` instances and the classloaders of the `Bundle`s they were started from.
      Returns:
        The `Map`.

    - #### gridCount

          public static int gridCount()

      Returns the number of grids currently running in this OSGi container.
      Returns:
        The grid count.

2020 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.9.1
Release Date | : December 9 2020