/** * Gets an instance of default no-name grid. Note that * caller of this method should not assume that it will return the same * instance every time. * <p> * This method is identical to {@code G.grid(null)} apply. * * @return An instance of default no-name grid. This method never returns * {@code null}. * @throws IgniteIllegalStateException Thrown if default grid was not properly * initialized or grid instance was stopped or was not started. */ public static Ignite ignite() throws IgniteIllegalStateException { return IgnitionEx.grid(); }
/** * Gets a grid instance for given local node ID. Note that grid instance and local node have * one-to-one relationship where node has ID and instance has name of the grid to which * both grid instance and its node belong. Note also that caller of this method * should not assume that it will return the same instance every time. * * @param locNodeId ID of local node the requested grid instance is managing. * @return An instance of named grid. This method never returns * {@code null}. * @throws IgniteIllegalStateException Thrown if grid was not properly * initialized or grid instance was stopped or was not started. */ public static Ignite ignite(UUID locNodeId) throws IgniteIllegalStateException { return IgnitionEx.grid(locNodeId); }
/** * Gets an instance of default no-name grid. Note that * caller of this method should not assume that it will return the same * instance every time. * <p> * This method is identical to {@code G.grid(null)} apply. * * @return An instance of default no-name grid. This method never returns * {@code null}. * @throws IgniteIllegalStateException Thrown if default grid was not properly * initialized or grid instance was stopped or was not started. */ public static Ignite grid() throws IgniteIllegalStateException { return grid((String)null); }
/** * Gets a named Ignite instance. If Ignite instance name is {@code null} or empty string, * then default no-name Ignite instance will be returned. Note that caller of this method * should not assume that it will return the same instance every time. * <p> * The name allows having multiple Ignite instances with different names within the same Java VM. * * @param name Ignite instance name. If {@code null}, then a default no-name * Ignite instance will be returned. * @return A named Ignite instance. This method never returns {@code null}. * @throws IgniteIllegalStateException Thrown if default Ignite instance was not properly * initialized or Ignite instance was stopped or was not started. */ public static Ignite ignite(@Nullable String name) throws IgniteIllegalStateException { return IgnitionEx.grid(name); }
/** * Gets an instance of default no-name grid. Note that * caller of this method should not assume that it will return the same * instance every time. * <p> * This method is identical to {@code G.grid(null)} apply. * * @return An instance of default no-name grid. This method never returns * {@code null}. * @throws IgniteIllegalStateException Thrown if default grid was not properly * initialized or grid instance was stopped or was not started. */ public static Ignite ignite() throws IgniteIllegalStateException { return IgnitionEx.grid(); }
/** * Gets an instance of default no-name grid. Note that * caller of this method should not assume that it will return the same * instance every time. * <p> * This method is identical to {@code G.grid(null)} apply. * * @return An instance of default no-name grid. This method never returns * {@code null}. * @throws IgniteIllegalStateException Thrown if default grid was not properly * initialized or grid instance was stopped or was not started. */ public static Ignite grid() throws IgniteIllegalStateException { return grid((String)null); }
/** * Gets a grid instance for given local node ID. Note that grid instance and local node have * one-to-one relationship where node has ID and instance has name of the grid to which * both grid instance and its node belong. Note also that caller of this method * should not assume that it will return the same instance every time. * * @param locNodeId ID of local node the requested grid instance is managing. * @return An instance of named grid. This method never returns * {@code null}. * @throws IgniteIllegalStateException Thrown if grid was not properly * initialized or grid instance was stopped or was not started. */ public static Ignite ignite(UUID locNodeId) throws IgniteIllegalStateException { return IgnitionEx.grid(locNodeId); }
/** * Gets a named Ignite instance. If Ignite instance name is {@code null} or empty string, * then default no-name Ignite instance will be returned. Note that caller of this method * should not assume that it will return the same instance every time. * <p> * The name allows having multiple Ignite instances with different names within the same Java VM. * * @param name Ignite instance name. If {@code null}, then a default no-name * Ignite instance will be returned. * @return A named Ignite instance. This method never returns {@code null}. * @throws IgniteIllegalStateException Thrown if default Ignite instance was not properly * initialized or Ignite instance was stopped or was not started. */ public static Ignite ignite(@Nullable String name) throws IgniteIllegalStateException { return IgnitionEx.grid(name); }