This is a set of demo code that populates noticeable amount of data into Infinispan/JDG. This can be used along w/ the Visualizer application to see data grid in action. The Visualizer application can be found: https://github.com/infinispan/visual
- JBoss Data Grid 6.0 or Infinispan
- Maven 2
If not using Infinispan, everything should be good to go.
If you are using JDG 6, please make sure JDG 6 repository is configured based on JDG 6 Maven Repository installation instructions. Please change the pom.xml
so that the Infinispan dependency is based on JDG 6 repository.
All configurations are in code (sorry), located in com.redhat.middleware.jdg.Main
.
Set the INITIAL_LIST
to at least one HotRod server. See HotRod Client documentation equivalent of: http://docs.jboss.org/infinispan/5.1/apidocs/org/infinispan/client/hotrod/RemoteCacheManager.html#RemoteCacheManager(java.lang.String,%20boolean)
Set the CACHE_NAME
to the name of the cache you want to use. By default, JDG comes w/ "namedCache" configuration. For Infinispan, try "___defaultcache".
If you don't want to run something, comment it out. For TwitterDemoClient
, you'll need to pass in a Consumer Key
and a Consumer Secret
. If you don't have one, go to https://dev.twitter.com/apps and create a new application.
To run, you can do mvn exec:java
, or execute main class com.redhat.middleware.jdg.Main
If you want to debug the source code or look at the Javadocs of any library in the project, run either of the following commands to pull them into your local repository. The IDE should then detect them.
mvn dependency:sources
mvn dependency:resolve -Dclassifier=javadoc