[ 
https://issues.apache.org/jira/browse/IGNITE-4088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15611348#comment-15611348
 ] 

Konstantin Dudkov commented on IGNITE-4088:
-------------------------------------------

new API methods in Ignite interface:
{code:title=Ignite.java|borderStyle=solid}

    /**
     * Dynamically starts new caches with the given cache configurations.
     * <p>
     * If local node is an affinity node, this method will return the instance 
of started caches.
     * Otherwise, it will create a client caches on local node.
     * <p>
     * If for one of configurations a cache with the same name already exists 
in the grid, an exception will be thrown regardless
     * whether the given configuration matches the configuration of the 
existing cache or not.
     *
     * @param cacheCfgs Collection of cache configuration to use.
     * @return Collection of instances of started caches.
     * @throws CacheException if one of created caches exists or other error 
occurs
     */
    public Collection<IgniteCache> createCaches(Collection<CacheConfiguration> 
cacheCfgs) throws CacheException;


    /**
     * Gets existing caches with the given name or created one with the given 
configuration.
     * <p>
     * If a cache with the same name already exist, this method will not check 
that the given
     * configuration matches the configuration of existing cache and will 
return an instance
     * of the existing cache.
     *
     * @param cacheCfgs Collection of cache configuration to use.
     * @return Collection of existing or newly created caches.
     * @throws CacheException if error occurs
     */
    public Collection<IgniteCache> 
getOrCreateCaches(Collection<CacheConfiguration> cacheCfgs) throws 
CacheException;

    /**
     * Stops dynamically started caches.
     *
     * @param cacheNames Collection of cache names to stop.
     * @throws CacheException if error occurs
     */
    public void destroyCaches(Collection<String> cacheNames) throws 
CacheException;
{code}

> Allow to start multiple dynamic caches simultaneoulsy.
> ------------------------------------------------------
>
>                 Key: IGNITE-4088
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4088
>             Project: Ignite
>          Issue Type: Task
>          Components: cache, general, newbie
>    Affects Versions: 1.7
>            Reporter: Alexei Scherbakov
>            Assignee: Konstantin Dudkov
>             Fix For: 1.8
>
>
> Igniters,
> Currently we have no way to start multiple dynamic caches simultaneously, 
> which is not good from the point of startup time in case of starting a great 
> deal of caches.
> Nevertheless, we already have internally [1]
> It should be exposed to public API.
> [1] 
> org.apache.ignite.internal.processors.cache.GridCacheProcessor#initiateCacheChanges



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to