Package net.jini.core.lookup

Examples of net.jini.core.lookup.ServiceID


          new Object[] { serviceLease }, e);
                throw e; //rethrow the exception since proxy may be unusable
            }
            leaseRenewalMgr.renewUntil(serviceLease, Lease.FOREVER,
                                       renewalDuration, dListener);
            ServiceID tmpID = null;
            synchronized(joinSet) {
                srvcRegistration = tmpSrvcRegistration;
                synchronized(serviceItem) {//accessing serviceItem.serviceID
                    if(serviceItem.serviceID == null) {
                        serviceItem.serviceID
View Full Code Here


     * @throws NullPointerException if <code>s</code> is
     * <code>null</code>
     **/   
    public static ServiceID createServiceID(String s) {
  Uuid uuid = UuidFactory.create(s);
  return new ServiceID(uuid.getMostSignificantBits(),
           uuid.getLeastSignificantBits());
    }
View Full Code Here

      }
      ServiceID[] ids = new ServiceID[nids];
      for (int i = 0; i < ids.length; i++) {
    long hi = buf.getLong();
    long lo = buf.getLong();
    ids[i] = new ServiceID(hi, lo);
      }

      // read lookup groups
      int ngroups = buf.getInt();
      if (ngroups < 0 || ngroups > buf.remaining() / 2) {
View Full Code Here

      // write LUS port
      buf.putInt(announcement.getPort());

      // write LUS service ID
      ServiceID id = announcement.getServiceID();
      buf.putLong(id.getMostSignificantBits());
      buf.putLong(id.getLeastSignificantBits());

      // write LUS member groups
      int ngroupsPos = buf.position();
      int ngroups = 0;
      buf.putInt(ngroups);
View Full Code Here

      int port = buf.getInt();

      // read LUS service ID
      long hi = buf.getLong();
      long lo = buf.getLong();
      ServiceID id = new ServiceID(hi, lo);

      // read LUS member groups
      int ngroups = buf.getInt();
      if (ngroups < 0 || ngroups > buf.remaining() / 2) {
    throw new DiscoveryProtocolException(
View Full Code Here

  // that the count can plausibly fit into this packet.
  if (sidCount < 0 || sidCount > bs.available() / 8)
      throw new IOException("service ID count invalid: " + sidCount);
  serviceIDs = new ServiceID[sidCount];
  for (int i = 0; i < serviceIDs.length; i++) {
      serviceIDs[i] = new ServiceID(ds);
  }
  int grpCount = ds.readInt();
  // We know that the minimal length of a string written with
  // DataOutput.writeUTF is two bytes (for the empty string), so
  // we make some attempt to see if the count can plausibly fit
View Full Code Here

      };
      try {
    joinState = new JoinState(
        normProxy, lrm, config, serviceAttributes,
        recoveredLocatorPreparer,
        new ServiceID(serverUuid.getMostSignificantBits(),
          serverUuid.getLeastSignificantBits()));
    store.addSubStore(joinState);
      } catch (StoreException e) {
    throw new InitException("Can't create JoinState", e);
      }
View Full Code Here

  if(initLogger.isLoggable(Level.FINEST)) {
      initLogger.log(Level.FINEST, "Starting JoinStateManager");
        }
  // Starting causes snapshot to occur
  joinStateManager.startManager(config, txnMgrProxy,
      new ServiceID(topUuid.getMostSignificantBits(),
                    topUuid.getLeastSignificantBits()),
            attributesFor());
     
        if (startupLogger.isLoggable(Level.INFO)) {
            startupLogger.log
View Full Code Here

                        itemReg.setDiscarded(true);
                        discardIt = true;
                    }//endif
    }//end sync(itemReg)
    if(discardIt) {
        ServiceID sid = (ServiceID)e.getKey();
        serviceDiscardTimerTaskMgr.add
                                     ( new ServiceDiscardTimerTask(sid) );
        cacheTaskMgr.add(new DiscardServiceTask(filteredItem));
        return;
    }//endif
View Full Code Here

                                                       item.service,
                                                       item.attributeSets);
            boolean pass = filter.check(filteredItem);
            /* Handle filter fail */
            if(!pass) {
                ServiceID srvcID = item.serviceID;
                ServiceItemReg itemReg = null;
                synchronized(serviceIdMap) {
                    itemReg = (ServiceItemReg)serviceIdMap.get(srvcID);
                }//end sync(serviceIdMap)
                if(itemReg != null) {
View Full Code Here

TOP

Related Classes of net.jini.core.lookup.ServiceID

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.