See the WebSphere eXtreme Scale Wiki for links to eXtreme Scale Version 7.0 documentation.
If you log in
with your developerWorks ID, you can leave comments and feedback for the development team.
With the core API, the fundamental interaction with the ObjectGrid cache can occur, including obtaining an ObjectGrid instance, configuring the ObjectGrid and BackingMap, and so on. The core API is used for non-transactional operations, but might be essential to support transactional operations.
Getting Started
Examples and Tutorials
The following code snippet illustrates how to obtain and configure a local ObjectGrid:
ObjectGridManager objectGridManager = ObjectGridManagerFactory.getObjectGridManager();
ObjectGrid ivObjectGrid = objectGridManager.createObjectGrid("objectgridName");
HeapTransactionCallback tcb = new HeapTransactionCallback();
ivObjectGrid.setTransactionCallback(tcb);
BackingMap ivBackingMap = ivObjectGrid.defineMap("myMap");
Loader ivLoader = new HeapCacheLoader();
ivBackingMap.setLoader(ivLoader);
ivObjectGrid.initialize();
Session ivSession = ivObjectGrid.getSession();
ObjectMap objectMap = ivSession.getMap("myMap");
The following code snippet illustrates how to obtain a catalog server-based distributed ObjectGrid:
ObjectGridManager ogManager = ObjectGridManagerFactory.getObjectGridManager();
ClientClusterContext ivClientClusterContext = ogManager.connect("localhost:2809", null, null);
ObjectGrid ivObjectGrid = ogManager.getObjectGrid(ivClientClusterContext, "objectgridName");
Related Information
© Copyright IBM Corporation 2007,2009. All Rights Reserved.