org.jboss.cache.statetransfer
Class StateTransferFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateTransferFactory
public StateTransferFactory()
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.