Package com.sun.sgs.service

Examples of com.sun.sgs.service.UnknownIdentityException


        try {
            transactionScheduler.runTask(stask, taskOwner);
        } catch (Exception e) {
            logger.logThrow(Level.WARNING, e,
                                "Setting status for {0} failed", identity);
            throw new UnknownIdentityException("id: " + identity, e);
        }

        if (stask.canRemove()) {
            int tryCount = 0;
            while (tryCount < MAX_RETRY) {
View Full Code Here


                node = watchdogService.getNode(idmo.getNodeId());
                if (node == null) {
                    // The identity is on a failed node, where the node has
                    // been removed from the data store but the identity hasn't
                    // yet.
                    throw new UnknownIdentityException("id: " + identity);
                }
                Node old = idcache.put(identity, node);
                assert (old == null);
                return node;
      } catch (NameNotBoundException e) {
                throw new UnknownIdentityException("id: " + identity);
      } catch (ObjectNotFoundException e1) {
                throw new UnknownIdentityException("id: " + identity);
            }
        } 
View Full Code Here

        try {
            transactionScheduler.runTask(stask, taskOwner);
        } catch (Exception e) {
            logger.logThrow(Level.WARNING, e,
                                "Setting status for {0} failed", identity);
            throw new UnknownIdentityException("id: " + identity, e);
        }

        if (stask.canRemove()) {
            callServer(
                new Callable<Void>() {
View Full Code Here

    /** {@inheritDoc} */
    public void setStatus(Class service, Identity identity,
                          boolean active) throws UnknownIdentityException {
        if (! nodeMap.containsKey(identity))
            throw new UnknownIdentityException("Identity not mapped: " +
                                               identity.getName());

        if (! activeIdentities.containsKey(service))
            activeIdentities.putIfAbsent(service, new HashSet<Identity>());
        HashSet<Identity> set = activeIdentities.get(service);
View Full Code Here

    /** {@inheritDoc} */
    public Node getNode(Identity identity) throws UnknownIdentityException {
        Node node = nodeMap.get(identity);
        if (node == null)
            throw new UnknownIdentityException("Identity not mapped: " +
                                               identity.getName());
        return node;
    }
View Full Code Here

                node = watchdogService.getNode(idmo.getNodeId());
                if (node == null) {
                    // The identity is on a failed node, where the node has
                    // been removed from the data store but the identity hasn't
                    // yet.
                    throw new UnknownIdentityException("id: " + identity);
                }
                Node old = idcache.put(identity, node);
                assert (old == null);
                return node;
      } catch (NameNotBoundException e) {
                throw new UnknownIdentityException("id: " + identity);
      } catch (ObjectNotFoundException e1) {
                throw new UnknownIdentityException("id: " + identity);
            }
        } 
View Full Code Here

        try {
            transactionScheduler.runTask(stask, taskOwner);
        } catch (Exception e) {
            logger.logThrow(Level.WARNING, e,
                                "Setting status for {0} failed", identity);
            throw new UnknownIdentityException("id: " + identity, e);
        }

        if (stask.canRemove()) {
            callServer(
                new Callable<Void>() {
View Full Code Here

                node = watchdogService.getNode(idmo.getNodeId());
                if (node == null) {
                    // The identity is on a failed node, where the node has
                    // been removed from the data store but the identity hasn't
                    // yet.
                    throw new UnknownIdentityException("id: " + identity);
                }
                Node old = idcache.put(identity, node);
                assert (old == null);
                return node;
      } catch (NameNotBoundException e) {
                throw new UnknownIdentityException("id: " + identity);
      } catch (ObjectNotFoundException e1) {
                throw new UnknownIdentityException("id: " + identity);
            }
        } 
View Full Code Here

TOP

Related Classes of com.sun.sgs.service.UnknownIdentityException

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.