Package net.jini.id

Examples of net.jini.id.Uuid


  for (int i=0; i<tmpls.length; i++) {
      tmpls[i] = setupTmpl(tmpls[i]);
  }

  final Uuid cookie = UuidFactory.generate();
  final long eventID = nextID();
  final long now = System.currentTimeMillis();

  final AvailabilityRegistrationWatcher reg;
  if (txn == null) {
View Full Code Here


    if (txn.getState() != ACTIVE)
        throw throwNewCannotJoinException();
      }
  }

  final Uuid uuid = UuidFactory.generate();
  final ContentsQuery contentsQuery = new ContentsQuery(uuid, tmpls,
                    txn, limit);
  final EntryRep[] reps = contentsQuery.nextBatch(null,
         System.currentTimeMillis());
View Full Code Here

    if (txn.getState() != ACTIVE)
        throw throwNewCannotJoinException();
      }
  }

  final Uuid uuid = UuidFactory.generate();
  iterations.put(uuid, new IteratorImpl(tmpl, txn));
  return uuid;
    }
View Full Code Here

  }
    }

    /** Generate a new service ID */
    private ServiceID newServiceID() {
  Uuid uuid = serviceIdGenerator.generate();
  return new ServiceID(
      uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());
    }
View Full Code Here

  }
  if (obj == null || ctx == null) {
      throw new NullPointerException("Arguments must not be null");
  }
  RemoteMethodControl otherServerProxy;
  Uuid inputProxyID = null;
  if (obj instanceof TxnMgrProxy.ConstrainableTxnMgrProxy) {
      otherServerProxy = (RemoteMethodControl)
    ((TxnMgrProxy)obj).backend;
      inputProxyID = ((ReferentUuid)obj).getReferentUuid();
  } else if (obj instanceof ConstrainableLandlordLease) {
View Full Code Here

    if (allowDGC) {
        if (!referencedSet.isEmpty()) {
      for (Iterator i = referencedSet.iterator();
           i.hasNext();)
      {
          Uuid clientID = (Uuid) i.next();
          unregisterTarget(this, clientID);
      }
      referencedSet.clear();
        }
        sequenceTable.clear();
View Full Code Here

      }
  }

  void put(Target target) throws ExportException {
      synchronized (idTable) {
    Uuid id = target.getObjectIdentifier();
    if (id.equals(Jeri.DGC_ID)) {
        throw new ExportException(
      "object identifier reserved for DGC");
    }
    if (idTable.containsKey(id)) {
        throw new ExportException(
View Full Code Here

  }

  void remove(Target target, boolean gc) {
      boolean empty = false;
      synchronized (idTable) {
    Uuid id = target.getObjectIdentifier();
    assert idTable.get(id) == target;
    idTable.remove(id);
    if (target.getEnableDGC()) {
        dgcEnabledCount--;
        assert dgcEnabledCount >= 0;
View Full Code Here

  }

  public void dispatch(InboundRequest request) {
      try {
    InputStream in = request.getRequestInputStream();
    Uuid id = UuidFactory.read(in);

    if (logger.isLoggable(Level.FINEST)) {
        logger.log(Level.FINEST, "id={0}", id);
    }

    try {
        /*
         * The DGC object identifier is hardwired here,
         * rather than install it in idTable; this
         * eliminates the need to worry about not counting
         * the DGC server as an exported object in the
         * table, and it doesn't need all of the machinery
         * that Target provides.
         */
        if (id.equals(Jeri.DGC_ID)) {
      dispatchDgcRequest(request);
      return;
        }

        Target target = (Target) get(id);
View Full Code Here

      int m=0;
      while (m<leaseData.length) {
    final long duration = leaseData[m++];
    final long high = leaseData[m++];
    final long low = leaseData[m++];
    final Uuid uuid = UuidFactory.create(high, low);
    rslt.add(newLease(uuid, duration));
      }
  } catch (ArrayIndexOutOfBoundsException e) {
      throw new
    AssertionError("space.write<multiple> returned malformed data");
View Full Code Here

TOP

Related Classes of net.jini.id.Uuid

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.