Examples of createLeaseRenewalSet()


Examples of net.jini.lease.LeaseRenewalService.createLeaseRenewalSet()

  set01 = prepareSet(set01);
  lrm.renewFor(prepareLease(set01.getRenewalSetLease()), renewSetDur, null);
 
  logger.log(Level.FINE, "Creating the lease renewal set with duration" +
        " of " + renewSetDur + " milliseconds");
  LeaseRenewalSet set02 = lrs.createLeaseRenewalSet(renewSetDur);
  set02 = prepareSet(set02);
  lrm.renewFor(prepareLease(set02.getRenewalSetLease()), renewSetDur, null);

  logger.log(Level.FINE, "Creating the lease renewal set with duration" +
        " of " + renewSetDur + " milliseconds");
View Full Code Here

Examples of net.jini.lease.LeaseRenewalService.createLeaseRenewalSet()

  set02 = prepareSet(set02);
  lrm.renewFor(prepareLease(set02.getRenewalSetLease()), renewSetDur, null);

  logger.log(Level.FINE, "Creating the lease renewal set with duration" +
        " of " + renewSetDur + " milliseconds");
  LeaseRenewalSet set03 = lrs.createLeaseRenewalSet(renewSetDur);
  set03 = prepareSet(set03);
  lrm.renewFor(prepareLease(set03.getRenewalSetLease()), renewSetDur, null);
 
  // register the listener to receive expiration events
  logger.log(Level.FINE, "Registering listener to receive " +
View Full Code Here

Examples of net.jini.lease.LeaseRenewalService.createLeaseRenewalSet()

  // create all required renewal sets
  long renewSetDur = Lease.FOREVER;
  for (int i = 0; i < NUMBER_OF_RENEWAL_SETS; ++i) {
      logger.log(Level.FINE, "Creating renewal set #" + i +
            " with lease duration of Lease.FOREVER.");
      renewalSet[i] = prepareSet(lrs.createLeaseRenewalSet(renewSetDur));
      lrm.renewFor(prepareLease(renewalSet[i].getRenewalSetLease()), renewSetDur,
       null);
  }

  // create all required RemoteListeners
View Full Code Here

Examples of net.jini.lease.LeaseRenewalService.createLeaseRenewalSet()

  // IllegalArgumentException should be thrown with arg of -99
  logger.log(Level.FINE, "Creating the lease renewal set with " +
             "-99 duration.");
  try {
      LeaseRenewalService lrs = getLRS();
      LeaseRenewalSet set = lrs.createLeaseRenewalSet(-99);
      set = prepareSet(set);
      String message = "IllegalArgumentException expected from\n";
      message += "createLeaseRenewalSet(-99)";
      throw new TestException(message);
  } catch (IllegalArgumentException ex) {
View Full Code Here

Examples of net.jini.lease.LeaseRenewalService.createLeaseRenewalSet()

  // No exception thrown for Lease.ANY argument
  logger.log(Level.FINE, "Creating the lease renewal set with " +
             "Lease.ANY duration.");
  try {
      LeaseRenewalService lrs = getLRS();
      LeaseRenewalSet set = lrs.createLeaseRenewalSet(Lease.ANY);
      set = prepareSet(set);
      // we passed so just continue
      logger.log(Level.FINE, "Caught no exceptions as expected.");
  } catch (IllegalArgumentException ex) {
      String message = "IllegalArgumentException caught from\n";
View Full Code Here

Examples of net.jini.lease.LeaseRenewalService.createLeaseRenewalSet()

  // No exception thrown for Lease.FOREVER argument
  logger.log(Level.FINE, "Creating the lease renewal set with " +
        "Lease.FOREVER duration.");
  try {
      LeaseRenewalService lrs = getLRS();
      LeaseRenewalSet set = lrs.createLeaseRenewalSet(Lease.FOREVER);
      set = prepareSet(set);
      // we passed so just continue
      logger.log(Level.FINE, "Caught no exceptions as expected.");
  } catch (IllegalArgumentException ex) {
      String message = "IllegalArgumentException caught from\n";
View Full Code Here

Examples of net.jini.lease.LeaseRenewalService.createLeaseRenewalSet()

  // No exception thrown for argument value of 0
  logger.log(Level.FINE, "Creating the lease renewal set with " +
        "0 duration.");
  try {
      LeaseRenewalService lrs = getLRS();
      LeaseRenewalSet set = lrs.createLeaseRenewalSet(0);
      set = prepareSet(set);
      // we passed so just continue
      logger.log(Level.FINE, "Caught no exceptions as expected.");
  } catch (IllegalArgumentException ex) {
      String message = "IllegalArgumentException caught from\n";
View Full Code Here

Examples of net.jini.lease.LeaseRenewalService.createLeaseRenewalSet()

  // No exception thrown for argument value of 1
  logger.log(Level.FINE, "Creating the lease renewal set with " +
        "1 duration.");
  try {
      LeaseRenewalService lrs = getLRS();
      LeaseRenewalSet set = lrs.createLeaseRenewalSet(1);
      set = prepareSet(set);
      // we passed so just continue
      logger.log(Level.FINE, "Caught no exceptions as expected.");
  } catch (IllegalArgumentException ex) {
      String message = "IllegalArgumentException caught from\n";
View Full Code Here

Examples of net.jini.lease.LeaseRenewalService.createLeaseRenewalSet()

  // get a lease renewal set w/ duration for as long as we can
  logger.log(Level.FINE, "Creating the lease renewal set with duration" +
        " of Lease.FOREVER");
  LeaseRenewalService lrs = getLRS();
  LeaseRenewalSet set = lrs.createLeaseRenewalSet(Lease.FOREVER);
  set = prepareSet(set);
 
  // register listener #1 to receive events
  logger.log(Level.FINE, "Registering listener #1 for renewal failure" +
        " events.");
View Full Code Here

Examples of net.jini.lease.LeaseRenewalService.createLeaseRenewalSet()

  // get the service for test
  LeaseRenewalService lrs = getLRS();

  // create a lease renewal set
  LeaseRenewalSet set = lrs.createLeaseRenewalSet(renewSetDur);
  set = prepareSet(set);

  // create a handback object
  MarshalledObject handback = new MarshalledObject(new Integer(99));
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.