Package com.hazelcast.core

Examples of com.hazelcast.core.HazelcastInstanceNotActiveException


            final SerializerAdapter serializer = serializerFor(obj.getClass());
            if (serializer == null) {
                if (active) {
                    throw new HazelcastSerializationException("There is no suitable serializer for " + obj.getClass());
                }
                throw new HazelcastInstanceNotActiveException();
            }
            final byte[] bytes = serializer.write(obj);
            final Data data = new Data(serializer.getTypeId(), bytes);
            if (obj instanceof Portable) {
                final Portable portable = (Portable) obj;
View Full Code Here


            final SerializerAdapter serializer = serializerFor(typeId);
            if (serializer == null) {
                if (active) {
                    throw new HazelcastSerializationException("There is no suitable de-serializer for type " + typeId);
                }
                throw new HazelcastInstanceNotActiveException();
            }
            if (typeId == SerializationConstants.CONSTANT_TYPE_PORTABLE) {
                serializationContext.registerClassDefinition(data.classDefinition);
            }
            Object obj = serializer.read(data);
View Full Code Here

            final SerializerAdapter serializer = serializerFor(obj.getClass());
            if (serializer == null) {
                if (active) {
                    throw new HazelcastSerializationException("There is no suitable serializer for " + obj.getClass());
                }
                throw new HazelcastInstanceNotActiveException();
            }
            out.writeInt(serializer.getTypeId());
            if (obj instanceof Portable) {
                final Portable portable = (Portable) obj;
                ClassDefinition classDefinition = serializationContext.lookupOrRegisterClassDefinition(portable);
View Full Code Here

            final SerializerAdapter serializer = serializerFor(typeId);
            if (serializer == null) {
                if (active) {
                    throw new HazelcastSerializationException("There is no suitable de-serializer for type " + typeId);
                }
                throw new HazelcastInstanceNotActiveException();
            }
            if (typeId == SerializationConstants.CONSTANT_TYPE_PORTABLE && in instanceof PortableContextAwareInputStream) {
                ClassDefinition classDefinition = new ClassDefinitionImpl();
                classDefinition.readData(in);
                classDefinition = serializationContext.registerClassDefinition(classDefinition);
View Full Code Here

    void shutdown() {
        logger.finest( "Stopping tasks...");
        expirationTask.cancel(true);
        expirationService.shutdown();
        final Object response = new HazelcastInstanceNotActiveException();
        final Address thisAddress = nodeEngine.getThisAddress();
        for (Queue<WaitingOp> q : mapWaitingOps.values()) {
            for (WaitingOp waitingOp : q) {
                if (waitingOp.isValid()) {
                    final Operation op = waitingOp.getOperation();
View Full Code Here

    public void terminate() {
    }

    public String addLifecycleListener(LifecycleListener lifecycleListener) {
        throw new HazelcastInstanceNotActiveException();
    }
View Full Code Here

    public String addLifecycleListener(LifecycleListener lifecycleListener) {
        throw new HazelcastInstanceNotActiveException();
    }

    public boolean removeLifecycleListener(String registrationId) {
        throw new HazelcastInstanceNotActiveException();
    }
View Full Code Here

    }

    private HazelcastClient getClient() {
        final HazelcastClient c = client;
        if (c == null || !c.getLifecycleService().isRunning()) {
            throw new HazelcastInstanceNotActiveException();
        }
        return c;
    }
View Full Code Here

            throw throwNotActiveException();
        }
    }

    protected RuntimeException throwNotActiveException() {
        throw new HazelcastInstanceNotActiveException();
    }
View Full Code Here

    }

    public final S getService() {
        final S s = service;
        if (s == null) {
            throw new HazelcastInstanceNotActiveException();
        }
        return s;
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.core.HazelcastInstanceNotActiveException

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.