public interface StateTransferManager
Modifier and Type | Method and Description |
---|---|
void |
getState(ObjectOutputStream out,
Fqn fqn,
long timeout,
boolean force,
boolean suppressErrors)
Writes the state for the portion of the tree named by
fqn to
the provided OutputStream. |
void |
setState(ObjectInputStream in,
Fqn targetRoot)
Set the portion of the cache rooted in
targetRoot
to match the given state. |
void getState(ObjectOutputStream out, Fqn fqn, long timeout, boolean force, boolean suppressErrors) throws Exception
fqn
to
the provided OutputStream.
out
- 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 errorvoid setState(ObjectInputStream in, Fqn 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.
This method will use any ClassLoader
needed as defined by the active Region
in the RegionManager
, pertaining to the targetRoot passed in.in
- an input stream containing the statetargetRoot
- fqn of the node into which the state should be integratedException
- In event of errorCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.