Examples of renew()


Examples of net.jini.core.lease.Lease.renew()

        mrl.renew(DURATION);
  checkLease(mrl, DURATION);

  shutdown(0);

        mrl.renew(DURATION);
  checkLease(mrl, DURATION);

  logger.log(Level.INFO, "Cancelling registration lease");
  mrl.cancel();
    }
View Full Code Here

Examples of net.jini.core.lease.Lease.renew()

      }
      // try to renew until lease is expired.
      boolean canBeRenewed = true;
      while (canBeRenewed) {
    try {
        lease.renew(duration);
        renewalException = null;
        canBeRenewed = false;
        lastLeaseRenewed = lease;
        logger.log(Level.FINE, "Successfully renewed for " + duration +
                   " milliseconds.");
View Full Code Here

Examples of net.jini.core.lease.Lease.renew()

        logger.log(Level.INFO, "Writing matching entry");
        writeEntry(txn, notifyEntry);

        // Force a renew op
        logger.log(Level.INFO, "Renewing registration lease");
        lease.renew(Lease.FOREVER);

        // Busy wait until we are sure the notification happened
        logger.log(Level.INFO, "Waiting for notification of first write");

        while (listener.getNotifyCount(reg) == 0) {
View Full Code Here

Examples of net.jini.core.lease.Lease.renew()

        for(int i=0;i<leaseList.size();i++) {
            Lease srvcLease = (Lease)(leaseList.get(i));
            logger.log(Level.FINE, "service lease["+i+"] changed to expire "
                              +"within "+(newLeaseDur/1000)+" second(s) -- "
                              +"simulates a down service");
            srvcLease.renew(newLeaseDur);
        }//end loop
        /* Remove all leases so we don't try to cancel them during shutdown. */
        leaseList.clear();
    }//end shortenLeases

View Full Code Here

Examples of net.jini.core.lease.Lease.renew()

    }

    // deal with renewing the lease
    if (renewalsLeft.get() > 0) {
        logger.log(Level.INFO, "Renewing set lease");
        eventLease.renew(setLeaseLength);
        setLeaseCurrentExpiration = eventLease.getExpiration();

        if (renewalsLeft.get() == 1) {
      synchronized (this) {
          setExpiration = eventLease.getExpiration();
View Full Code Here

Examples of org.apache.cxf.endpoint.EndpointResolverRegistry.renew()

        EndpointReferenceType renewed = null;
        if (bus != null) {
            EndpointResolverRegistry registry =
                bus.getExtension(EndpointResolverRegistry.class);
            if (registry != null) {
                renewed = registry.renew(logical, physical);
            }
        }
        return renewed != null ? renewed : physical;
    }
View Full Code Here

Examples of org.apache.cxf.endpoint.EndpointResolverRegistry.renew()

        EndpointReferenceType renewed = null;
        if (bus != null) {
            EndpointResolverRegistry registry =
                bus.getExtension(EndpointResolverRegistry.class);
            if (registry != null) {
                renewed = registry.renew(logical, physical);
            }
        }
        return renewed != null ? renewed : physical;
    }
View Full Code Here

Examples of org.apache.cxf.endpoint.EndpointResolverRegistry.renew()

        EndpointReferenceType renewed = null;
        if (bus != null) {
            EndpointResolverRegistry registry =
                bus.getExtension(EndpointResolverRegistry.class);
            if (registry != null) {
                renewed = registry.renew(logical, physical);
            }
        }
        return renewed != null ? renewed : physical;
    }
View Full Code Here

Examples of org.apache.cxf.endpoint.EndpointResolverRegistry.renew()

        EndpointReferenceType renewed = null;
        if (bus != null) {
            EndpointResolverRegistry registry =
                bus.getExtension(EndpointResolverRegistry.class);
            if (registry != null) {
                renewed = registry.renew(logical, physical);
            }
        }
        return renewed != null ? renewed : physical;
    }
View Full Code Here

Examples of org.apache.cxf.endpoint.EndpointResolverRegistry.renew()

        EndpointReferenceType renewed = null;
        if (bus != null) {
            EndpointResolverRegistry registry =
                bus.getExtension(EndpointResolverRegistry.class);
            if (registry != null) {
                renewed = registry.renew(logical, physical);
            }
        }
        return renewed != null ? renewed : physical;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.