ãã®æè¡ã䜿çšããã¯ã©ã¹ãHello WorldïŒãã®äŸã¯ããã®èšäºã§æ€èšããã³æºåãããŸãã
ã€ã³ã¹ããŒã«ãšèµ·å
ãã®èšäºã®å·çæç¹ã§ã®Igniteã®ææ°ããŒãžã§ã³ã¯1.7.0ã§ããã調æ»äžã§ãïŒãã ããGitHubã«ã¯æ¢ã«1.8.0-SNAPSHOTããããŸãïŒã IgniteãååŸããã«ã¯2ã€ã®æ¹æ³ããããŸãã æåã«ãMavenäŸåé¢ä¿ãorg.apache.igniteïŒignite-core; LATESTã«è¿œå ãããªãã·ã§ã³ã§org.apache.igniteïŒignite-springïŒLATESTã«ã¢ããªã±ãŒã·ã§ã³ã«è¿œå ããŸãã 補é å ã®Webãµã€ãããã¢ã»ã³ãã«ããããªãªãŒã¹ãããŠã³ããŒãããããšãã§ããŸãããã®Webãµã€ã㯠ãäž»ã«Mavenãæ¥ç¶ããã©ã€ãã©ãªãŸãã¯Dockerã€ã¡ãŒãžã§æ§æãããŠããŸãã ç§ã¯Windows 7ã§èª¿æ»ãè¡ã£ãŠãããããDockerãªãã·ã§ã³ã¯å©çšã§ããããã€ããªãã£ã¹ããªãã¥ãŒã·ã§ã³ãããŠã³ããŒãããŸããã ããŠã³ããŒãããŠè§£åããå¿ èŠããããŸãã解åãããã©ã«ããŒã¯IGNITE_HOMEãšåŒã°ããŸãã ããã«ãç§ã¯éåžžãå ã®ãã¥ãŒããªã¢ã«ã®ãã¬ãŒã³ããŒã·ã§ã³ã®é åºã«åŸããŸãããå Žåã«ãã£ãŠã¯å¿ ç¶çã«ãããå Žæã§è€è£œããŸãããèªè ã®äŸ¿å®ã®ããã ãã§ãã
ãŸããIgniteããããžã¯ãã¯ã©ã€ã¢ã³ããšãµãŒããŒã®2çš®é¡ã®ããŒãã§æ§æãããŠããããšã«æ³šæããŠãã ããã éåžžãè² è·ã¯ãµãŒããŒã§å®è¡ããã匱ããã·ã³ã§å®è¡ãããŠããã¯ã©ã€ã¢ã³ãã¯ãµãŒããŒã«æ¥ç¶ããŠã¿ã¹ã¯ãéå§ããŸãã ã¯ã©ã€ã¢ã³ãããŒããšãµãŒããŒããŒãã¯åãJVMå ã§èµ·åã§ããŸãããã»ãšãã©ã®å ŽåãããŒãã¯JVM 1ã«å±ããŸãïŒ1ã 1ã€ã®ç©çïŒãŸãã¯ä»®æ³ãã·ã³ïŒã§ãä»»æã®æ°ã®ããŒããå®è¡ã§ããŸãã 次ã«ããã®éããããæ·±ãåæããŸãã ãã®çšèªã§ã¯ããHello WorldïŒãã¢ããªã±ãŒã·ã§ã³ã¯ããµãŒããŒãšããã®æåãªã¡ãã»ãŒãžããµãŒããŒã«éä¿¡ããã¯ã©ã€ã¢ã³ãã§æ§æãããŸãã
IgniteããŒããååŸããã«ã¯ããŠãŒãã£ãªãã£ã¯ã©ã¹Ignitionã䜿çšãããŸãã å€ãã®ã¡ãœããã®ãã¡ã5ã€ã®ãªãŒããŒããŒããããéå§ã¡ãœããã«åŒãç¶ãé¢å¿ããããŸãã ãã®ãã¡ã®1ã€ã¯ãã©ã¡ãŒã¿ãŒãªãã§ãããã©ã«ãã®ãã©ã¡ãŒã¿ãŒã§ããŒããèµ·åããŸãããç§ãã¡ã«ã¯é©ããŠããŸããã 2çªç®ã¯ã å ¥åãšããŠIgniteConfigurationã¿ã€ãã®çæãããæ§æãªããžã§ã¯ããåãåããä»ã®3ã€ã¯ãxmlæ§æãæã€ãªãœãŒã¹ãžã®ãã¹ã®åœ¢åŒãxmlæ§æãžã®URLããŸãã¯InputStreamã®åœ¢åŒã§ãåãIgniteConfigurationãªããžã§ã¯ããèšè¿°ããã¹ããªã³ã°æ§æãã¡ã€ã«ãåãåããŸãã å人çãªçµéšããã æ°ãã IgniteConfigurationã䜿çšããŠæåæ§æã§ãªãã·ã§ã³ã䜿çšããããšã¯ãå§ãããŸããã å®éãIgniteConfigurationãªããžã§ã¯ãã¯è€åã§ãããåæåããå¿ èŠããããã¹ãããããªããžã§ã¯ããå€æ°ãããŸãã ãŸããäžéšã®ã¯ã©ã¹ã«ã¯ãã©ã€ããŒããã£ãŒã«ããå«ãŸããŠãããã€ã³ãžã§ã¯ã·ã§ã³ã«ãã£ãŠæä»çã«åæåããããããããã§ã¯ãã£ãããé衚瀺ã«ã§ããŸãã ããšãã°ã TcpDiscoveryJdbcIpFinderã¯ã©ã¹ã§ã¯ããã¬ãŒããã®æ¹æ³ã§æ¿å ¥ãããŸãã ãåç¥ã®ããã«ã æ°ããã€ã³ãžã§ã¯ã·ã§ã³ãä»ããŠãªããžã§ã¯ããäœæãããšãã¯çºçããããã¬ãŒã¯åæåãããã«æ®ããŸããããã¯æããã«ãäžé©åãªç¬éã«NullPointerExceptionãåŒãèµ·ãããŸãã ãããã£ãŠã奜ã¿ã«é¢ä¿ãªããxmlæ§æãèšè¿°ããŠäœ¿çšããæ¹ãå®å šã§ãã ãã®æ§æã¯ãã³ãã³ãã©ã€ã³ããIgniteãèµ·åããããã«äœ¿çšã§ããããããã®ãªãã·ã§ã³ãé©ããŠããŸãã kofigã®äŸã¯ããã£ã¹ããªãã¥ãŒã·ã§ã³ã®ãã©ã«ããŒ$ {IGNITE_HOME} \ examples \ config \ã«ãããŸãã æãåçŽãªæ§æã以äžã«ç€ºããŸãã
ã¯ã©ã€ã¢ã³ãèšå®
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"> <property name="gridName" value="testGrid-client"/> <property name="clientMode" value="true"/> <property name="discoverySpi"> <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> <property name="ipFinder"> <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder"> <property name="addresses"> <list> <value>127.0.0.1:47500..47509</value> </list> </property> </bean> </property> <property name="localAddress" value="localhost"/> </bean> </property> <property name="communicationSpi"> <bean class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi"> <property name="localAddress" value="localhost"/> </bean> </property> </bean> </beans>
ããã§ã¯ããtestGrid-clientããšããååã®ããŒããäœæãããããã¯ã©ã€ã¢ã³ãã§ãããã¢ãã¬ã¹ç¯å²127.0.0.1:47500..47509ãã€ãŸãããŒã«ã«ã§ãµãŒããŒãæ€çŽ¢ãããšèšããŸãã ãµãŒããŒã«å¯ŸããŠãåæ§ã®æ§æãæºåããŸãã
ãµãŒããŒæ§æ
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"> <property name="gridName" value="testGrid-server"/> <property name="clientMode" value="false"/> <property name="discoverySpi"> <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> <property name="ipFinder"> <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder"> <property name="addresses"> <list> <value>127.0.0.1:47500..47509</value> </list> </property> </bean> </property> <property name="localAddress" value="localhost"/> </bean> </property> <property name="communicationSpi"> <bean class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi"> <property name="localAddress" value="localhost"/> </bean> </property> </bean> </beans>
ãµãŒããŒæ§æãtest.xmlãã¡ã€ã«ã«ä¿åãã$ {IGNITE_HOME} \ examples \ configã«é 眮ããŸãã ãµãŒããŒãèµ·åããã«ã¯ã$ {IGNITE_HOME} \ binãã©ã«ããŒã«ç§»åããigniteãïŒBat | shïŒexamples \ config \ test.xmlã³ãã³ããå®è¡ããŸãã è©Šéšãè¡ãããªãå Žåãæ§æã¯æå¹ã§ãããæåŸã«æ¬¡ã®ãããªãã®ã衚瀺ãããŸãã
å®è¡ãããããããã¡ã€ã«ã¯ãåŠç¿ã«åœ¹ç«ã¡ãŸãã JVMå€æ°ãèšå®ããæšæºæ©èœã«å ããŠããã®ã³ã°ã®è©³çŽ°ãå¶åŸ¡ããIGNITE_QUIETã·ã¹ãã å€æ°ã®ååšã«ã€ããŠåŠç¿ã§ããŸãã ã·ã¹ãã å€æ°ã®å®å šãªãªã¹ãã¯ã埩å·åæ©èœãåããIgniteSystemPropertiesã¯ã©ã¹ã§æäŸãããŸãã æ £ããã®ã¯çã«ããªã£ãŠããŸãïŒIgniteã¯æ°ããããŒãžã§ã³ã®å€èŠ³ããã§ãã¯ããæ¹æ³ããç¥ã£ãŠããããšãããããŸãïŒã 次ã«ã CommandLineStartupã¯ã©ã¹ãã³ãã³ãã©ã€ã³ããéå§ãã圹å²ã確èªããŸãã 圌ãèå³ããªãããã§ã¯ãããŸããã OSXã§äœæ¥ããŠããå Žåã¯ãéå§æã«ãããã¢ãããŠã£ã³ããŠããããã¢ããããããšãããããŸãã äºçŽ°ãªããšã ããæ°æãè¯ããªã-ãªãããã圌ãã«ãšã£ãŠå¹žçŠãªã®ãïŒ ãããããããšããããã©ã¡ãŒã¿ãŒãªãã§ãã®ã¯ã©ã¹ã«å ¥ããšãã€ã³ã¿ã©ã¯ãã£ãã¢ãŒãããªã³ã«ãªããGridConfigurationFinderãæ€åºããå©çšå¯èœãªæ§æã®éžæè¢ãæäŸãããããšãæããã§ãã 圌ã¯$ {IGNITE_HOME}ã§æ€çŽ¢ã§ããŸãã ããããã¡ã€ã«ãä»ããŠãã©ã¡ãŒã¿ãªãã§ã¯éå§ã§ããªãããããã®ãªãã·ã§ã³ã¯ããã§ã¯äœ¿çšã§ããŸããã ãã ããã³ãã³ã$ {IGNITE_HOME} \ bin \ ignitevisorcmd.batãå®è¡ã§ããŸããããã¯Igniteã®ã€ã³ã¿ã©ã¯ãã£ããªç£èŠã§ããããã®äžã§openã³ãã³ããå®è¡ãããšã次ã®ãããªãã®ã衚瀺ãããŸãã
ããã§ãæ§æãæå®ã§ããŸãããã®ãªã¹ãã§ã¯ãçªå·6ã®äžã«ãããŸãã6ãå ¥åããåŸããµãŒããŒã«æ¥ç¶ãã
次ã«ãã³ã³ãœãŒã«ã§topã³ãã³ããå ¥åããŠãããããžã確èªã§ããŸãã
æ·±ãèŠã
CommandLineStartupã¯ã©ã¹ã«æ»ããšãScalaã§æ°ã«å ¥ã£ãŠããã¯ã©ã¹ã®ãšã€ãªã¢ã¹ã«æ§ããŠããéçºè ãèŠã€ããããšãã§ããŸããç°¡æœã«ããããã«ãIgnitionã¯ã©ã¹ã®ç©ºã®åå«ã§ããã¯ã©ã¹GãäœæããŸããã ããŠããµãŒããŒãèµ·åããŸããã次ã¯äœã§ããïŒ æ¬¡ã«ãã¯ã©ã€ã¢ã³ããå®è¡ããŸãã ã€ã³ã¹ã¿ã³ã¹ãå®è¡ããäžè¬çãªã³ãŒãã¯æ¬¡ã®ããã«ãªããŸãã
ããŒãæ§æ
@Configuration public class IgniteProvider { private Log log = LogFactory.getLog(IgniteCacheAdapter.class); private final Ignite ignite; private boolean started = false; public IgniteProvider() { try { Ignition.ignite("testGrid-client"); started = true; } catch (IgniteIllegalStateException e) { log.debug("Using the Ignite instance that has been already started."); } if (started) ignite = Ignition.ignite("testGrid-client"); else { ignite = Ignition.start("ignite/example-hello.xml"); ((TcpDiscoverySpi) ignite.configuration().getDiscoverySpi()) .getIpFinder() .registerAddresses(Collections.singletonList(new InetSocketAddress("localhost", DFLT_PORT))); } } public Ignite getIgnite() { return ignite; } }
ããã§ã¯ãåãååã®ããŒãããã®JVMã§æ¢ã«å®è¡ãããŠãããã©ããã確èªããŸããå®è¡ãããŠããå Žåãjava.util.concurrent.ConcurrentHashMapã§ã¯ãªãã誰ããèããŠããããã«ãçµç¹ã«ä¿åãããŸãã jsr166.ConcurrentHashMap8ã ãããã®éãã¯äœã§ããïŒç§ã¯æšæž¬ããããšããæããŠããŸããã³ã¡ã³ãã®èª°ããåçºããããšãæã¿ãŸãã ãŸããããŒãããŸã ãªãå Žåã¯ãæ§æã«åºã¥ããŠäœæãããŸãã ã¯ã©ã€ã¢ã³ããšããŠæ¥ç¶ããŠããããããµãŒããŒãèŠã€ããå¿ èŠããããŸãã TcpDiscoverySpiããã³TcpDiscoveryMulticastIpFinderã¯ãæ§æå ã®æ€åºã¡ãœãããšããŠæå®ããããããã®ã¯ã©ã¹ã¯åæåãããæ€çŽ¢æäœãå®è¡ããŸãã äž»ãªãã®ã¯æ¬¡ã®ãšããã§ãã
ã¬ã€ãã©ã€ã³ã«åŸã£ãŠã TcpDiscoveryImplã€ã³ã¿ãŒãã§ãŒã¹ã®2ã€ã®å®è£ éã®éžæã¯ClientImplãåªå ããŠè¡ãããŸãã 次ã«ãsslæ§æãæå®ãããŠããå Žåãsslã³ã³ããã¹ããçºçããŸã-ãœã±ãããäœæããã®ã«åœ¹ç«ã¡ãŸãã TcpDiscoverySpiãªããžã§ã¯ããèªèº«ãèå¥ããããšã¯éåžžã«éèŠã§ãããã®ãããconfigã§localAddressããããã£ãèšå®ããŸãã ã€ã³ã¹ããŒã«ããªãå Žåãorg.apache.ignite.spi.IgniteSpiExceptionïŒããŒã«ã«ãã¹ããã¢ãã¬ã¹ã«è§£æ±ºã§ããŸããã§ããïŒ0.0.0.0/0.0.0.0次ã«ãå éšèªå·±èšºæã®ããã«ãMBeanãç»é²ãããŸãã補åã®ç£èŠã 次ã«ãspiStartã¡ãœããã§ãéžæããå®è£ ãéå§ãããŸãã ã¯ã©ã€ã¢ã³ããšãµãŒããŒã®äž¡æ¹ãããããžã«æ¥ç¶ããå¿ èŠããããŸãããæ¥ç¶ã確ç«ããããŸã§ã¯ã©ã€ã¢ã³ãã¯ãããã¯ãããŸãã æ§æã§ã¯ãlocalhostã®ããŒãã®ç¯å²ãæå®ããåããŒãã¯Igniteã解決ããããšããŠããŸãã ã¯ã©ã€ã¢ã³ãã¯ããããã®åããŒãã¢ãã¬ã¹ã«joinRequestãéä¿¡ããŸãã ãã®å Žæã§ã¯ããœã±ãããä»ããŠã®ã¿çžäºäœçšãå¯èœã§ãããããšãã°ãJMSã«åºã¥ããããããžãŒãæ§ç¯ããããšã¯äžå¯èœã§ãããããç§ã¯å人çã«å€±æããŸããã ããã¯æ®å¿µã§ãã ãã ããIgniteã®ããã©ã«ãããŒãã§ããããŒã47500ã§ãµãŒããŒããã§ãã¯ããŸããã å¿çãšããŠãæåã®ããŒã¹ããŒããµãŒããŒãååŸããããã«åºã¥ããŠã察å¿ãã蚺æã¡ããªãã¯ãæŽæ°ããŸãã å°æ¥ããµãŒããŒãèŠã€ããŠããŒã¹ããŒããåä¿¡ãããã®ããã»ã¹ã¯ç¶ç¶çã«çºçããŸãã ãã€ã¶ãŒã«æ»ããããããžã®ç¶æ ã«ã€ããŠå°ãããšãçãã¯æåŸ ãæºãããŸãã
ãµãŒããŒã³ã³ãœãŒã«ã®åºåã«æ³šæããŠãã ããã
[15:36:11]ããããžã¹ãããã·ã§ãã[ããŒãžã§ã³= 7ããµãŒããŒ= 1ãã¯ã©ã€ã¢ã³ã= 1ãCPU = 8ãããŒã= 7.1GB]
[15:37:11]ããããžã¹ãããã·ã§ãã[ããŒãžã§ã³= 8ããµãŒããŒ= 1ãã¯ã©ã€ã¢ã³ã= 0ãCPU = 8ãããŒã= 3.6GB]
[15:42:15]ããããžã¹ãããã·ã§ãã[ver = 9ããµãŒããŒ= 1ãã¯ã©ã€ã¢ã³ã= 1ãCPU = 8ãããŒã= 7.1GB]
[15:42:24]ããããžã¹ãããã·ã§ãã[ããŒãžã§ã³= 10ããµãŒããŒ= 1ãã¯ã©ã€ã¢ã³ã= 0ãCPU = 8ãããŒã= 3.6GB]
ããæç¹ã§ã¯ã©ã€ã¢ã³ããæ¥ç¶ãããã®åŸèœã¡ãããšãããããŸã-ããã¯ããããã°äžã§ãã¿ã€ã ã¢ãŠãã«ãã£ãŠèœã¡ãããã§ãã çŽ æŽãããã ä»ãããªãã¯äžçã«æšæ¶ããããšãã§ããŸãã ãã®ã¬ã€ãã§ã¯ããã¥ãŒã³ãŒãã®äœ¿çšãæšå¥šããŠããŸã
Junitãã¹ã
@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = {IgniteProvider.class}) public class IgniteHelloWorld { @Autowired private IgniteProvider igniteProvider; @Test public void sendHelloTest() { Ignite ignite = igniteProvider.getIgnite(); while(true) { try { ignite.compute().broadcast(() -> System.out.println("Hello World!")); Thread.sleep(1000); } catch (Exception ex) {} } } }
圌ã¯äœãããŠããŸããïŒ igniteãªããžã§ã¯ãã¯ããŒããè¡šããŸãã ã¯ã©ã€ã¢ã³ãã®computeïŒïŒã¡ãœããã¯ãããããžãŒã«é¢ããç¥èã«åŸãããã®æ¥ç¶ãèæ ®ããŠãåæ£ã³ã³ãã¥ãŒãã£ã³ã°ã®ãªããžã§ã¯ããäœæããŸãã ãããŒããã£ã¹ãã¡ãœããã¯ãSystem.out.printlnã³ãã³ãïŒ "Hello WorldïŒ"ïŒããæ§ç¯ãããžã§ããéåæçã«å®è¡ããŸãã ç§ãã¡ãåŸãçµæã¯éåžžã«äºæ³å€ã§ãïŒ
äºæããªãäŸå€
Caused by: class org.apache.ignite.binary.BinaryInvalidTypeException: ru.kmorozov.ignite.test.IgniteHelloWorld at org.apache.ignite.internal.binary.BinaryContext.descriptorForTypeId(BinaryContext.java:671) at org.apache.ignite.internal.binary.BinaryUtils.doReadClass(BinaryUtils.java:1454) at org.apache.ignite.internal.binary.BinaryUtils.doReadClass(BinaryUtils.java:1392) at org.apache.ignite.internal.binary.BinaryReaderExImpl.readClass(BinaryReaderExImpl.java:369) at org.apache.ignite.internal.binary.BinaryFieldAccessor$DefaultFinalClassAccessor.readFixedType(BinaryFieldAccessor.java:828) at org.apache.ignite.internal.binary.BinaryFieldAccessor$DefaultFinalClassAccessor.read(BinaryFieldAccessor.java:639) at org.apache.ignite.internal.binary.BinaryClassDescriptor.read(BinaryClassDescriptor.java:776) at org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1481) at org.apache.ignite.internal.binary.BinaryUtils.doReadObject(BinaryUtils.java:1608) at org.apache.ignite.internal.binary.BinaryReaderExImpl.readObject(BinaryReaderExImpl.java:1123) at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2V2.readBinary(GridClosureProcessor.java:2023) at org.apache.ignite.internal.binary.BinaryClassDescriptor.read(BinaryClassDescriptor.java:766) at org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1481) at org.apache.ignite.internal.binary.GridBinaryMarshaller.deserialize(GridBinaryMarshaller.java:298) at org.apache.ignite.internal.binary.BinaryMarshaller.unmarshal(BinaryMarshaller.java:109) at org.apache.ignite.internal.processors.job.GridJobWorker.initialize(GridJobWorker.java:409) ... 9 more Caused by: java.lang.ClassNotFoundException: ru.kmorozov.ignite.test.IgniteHelloWorld at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8350) at org.apache.ignite.internal.MarshallerContextAdapter.getClass(MarshallerContextAdapter.java:185) at org.apache.ignite.internal.binary.BinaryContext.descriptorForTypeId(BinaryContext.java:662) ... 24 more
ãµãŒããŒåŽã§ãããšåãæäœãè¡ããŸãã ããã¯ç§ãã¡ãæããã®ãšã¯ãŸã£ããç°ãªããŸãã ããã¯ãæ©èœã®é©ãã¹ãæ¥åŸé ãP2Pã¯ã©ã¹ã®èªã¿èŸŒã¿ããŸãã¯ãŒãå±éãå«ããªãã£ãããã«çºçããŸããã ãã®ç¹ã¯æ¬ç©ã®ã¬ã€ãã§èª¬æãããŠããã®ã§ãç¹°ãè¿ããŸããã ãã€ã³ãã¯ããã¹ãŠã®ã¯ã©ã¹ãšã©ã ãã¯ããŒãžã£ãŒããã¹ãŠã®ããŒãã«äŒæããå¿ èŠããããšããããšã§ãã å¥ã®æ¹æ³ã¯ãã¯ã©ã¹jarã$ {IGNITE_HOME} \ libsãã©ã«ããŒã«æ·»ä»ããããšã§ãã ãã ããæ§æã«è¡ãè¿œå ããŠæ©èœãæå¹ã«ããŸã
<property name="peerClassLoadingEnabled" value="true"/>
å€æŽãå ãããµãŒããŒãåèµ·åããŸãã ãããŠä¹Ÿæ¯ïŒ
[16:21:11]ããããžã¹ãããã·ã§ãã[ããŒãžã§ã³= 6ããµãŒããŒ= 1ãã¯ã©ã€ã¢ã³ã= 0ãCPU = 8ãããŒã= 3.6GB]
[16:21:48]ããããžã¹ãããã·ã§ãã[ver = 7ããµãŒããŒ= 1ãã¯ã©ã€ã¢ã³ã= 1ãCPU = 8ãããŒã= 7.1GB]
Hello WorldïŒ
Hello WorldïŒ
Hello WorldïŒ
çµè«
äºæž¬å¯èœãªæ¹æ³ã§ãåçŽãªäŸã§ã¯ãæ·±byã ãã§ãªãèå³æ·±ã詳现ãæããã«ããŸããã 次ã®ã·ãªãŒãºã§ãããã«ã€ããŠè©±ãããšã¯å¯èœã ãšæããŸããIgniteã®ãã®ä»ã®æ©èœã¯ãŸã 圱é¿ãåããŠããŸããã
åç §è³æ
GitHubãã¹ãã±ãŒã¹ã³ãŒã