Package org.projectodd.polyglot.core

Examples of org.projectodd.polyglot.core.ServiceSynchronizationManager


                final ServiceName finalGlobalName = globalName;

                Runnable wait = new Runnable() {
                    @Override
                    public void run() {
                        ServiceSynchronizationManager mgr = ServiceSynchronizationManager.INSTANCE;

                        if (!mgr.waitForServiceRemove(serviceName,
                                                      DestinationUtils.destinationWaitTimeout())) {
                            log.warn("Timed out waiting for " + name + " pointer to stop.");
                        }

                        if (mgr.hasService(finalGlobalName) &&
                                !mgr.hasDependents(finalGlobalName)) {
                            if (!mgr.waitForServiceDown(finalGlobalName,
                                                        DestinationUtils.destinationWaitTimeout())) {
                                log.warn("Timed out waiting for " + name + " to stop.");
                            }

                        }
View Full Code Here

TOP

Related Classes of org.projectodd.polyglot.core.ServiceSynchronizationManager

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.