|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.statetransfer.DefaultStateTransferManager
org.jboss.cache.statetransfer.LegacyStateTransferManager
@Deprecated public class LegacyStateTransferManager
This is to support legacy locking schemes such as Pessimistic and Optimistic locking.
| Field Summary | |
|---|---|
protected LockManager |
lockManager
Deprecated. |
| Fields inherited from class org.jboss.cache.statetransfer.DefaultStateTransferManager |
|---|
cache, configuration, generator, integrator, log, marshaller, PARTIAL_STATE_DELIMITER, regionManager, stateRetrievalTimeout, STREAMING_DELIMITER_NODE, trace |
| Constructor Summary | |
|---|---|
LegacyStateTransferManager()
Deprecated. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.jboss.cache.statetransfer.DefaultStateTransferManager |
|---|
injectDependencies, setState, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LockManager lockManager
| Constructor Detail |
|---|
public LegacyStateTransferManager()
| Method Detail |
|---|
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 error
protected 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 integrated
Exception
protected void acquireLocksForStateTransfer(NodeSPI root,
long timeout,
boolean force)
throws InterruptedException
InterruptedExceptionprotected void releaseStateTransferLocks(NodeSPI root)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||