org.jboss.cache.statetransfer
Class StateTransferFactory

java.lang.Object
  extended by org.jboss.cache.statetransfer.StateTransferFactory

public abstract class StateTransferFactory
extends Object

Factory class able to create StateTransferGenerator and StateTransferIntegrator instances.

Version:
$Revision: 4834 $
Author:
Brian Stansberry

Constructor Summary
StateTransferFactory()
           
 
Method Summary
static StateTransferGenerator getStateTransferGenerator(CacheSPI cache)
          Gets the StateTransferGenerator able to handle the given cache instance.
static StateTransferIntegrator getStateTransferIntegrator(ObjectInputStream in, Fqn fqn, CacheSPI cache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateTransferFactory

public StateTransferFactory()
Method Detail

getStateTransferGenerator

public static StateTransferGenerator getStateTransferGenerator(CacheSPI cache)
Gets the StateTransferGenerator able to handle the given cache instance.

Parameters:
cache - the cache
Returns:
the StateTransferGenerator
Throws:
IllegalStateException - if the cache's ReplicationVersion is < 2.0.0

getStateTransferIntegrator

public static StateTransferIntegrator getStateTransferIntegrator(ObjectInputStream in,
                                                                 Fqn fqn,
                                                                 CacheSPI cache)
                                                          throws Exception
Throws:
Exception


Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.