IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.jpa
Class ClientLoaderFactory

java.lang.Object
  extended by com.ibm.websphere.objectgrid.jpa.ClientLoaderFactory

public class ClientLoaderFactory
extends Object

A factory used for client loader purpose. It can be used to get an instance of client loader and make a Session object be able to drive transactions to a shard in AvailabilityState.PRELOAD state.

Since:
WAS XD 6.1.0.3

Constructor Summary
ClientLoaderFactory()
           
 
Method Summary
static ClientLoader getClientLoader()
          Get an instance of ClientLoader which can be used to load the distributed ObjectGrid maps from an ObjectGrid client.
static Session getClientLoaderSession(Session session)
          A Session object directly retrieved from ObjectGrid can not be used to drive transactions to a shard in AvailabilityState.PRELOAD state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientLoaderFactory

public ClientLoaderFactory()
Method Detail

getClientLoader

public static ClientLoader getClientLoader()
Get an instance of ClientLoader which can be used to load the distributed ObjectGrid maps from an ObjectGrid client.

Returns:
an instance of ClientLoader.

getClientLoaderSession

public static Session getClientLoaderSession(Session session)
A Session object directly retrieved from ObjectGrid can not be used to drive transactions to a shard in AvailabilityState.PRELOAD state. This method makes a Session object be able to drive transactions to a shard in AvailabilityState.PRELOAD state.

When this method is called, the session object can only used to drive transactions to a shard in PRELOAD state. It cannot be used to drive transactions to a shard in AvailabilityState.ONLINE state. Instead, retrieve a different session object.

Parameters:
session - the Session object retrieved from ObjectGrid
Returns:
the session object which can be used to drive transactions to a shared in PRELOAD state

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.