Grid Enable Your Java Applications with GridGain

GridGain is Java based open source middleware for real time data processing and analytics that scales up from one server to thousands of machines.

GridGain is available via open source community edition or enterprise paid edition with bundles of extra features and options.

Getting started with GridGain is simple

import java.lang.*;
import java.math.*;
import org.gridgain.grid.GridException;
import org.gridgain.grid.GridFactory;
import org.gridgain.grid.gridify.Gridify;

public class GridTest{

public static void main(String args[]) throws GridException{
GridFactory.start();
try{
System.out.println("My First Grid Test..");
}catch(Exception e){
e.printStackTrace();
}finally{
GridFactory.stop(true);
}
}
}

To Grid Enable Funcitons i.e. allow the Java Byte Code to be moved to a remote node for computation simply add the Java Annotation @Gridify

for example

@Gridify
public int compute(int datavalues[], int newdatavalues[], int multiplier)
{
for(int i=0; i < datavalues.length ; i++)
{
 newdatavalues[i] = datavalues[i] * multiplier;
}
return 1;
}

Comments

Popular posts from this blog

Basic Send Message to MQ with Java and IBM MQ JMS

Basic Receive Message to MQ with Java and IBM MQ JMS

Creating a simple Alert / Success Message with ASP.NET/VB using Bootstrap