Package com.hazelcast.core

Examples of com.hazelcast.core.DistributedObject


                if (!nodeEngine.isActive()) {
                    throw new HazelcastInstanceNotActiveException();
                }
                DistributedObjectFuture proxyFuture = new DistributedObjectFuture();
                if (proxies.putIfAbsent(name, proxyFuture) == null) {
                    DistributedObject proxy;
                    try {
                        proxy = service.createDistributedObject(name);
                        if (initialize && proxy instanceof InitializingObject) {
                            try {
                                ((InitializingObject) proxy).initialize();
View Full Code Here


        }

        void destroyProxy(String name, boolean publishEvent) {
            final DistributedObjectFuture proxyFuture = proxies.remove(name);
            if (proxyFuture != null) {
                DistributedObject proxy;
                try {
                    proxy = proxyFuture.get();
                } catch (Throwable t) {
                    logger.warning("Cannot destroy proxy [" + serviceName + ":" + name
                            + "], since it's creation is failed with "
View Full Code Here

        void destroy() {
            for (DistributedObjectFuture future : proxies.values()) {
                if (!future.isSet()) {
                    continue;
                }
                DistributedObject distributedObject = future.get();
                if (distributedObject instanceof AbstractDistributedObject) {
                    ((AbstractDistributedObject) distributedObject).invalidate();
                }
            }
            proxies.clear();
View Full Code Here

                            proxyService.registryConstructor);

                    try {
                        DistributedObjectFuture future = registry.createProxy(proxy.objectName, false, false);
                        if (future != null) {
                            final DistributedObject object = future.get();
                            if (object instanceof InitializingObject) {
                                nodeEngine.getExecutionService().execute(ExecutionService.SYSTEM_EXECUTOR, new Runnable() {
                                    public void run() {
                                        try {
                                            ((InitializingObject) object).initialize();
View Full Code Here

TOP

Related Classes of com.hazelcast.core.DistributedObject

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.