Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 707B310759 for ; Tue, 23 Dec 2014 00:06:51 +0000 (UTC) Received: (qmail 77078 invoked by uid 500); 23 Dec 2014 00:06:51 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 77016 invoked by uid 500); 23 Dec 2014 00:06:51 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 76973 invoked by uid 99); 23 Dec 2014 00:06:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Dec 2014 00:06:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 23 Dec 2014 00:06:36 +0000 Received: (qmail 65273 invoked by uid 99); 22 Dec 2014 23:59:36 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Dec 2014 23:59:36 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 842EDA33E15; Mon, 22 Dec 2014 23:59:36 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: agoncharuk@apache.org To: commits@ignite.incubator.apache.org Date: Tue, 23 Dec 2014 00:00:20 -0000 Message-Id: <1e1a85b25e514421a2906032b6f8035c@git.apache.org> In-Reply-To: <26feadb5eea944938f598249aa42f8a1@git.apache.org> References: <26feadb5eea944938f598249aa42f8a1@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [46/50] [abbrv] incubator-ignite git commit: GG-9141 - Fixed imports. X-Virus-Checked: Checked by ClamAV on apache.org GG-9141 - Fixed imports. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/2f62dc61 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/2f62dc61 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/2f62dc61 Branch: refs/heads/master Commit: 2f62dc6103a243cd5b9741ef8eb211c0c6246c8e Parents: cd46f56 Author: Alexey Goncharuk Authored: Fri Dec 19 18:57:28 2014 -0800 Committer: Alexey Goncharuk Committed: Fri Dec 19 18:57:28 2014 -0800 ---------------------------------------------------------------------- .../java/org/apache/ignite/IgniteManaged.java | 47 ++++++++++---------- 1 file changed, 24 insertions(+), 23 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2f62dc61/modules/core/src/main/java/org/apache/ignite/IgniteManaged.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/IgniteManaged.java b/modules/core/src/main/java/org/apache/ignite/IgniteManaged.java index 9aaa644..c696879 100644 --- a/modules/core/src/main/java/org/apache/ignite/IgniteManaged.java +++ b/modules/core/src/main/java/org/apache/ignite/IgniteManaged.java @@ -10,9 +10,10 @@ package org.apache.ignite; import org.apache.ignite.cluster.*; +import org.apache.ignite.configuration.IgniteConfiguration; import org.apache.ignite.lang.*; import org.apache.ignite.managed.*; -import org.gridgain.grid.*; +import org.apache.ignite.resources.*; import org.jetbrains.annotations.*; import java.util.*; @@ -36,7 +37,7 @@ import java.util.*; * *

Deployment From Configuration

* In addition to deploying managed services by calling any of the provided {@code deploy(...)} methods, - * you can also automatically deploy services on startup by specifying them in {@link org.apache.ignite.configuration.IgniteConfiguration} + * you can also automatically deploy services on startup by specifying them in {@link IgniteConfiguration} * like so: *
  * GridConfiguration gridCfg = new GridConfiguration();
@@ -73,15 +74,15 @@ import java.util.*;
  * grid resources. Both, field and method based injections are supported. The following grid
  * resources can be injected:
  * 
    - *
  • {@link org.apache.ignite.resources.IgniteInstanceResource}
  • - *
  • {@link org.apache.ignite.resources.IgniteLoggerResource}
  • - *
  • {@link org.apache.ignite.resources.IgniteHomeResource}
  • - *
  • {@link org.apache.ignite.resources.IgniteExecutorServiceResource}
  • - *
  • {@link org.apache.ignite.resources.IgniteLocalNodeIdResource}
  • - *
  • {@link org.apache.ignite.resources.IgniteMBeanServerResource}
  • - *
  • {@link org.apache.ignite.resources.IgniteMarshallerResource}
  • - *
  • {@link org.apache.ignite.resources.IgniteSpringApplicationContextResource}
  • - *
  • {@link org.apache.ignite.resources.IgniteSpringResource}
  • + *
  • {@link IgniteInstanceResource}
  • + *
  • {@link IgniteLoggerResource}
  • + *
  • {@link IgniteHomeResource}
  • + *
  • {@link IgniteExecutorServiceResource}
  • + *
  • {@link IgniteLocalNodeIdResource}
  • + *
  • {@link IgniteMBeanServerResource}
  • + *
  • {@link IgniteMarshallerResource}
  • + *
  • {@link IgniteSpringApplicationContextResource}
  • + *
  • {@link IgniteSpringResource}
  • *
* Refer to corresponding resource documentation for more information. *

Service Example

@@ -135,7 +136,7 @@ public interface IgniteManaged extends IgniteAsyncSupport { * when a singleton service instance will be active on more than one node (e.g. crash detection delay). *

* This method is analogous to calling - * {@link #deployMultiple(String, org.apache.ignite.managed.ManagedService, int, int) deployMultiple(name, svc, 1, 1)} method. + * {@link #deployMultiple(String, ManagedService, int, int) deployMultiple(name, svc, 1, 1)} method. *

* Supports asynchronous execution (see {@link IgniteAsyncSupport}). * @@ -152,7 +153,7 @@ public interface IgniteManaged extends IgniteAsyncSupport { * the service on every new node. *

* This method is analogous to calling - * {@link #deployMultiple(String, org.apache.ignite.managed.ManagedService, int, int) deployMultiple(name, svc, 0, 1)} method. + * {@link #deployMultiple(String, ManagedService, int, int) deployMultiple(name, svc, 0, 1)} method. *

* Supports asynchronous execution (see {@link IgniteAsyncSupport}). * @@ -171,7 +172,7 @@ public interface IgniteManaged extends IgniteAsyncSupport { * Note that in case of topology changes, due to network delays, there may be a temporary situation * when a service instance will be active on more than one node (e.g. crash detection delay). *

- * This method is analogous to the invocation of {@link #deploy(org.apache.ignite.managed.ManagedServiceConfiguration)} method + * This method is analogous to the invocation of {@link #deploy(ManagedServiceConfiguration)} method * as follows: *

      *     GridServiceConfiguration cfg = new GridServiceConfiguration();
@@ -209,7 +210,7 @@ public interface IgniteManaged extends IgniteAsyncSupport {
      * Note that at least one of {@code 'totalCnt'} or {@code 'maxPerNodeCnt'} parameters must have
      * value greater than {@code 0}.
      * 

- * This method is analogous to the invocation of {@link #deploy(org.apache.ignite.managed.ManagedServiceConfiguration)} method + * This method is analogous to the invocation of {@link #deploy(ManagedServiceConfiguration)} method * as follows: *

      *     GridServiceConfiguration cfg = new GridServiceConfiguration();
@@ -235,17 +236,17 @@ public interface IgniteManaged extends IgniteAsyncSupport {
     /**
      * Deploys multiple instances of the service on the grid according to provided
      * configuration. GridGain will deploy a maximum amount of services equal to
-     * {@link org.apache.ignite.managed.ManagedServiceConfiguration#getTotalCount() cfg.getTotalCount()}  parameter
-     * making sure that there are no more than {@link org.apache.ignite.managed.ManagedServiceConfiguration#getMaxPerNodeCount() cfg.getMaxPerNodeCount()}
+     * {@link ManagedServiceConfiguration#getTotalCount() cfg.getTotalCount()}  parameter
+     * making sure that there are no more than {@link ManagedServiceConfiguration#getMaxPerNodeCount() cfg.getMaxPerNodeCount()}
      * service instances running on each node. Whenever topology changes, GridGain will automatically rebalance
      * the deployed services within cluster to make sure that each node will end up with
      * about equal number of deployed instances whenever possible.
      * 

- * If {@link org.apache.ignite.managed.ManagedServiceConfiguration#getAffinityKey() cfg.getAffinityKey()} is not {@code null}, then GridGain + * If {@link ManagedServiceConfiguration#getAffinityKey() cfg.getAffinityKey()} is not {@code null}, then GridGain * will deploy the service on the primary node for given affinity key. The affinity will be calculated - * on the cache with {@link org.apache.ignite.managed.ManagedServiceConfiguration#getCacheName() cfg.getCacheName()} name. + * on the cache with {@link ManagedServiceConfiguration#getCacheName() cfg.getCacheName()} name. *

- * If {@link org.apache.ignite.managed.ManagedServiceConfiguration#getNodeFilter() cfg.getNodeFilter()} is not {@code null}, then + * If {@link ManagedServiceConfiguration#getNodeFilter() cfg.getNodeFilter()} is not {@code null}, then * GridGain will deploy service on all grid nodes for which the provided filter evaluates to {@code true}. * The node filter will be checked in addition to the underlying grid projection filter, or the * whole grid, if the underlying grid projection includes all grid nodes. @@ -274,10 +275,10 @@ public interface IgniteManaged extends IgniteAsyncSupport { /** * Cancels service deployment. If a service with specified name was deployed on the grid, - * then {@link org.apache.ignite.managed.ManagedService#cancel(org.apache.ignite.managed.ManagedServiceContext)} method will be called on it. + * then {@link ManagedService#cancel(ManagedServiceContext)} method will be called on it. *

- * Note that GridGain cannot guarantee that the service exits from {@link org.apache.ignite.managed.ManagedService#execute(org.apache.ignite.managed.ManagedServiceContext)} - * method whenever {@link org.apache.ignite.managed.ManagedService#cancel(org.apache.ignite.managed.ManagedServiceContext)} is called. It is up to the user to + * Note that GridGain cannot guarantee that the service exits from {@link ManagedService#execute(ManagedServiceContext)} + * method whenever {@link ManagedService#cancel(ManagedServiceContext)} is called. It is up to the user to * make sure that the service code properly reacts to cancellations. *

* Supports asynchronous execution (see {@link IgniteAsyncSupport}).