Package de.fu_berlin.inf.dpp.synchronize

Examples of de.fu_berlin.inf.dpp.synchronize.StartHandle


                    setPermission(user, newPermission);
                }
            });

        } else {
            StartHandle startHandle = stopManager.stop(user,
                Messages.SarosSession_performing_permission_change, progress);

            Utils.runSafeSWTSync(log, new Runnable() {
                public void run() {
                    activityCreated(new PermissionActivity(getLocalUser(),
                        user, newPermission));

                    setPermission(user, newPermission);
                }
            });

            if (!startHandle.start())
                log.error("Didn't unblock. " //$NON-NLS-1$
                    + "There still exist unstarted StartHandles."); //$NON-NLS-1$
        }
    }
View Full Code Here


             * consistency recovery.
             */
            progress.subTask("Wait for peers...");

            // find the StartHandle of the inconsistent user
            StartHandle inconsistentStartHandle = null;
            for (StartHandle startHandle : startHandles) {
                if (checksumError.getSource().equals(startHandle.getUser())) {
                    inconsistentStartHandle = startHandle;
                    break;
                }
            }
            if (inconsistentStartHandle == null) {
                log.error("Could not find the StartHandle"
                    + " of the inconsistent buddy");
            } else {
                inconsistentStartHandle.startAndAwait(progress.newChild(200));
                startHandles.remove(inconsistentStartHandle);
            }
        } finally {
            if (startHandles != null)
                for (StartHandle startHandle : startHandles)
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.synchronize.StartHandle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.