Package net.jini.core.lookup

Examples of net.jini.core.lookup.ServiceID


    {
  if (obj == null || ctx == null) {
      throw new NullPointerException();
  }
  RemoteMethodControl inputServer;
  ServiceID inputRegistrarID;
  if (obj instanceof ConstrainableRegistrarProxy) {
      RegistrarProxy proxy = (RegistrarProxy) obj;
      inputServer = (RemoteMethodControl) proxy.server;
      inputRegistrarID = proxy.registrarID;
  } else if (obj instanceof ConstrainableAdminProxy) {
View Full Code Here


     */
    private void readObject(ObjectInputStream in)
  throws IOException, ClassNotFoundException
    {
  in.defaultReadObject();
  registrarID = new ServiceID(in);
  if (!(server instanceof RemoteMethodControl)) {
      throw new InvalidObjectException(
    "server does not implement RemoteMethodControl");
  } else if (!(server instanceof TrustEquivalence)) {
      throw new InvalidObjectException(
View Full Code Here

     */
    private void readObject(ObjectInputStream in)
  throws IOException, ClassNotFoundException
    {
  in.defaultReadObject();
  registrarID = new ServiceID(in);
  if (server == null) {
      throw new InvalidObjectException("null server");
  }
    }
View Full Code Here

     */
    private void readObject(ObjectInputStream in)
  throws IOException, ClassNotFoundException
    {
  in.defaultReadObject();
  registrarID = new ServiceID(in);
  if (server == null) {
      throw new InvalidObjectException("null server");
  } else if (leaseID == null) {
      throw new InvalidObjectException("null leaseID");
  }
View Full Code Here

     */
    private void readObject(ObjectInputStream in)
  throws IOException, ClassNotFoundException
    {
  in.defaultReadObject();
  serviceID = new ServiceID(in);
    }
View Full Code Here

     */
    private void readObject(ObjectInputStream in)
  throws IOException, ClassNotFoundException
    {
  in.defaultReadObject();
  servID = new ServiceID(in);
  if (item instanceof Item)
      item = ((Item)item).get();
    }
View Full Code Here

        if (initLogger.isLoggable(Level.FINEST)) {
            initLogger.log(Level.FINEST, "Discovery manager is: {0}",
      lookupDiscMgr);
  }   

        ServiceID lookupID = new ServiceID(
      serviceID.getMostSignificantBits(),
      serviceID.getLeastSignificantBits());

  if (initLogger.isLoggable(Level.FINEST)) {
            initLogger.log(Level.FINEST, "Creating JoinManager.");
View Full Code Here

        }
        long leastSig = 0;
        for (int i = 8; i < 16; i++) {
            leastSig = (leastSig << 8) | (secRandBuf16[i] & 0xff);
        }
        return new ServiceID(mostSig, leastSig);
    }//end newServiceID
View Full Code Here

    }

    /** Creates a new service ID. */
    protected static ServiceID createServiceID() {
  Uuid uuid = UuidFactory.generate();
  return new ServiceID(
      uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());
    }
View Full Code Here

     * of an item.
     */
    private void generateEvents(Item pre, Item post, long now) {
  if (inRecovery)
      return;
  ServiceID sid = (pre != null) ? pre.serviceID : post.serviceID;
  Object val = subEventByService.get(sid);
  if (val instanceof EventReg) {
      generateEvent((EventReg)val, pre, post, sid, now);
  } else if (val != null) {
      EventReg[] regs = (EventReg[])val;
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.