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 StateTransferGenerator
Exception
protected void delimitStream(ObjectOutputStream out) throws Exception
out
- streamIOException
- if there are errsException
protected void marshallTransientState(InternalNode node, ObjectOutputStream out) throws Exception
out
- Exception
protected void generateNodeDataList(InternalNode<?,?> node, List<NodeData> list) throws Exception
Exception
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.