public class PendingCacheViewChanges extends Object
Constructor and Description |
---|
PendingCacheViewChanges(String cacheName) |
Modifier and Type | Method and Description |
---|---|
Set<Address> |
computeMissingJoiners(Collection<Address> newMembers) |
CacheView |
createPendingView(CacheView committedView)
Called on the coordinator to create the view that will be prepared next.
|
int |
getLastViewId() |
Set<Address> |
getLeavers() |
int |
getRollbackViewId()
Called on the coordinator before a rollback to assign a unique view id to the rollback.
|
boolean |
hasChanges() |
boolean |
isViewInstallationInProgress() |
void |
recoveredViews(Collection<Address> newMembers,
Collection<Address> recoveredJoiners)
Signal a merge
|
void |
requestJoin(Address joiner)
Signal a join
|
Set<Address> |
requestLeave(Collection<Address> leavers)
Signal a leave.
|
void |
resetChanges(CacheView committedView) |
void |
updateLatestViewId(int viewId)
If we recovered a view after a merge or coordinator change we need to make sure the next view id is greater
than any view id that was already committed.
|
public PendingCacheViewChanges(String cacheName)
public CacheView createPendingView(CacheView committedView)
prepareView
will have no effect.public int getRollbackViewId()
public boolean hasChanges()
public void resetChanges(CacheView committedView)
public void requestJoin(Address joiner)
public Set<Address> requestLeave(Collection<Address> leavers)
public void recoveredViews(Collection<Address> newMembers, Collection<Address> recoveredJoiners)
public void updateLatestViewId(int viewId)
public Set<Address> getLeavers()
resetChanges
callpublic Set<Address> computeMissingJoiners(Collection<Address> newMembers)
joiners
collection but not in the newMembers
collection.public boolean isViewInstallationInProgress()
createPendingView
has been called without a pair resetChanges
public int getLastViewId()
updateLatestViewId
.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.