@Deprecated public class LegacyStateTransferManager extends DefaultStateTransferManager
| Modifier and Type | Field and Description |
|---|---|
protected LockManager |
lockManager
Deprecated.
|
cache, configuration, generator, integrator, marshaller, PARTIAL_STATE_DELIMITER, regionManager, stateRetrievalTimeout, STREAMING_DELIMITER_NODE, trace| Constructor and Description |
|---|
LegacyStateTransferManager()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
acquireLocksForStateTransfer(NodeSPI root,
long timeout,
boolean force)
Deprecated.
|
void |
checkLoaders()
Deprecated.
|
void |
getState(ObjectOutputStream out,
Fqn fqn,
long timeout,
boolean force,
boolean suppressErrors)
Deprecated.
Writes the state for the portion of the tree named by
fqn to
the provided OutputStream. |
void |
injectLockManager(LockManager lockManager)
Deprecated.
|
protected void |
releaseStateTransferLocks(NodeSPI root)
Deprecated.
|
protected void |
setState(ObjectInputStream state,
NodeSPI targetRoot)
Deprecated.
Set the portion of the cache rooted in
targetRoot
to match the given state. |
injectDependencies, setState, startprotected LockManager lockManager
public void injectLockManager(LockManager lockManager)
public void checkLoaders()
public void getState(ObjectOutputStream out, Fqn fqn, long timeout, boolean force, boolean suppressErrors) throws Exception
StateTransferManagerfqn to
the provided OutputStream.
getState in interface StateTransferManagergetState in class DefaultStateTransferManagerout - stream to write state tofqn - Fqn indicating the uppermost node in the
portion of the tree whose state should be returned.timeout - max number of millis this method should wait to acquire
any locks, if necessary, on the nodes being transferredforce - if locks are needed and cannot be acquired after
timeout millis, should the lock acquisition
be forced, and any existing transactions holding locks
on the nodes be rolled back?suppressErrors - if true, all exceptions are logged but not propagated.Exception - in event of errorprotected void setState(ObjectInputStream state, NodeSPI targetRoot) throws Exception
targetRoot
to match the given state. Updates the contents of targetRoot
to reflect those in new_state.
NOTE: This method performs no locking of nodes; it
is up to the caller to lock targetRoot before calling
this method.setState in class DefaultStateTransferManagerstate - a serialized byte[][] array where element 0 is the
transient state (or null) , and element 1 is the
persistent state (or null)targetRoot - node into which the state should be integratedExceptionprotected void acquireLocksForStateTransfer(NodeSPI root, long timeout, boolean force) throws InterruptedException
InterruptedExceptionprotected void releaseStateTransferLocks(NodeSPI root)
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.