Package net.jini.space

Examples of net.jini.space.InternalSpaceException


    throw (RuntimeException)t;

      if (t instanceof Error)
    throw (Error)t;

      throw new InternalSpaceException(
          "Query threw unexpected exception", t);     
  }

  // Before returning nothing, make sure all pending removal
  // have been logged.
View Full Code Here


      return null;

  Txn txn;
  if((recoveredTxns == null) ||
     ((txn = (Txn)recoveredTxns.get(txnId)) == null))
      throw new InternalSpaceException("recover of write/take with " +
               "unknown txnId" );
  return txn;
    }
View Full Code Here

      } else if (op instanceof PendingTxn.TakeOp) {
    space.recoverTake(
        ByteArrayWrapper.toUuid(((PendingTxn.TakeOp)op).cookie),
        new Long(id));
      } else {
    throw new InternalSpaceException("unknown operation type: " +
             op.getClass().getName());
      }
  }
  return true;
    }
View Full Code Here

    // They never got the null
    return null;

      assertOpen();
      if (id != null && lastId == null) {
    throw logAndThrow(new InternalSpaceException("First call to " +
            "RemoteIter.next() should have id == null"),
         iteratorLogger);
      }

      // Did the client get the result of the last call?
View Full Code Here

        }
    }

    if (!found) {
        throw logAndThrow(
       new InternalSpaceException("Asked to delete entry " +
           "not returned by last nextReps() call"),
       iteratorLogger);
    }

    cancel(id);
View Full Code Here

    /**
     * This should never happen since we always return
     * <code>NOTCHANGED</code> from <code>prepare</code>.
     */
    public void commit(TransactableMgr mgr, OutriggerServerImpl space) {
  throw new InternalSpaceException("committing a blocking query");
        
    }
View Full Code Here

    /**
     * This should never happen since we always return
     * <code>NOTCHANGED</code> from <code>prepare</code>.
     */
    public void commit(TransactableMgr mgr, OutriggerServerImpl space) {
  throw new InternalSpaceException("committing a blocking query");
        
    }
View Full Code Here

    /**
     * This should never happen since we always return
     * <code>NOTCHANGED</code> from <code>prepare</code>.
     */
    public void commit(TransactableMgr mgr, OutriggerServerImpl space) {
  throw new InternalSpaceException
      ("committing a TransactableRegistrationWatcher");
        
    }
View Full Code Here

      resource.setExpiration(r.expiration);
  } catch (LeaseDeniedException e) {
      // This should never happen, we should not be using a
      // policy or a factory that could thrown LeaseDenied on lease
      // creation, re-throw as InternalSpaceException
      throw logAndThrow(new
    InternalSpaceException("OutriggerServerImpl:" + policyName +
        ".grant threw LeaseDeniedException", e),
    opsLogger);
  }
View Full Code Here

    throw (RuntimeException)t;

      if (t instanceof Error)
    throw (Error)t;

      throw new InternalSpaceException(
          "Query threw unexpected exception", t);     
  }

  /* Before returning nothing, make sure all pending removals
   * that we conflicted with have been logged.
View Full Code Here

TOP

Related Classes of net.jini.space.InternalSpaceException

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.