public class RemoteCacheRestore extends Object implements ICacheRestore
When there is an error the monitor kicks off. The Failover runner starts looks for a manager with a connection to a remote cache that is not in error. If a manager's connection to a remote cache is found to be in error, the restorer kicks off and tries to reconnect. When it is successful, the status of the manager changes.
When the failover runner finds that the primary is in good shape, it will switch back. Switching back involves setting the first no wait on the no wait facade.
Constructor and Description |
---|
RemoteCacheRestore(RemoteCacheManager rcm)
Constructs with the given instance of RemoteCacheManager.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canFix()
Returns true if the connection to the remote host for the corresponding cache manager can be
successfully re-established.
|
void |
fix()
Fixes up all the caches managed by the associated cache manager.
|
public RemoteCacheRestore(RemoteCacheManager rcm)
rcm
- public boolean canFix()
canFix
in interface ICacheRestore
public void fix()
fix
in interface ICacheRestore
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.