public class DefaultStateTransferGenerator extends Object implements StateTransferGenerator
| Modifier and Type | Field and Description |
|---|---|
static short |
STATE_TRANSFER_VERSION |
| Constructor and Description |
|---|
DefaultStateTransferGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
delimitStream(ObjectOutputStream out)
Places a delimiter marker on the stream
|
protected void |
generateNodeDataList(InternalNode<?,?> node,
List<NodeData> list) |
void |
generateState(ObjectOutputStream out,
Object rootNode,
boolean generateTransient,
boolean generatePersistent,
boolean suppressErrors) |
void |
inject(CacheSPI cache,
RPCManager rpcManager,
Configuration configuration,
TransactionLog txLog) |
protected void |
marshallTransientState(InternalNode node,
ObjectOutputStream out)
Do a preorder traversal: visit the node first, then the node's children
|
public void inject(CacheSPI cache, RPCManager rpcManager, Configuration configuration, TransactionLog txLog)
public void generateState(ObjectOutputStream out, Object rootNode, boolean generateTransient, boolean generatePersistent, boolean suppressErrors) throws Exception
generateState in interface StateTransferGeneratorExceptionprotected void delimitStream(ObjectOutputStream out) throws Exception
out - streamIOException - if there are errsExceptionprotected void marshallTransientState(InternalNode node, ObjectOutputStream out) throws Exception
out - Exceptionprotected void generateNodeDataList(InternalNode<?,?> node, List<NodeData> list) throws Exception
ExceptionCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.