此内容没有您所选择的语言版本。
7.4.3. Run the Clustered Cache with Distribution Mode
To run JBoss Data Grid's distribution mode example of a clustered cache, launch three nodes from different consoles.
Procedure 7.2. Run the Clustered Cache with Distribution Mode
- Use the following command to launch the first node:
java -cp target/classes/:target/dependency/* org.infinispan.quickstart.clusteredcache.distribution.Node0
$ java -cp target/classes/:target/dependency/* org.infinispan.quickstart.clusteredcache.distribution.Node0
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Use the following command to launch the second node:
java -cp target/classes/:target/dependency/* org.infinispan.quickstart.clusteredcache.distribution.Node1
$ java -cp target/classes/:target/dependency/* org.infinispan.quickstart.clusteredcache.distribution.Node1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Use the following command to launch the third node:
java -cp target/classes/:target/dependency/* org.infinispan.quickstart.clusteredcache.distribution.Node2
$ java -cp target/classes/:target/dependency/* org.infinispan.quickstart.clusteredcache.distribution.Node2
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Result
JGroups and JBoss Data Grid initialized on the three nodes. After approximately fifteen seconds, the ten entries added by the third node can be seen as they are distributed to the first and second nodes.