Package net.jini.space

Examples of net.jini.space.InternalSpaceException


    /**
     * 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


      } 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

      if (!allowCalls) {
    try {
        wait();
    } catch (InterruptedException e) {
        throw new
      InternalSpaceException("gate method interrupted");
    }
      }
  }
    }
View Full Code Here

     */
    private void failure(String message, Exception e) {
  String errorMsg = "Error consuming log file: " + file + ", " +
      message + "Log file consumption stopped";

  final InternalSpaceException ise =
      new InternalSpaceException(errorMsg, e);
  logger.log(Level.SEVERE, errorMsg, ise);
  throw ise;
    }
View Full Code Here

      new EntryTransition(owner, null, true, true, true));
               return (removeMgr(mgr) == 0);

      case TransactableMgr.READ:
        // Read locked entries should never get prepared.
        throw new InternalSpaceException
            ("committing a read locked entry");

    case TransactableMgr.TAKE:
        // remove calls recordTransition()
        holder.remove(owner, false);
        // Resolves a lock
        return true; // Take-locked entries only have one Txn

    default:
        throw new InternalSpaceException("unexpected state in "
      + "TxnState.commit(): " + state);
  }
    }
View Full Code Here

      case NOTCHANGED:       // no change
        i.remove();              // Won't need to call again
        continue;

      default:         // huh?
        throw new
      InternalSpaceException("prepare said " + prepState);
    }
      }

      if (changed) {
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

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.