Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaspar De Groot2010-10-26 07:27:48 +0000
committerCaspar De Groot2010-10-26 07:27:48 +0000
commit2bd6aba65752a8b92086fdff38a75dfa2487f690 (patch)
treee0fe8f2aef4a2bd412481952c812259b64feac95 /plugins/org.eclipse.emf.cdo.examples/src
parentf96f93c502dc02eb5dbd13130055363ba792a93a (diff)
downloadcdo-2bd6aba65752a8b92086fdff38a75dfa2487f690.tar.gz
cdo-2bd6aba65752a8b92086fdff38a75dfa2487f690.tar.xz
cdo-2bd6aba65752a8b92086fdff38a75dfa2487f690.zip
[278181] 278181 Enabling reconnects to enhance fault tolerance
https://bugs.eclipse.org/bugs/show_bug.cgi?id=278181
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples/src')
-rw-r--r--plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailoverExample.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailoverExample.java b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailoverExample.java
index 1dbfdc1d70..148b9bdf96 100644
--- a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailoverExample.java
+++ b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailoverExample.java
@@ -20,7 +20,7 @@ import org.eclipse.emf.cdo.examples.company.Customer;
import org.eclipse.emf.cdo.net4j.CDONet4jUtil;
import org.eclipse.emf.cdo.net4j.CDOSession;
import org.eclipse.emf.cdo.net4j.CDOSessionConfiguration;
-import org.eclipse.emf.cdo.net4j.CDOSessionFailoverEvent;
+import org.eclipse.emf.cdo.net4j.CDOSessionRecoveryEvent;
import org.eclipse.emf.cdo.server.CDOServerUtil;
import org.eclipse.emf.cdo.server.IRepository;
import org.eclipse.emf.cdo.server.IRepositorySynchronizer;
@@ -564,12 +564,12 @@ public abstract class FailoverExample
{
public void notifyEvent(IEvent event)
{
- if (event instanceof CDOSessionFailoverEvent)
+ if (event instanceof CDOSessionRecoveryEvent)
{
- CDOSessionFailoverEvent e = (CDOSessionFailoverEvent)event;
+ CDOSessionRecoveryEvent e = (CDOSessionRecoveryEvent)event;
System.out.println("Failover " + e.getType() + ": " + e.getSource().getRepositoryInfo());
- if (e.getType() == CDOSessionFailoverEvent.Type.FINISHED)
+ if (e.getType() == CDOSessionRecoveryEvent.Type.FINISHED)
{
// Let's see if the TX in the failed-over session is usable:
//

Back to the top