ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [4/4] incubator-ignite git commit: # ignite-reflectionFactory: head
Date Fri, 19 Jun 2015 14:02:41 GMT
# ignite-reflectionFactory: head


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/8e0ce491
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/8e0ce491
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/8e0ce491

Branch: refs/heads/IgniteReflectionFactory-doc
Commit: 8e0ce491d39c2238001943c0bff0fc94b10b5683
Parents: 2e472ee
Author: ashutak <ashutak@gridgain.com>
Authored: Fri Jun 19 17:02:41 2015 +0300
Committer: ashutak <ashutak@gridgain.com>
Committed: Fri Jun 19 17:02:41 2015 +0300

----------------------------------------------------------------------
 .../configuration/IgniteReflectionFactory.java  | 51 +++-----------------
 1 file changed, 8 insertions(+), 43 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8e0ce491/modules/core/src/main/java/org/apache/ignite/configuration/IgniteReflectionFactory.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/configuration/IgniteReflectionFactory.java
b/modules/core/src/main/java/org/apache/ignite/configuration/IgniteReflectionFactory.java
index 3c17a32..2c106d2 100644
--- a/modules/core/src/main/java/org/apache/ignite/configuration/IgniteReflectionFactory.java
+++ b/modules/core/src/main/java/org/apache/ignite/configuration/IgniteReflectionFactory.java
@@ -18,12 +18,6 @@
 package org.apache.ignite.configuration;
 
 import org.apache.ignite.internal.util.typedef.*;
-import org.apache.ignite.spi.discovery.*;
-import org.apache.ignite.spi.discovery.tcp.ipfinder.*;
-import org.apache.ignite.spi.discovery.tcp.ipfinder.jdbc.*;
-import org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.*;
-import org.apache.ignite.spi.discovery.tcp.ipfinder.sharedfs.*;
-import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.*;
 
 import javax.cache.*;
 import javax.cache.configuration.*;
@@ -32,43 +26,14 @@ import java.lang.reflect.*;
 import java.util.*;
 
 /**
- * Convenience class for reflection-based object creation.
- */
-/**
- * Discovery SPI implementation that uses TCP/IP for node discovery.
- * <p>
- * Nodes are organized in ring. So almost all network exchange (except few cases) is
- * done across it.
- * <p>
- * If node is configured as client node (see {@link IgniteConfiguration#clientMode})
- * TcpDiscoverySpi starts in client mode as well. In this case node does not take its place
in the ring,
- * but it connects to random node in the ring (IP taken from IP finder configured) and
- * use it as a router for discovery traffic.
- * Therefore slow client node or its shutdown will not affect whole cluster. If TcpDiscoverySpi
- * needs to be started in server mode regardless of {@link IgniteConfiguration#clientMode},
- * {@link #forceSrvMode} should be set to true.
- * <p>
- * At startup SPI tries to send messages to random IP taken from
- * {@link TcpDiscoveryIpFinder} about self start (stops when send succeeds)
- * and then this info goes to coordinator. When coordinator processes join request
- * and issues node added messages and all other nodes then receive info about new node.
- * <h1 class="header">Failure Detection</h1>
- * Configuration defaults (see Configuration section below for details)
- * are chosen to make possible for discovery SPI work reliably on
- * most of hardware and virtual deployments, but this has made failure detection time worse.
- * <p>
- * For stable low-latency networks the following more aggressive settings are recommended
- * (which allows failure detection time ~200ms):
- * <ul>
- * <li>Heartbeat frequency (see {@link #setHeartbeatFrequency(long)}) - 100ms</li>
- * <li>Socket timeout (see {@link #setSocketTimeout(long)}) - 200ms</li>
- * <li>Message acknowledgement timeout (see {@link #setAckTimeout(long)}) - 50ms</li>
- *
- *
- *
- *
- * * * * * *
- * </ul>
+ * Factory implementation that use reflection to creat instance of given class.
+ * <p/>
+ * There are 2 modes of factory: singleton and non-sigletton.
+ * <p/>
+ * Class that should be created by {@link IgniteReflectionFactory} (component class) have
to be
+ * public java POJO with public setters for field
+ * for which property injection will be used (see {@link #setProperties(Map)}).
+ * <p/>
  * <h1 class="header">Configuration</h1>
  * <h2 class="header">Mandatory</h2>
  * The following configuration parameters are mandatory:


Mime
View raw message