|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StateTransferManager
This interface handles requests to generate or integrate state from neighbouring caches in a cluster.
This has existed prior to 3.0.0 as a concrete class. An interface was introduced in 3.0.0 to provide more flexibility in state transfer implementations.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 integrated
Exception
- In event of error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |