Package com.sun.jini.landlord

Examples of com.sun.jini.landlord.FixedLeasePeriodPolicy


        }
  // Create lease policy -- used by recovery logic, below??
        txnLeasePeriodPolicy = (LeasePeriodPolicy)Config.getNonNullEntry(
            config, TxnManager.MAHALO, "leasePeriodPolicy",
      LeasePeriodPolicy.class,
            new FixedLeasePeriodPolicy(3 * HOURS, 1 * HOURS));
        if(initLogger.isLoggable(Level.CONFIG)) {
      initLogger.log(Level.CONFIG, "leasePeriodPolicy is: {0}",
                txnLeasePeriodPolicy);
  }   
 
View Full Code Here


 
 
        // Create lease policy -- used by recovery logic, below
        leasePolicy = (LeasePeriodPolicy) Config.getNonNullEntry(config,
      MERCURY, "leasePeriodPolicy", LeasePeriodPolicy.class,
            new FixedLeasePeriodPolicy(3 * HOURS, 1 * HOURS));
        if (initLogger.isLoggable(Level.CONFIG)) {
            initLogger.log(Level.CONFIG, "LeasePeriodPolicy is: {0}",
      leasePolicy);
 
     
View Full Code Here

  // Create lease policy objects
  entryLeasePolicy = (LeasePeriodPolicy)Config.getNonNullEntry(
      config, COMPONENT_NAME, "entryLeasePeriodPolicy",
            LeasePeriodPolicy.class,
      new FixedLeasePeriodPolicy(Long.MAX_VALUE, 1 * DAYS));

  eventLeasePolicy = (LeasePeriodPolicy)Config.getNonNullEntry(
      config, COMPONENT_NAME, "eventLeasePeriodPolicy",
      LeasePeriodPolicy.class,
      new FixedLeasePeriodPolicy(1 * HOURS, 1 * HOURS));

  contentsLeasePolicy = (LeasePeriodPolicy)Config.getNonNullEntry(
      config, COMPONENT_NAME, "contentsLeasePeriodPolicy",
      LeasePeriodPolicy.class,
      new FixedLeasePeriodPolicy(1 * HOURS, 1 * HOURS));

  nextLimit = Config.getIntEntry(config, COMPONENT_NAME,
            "iteratorBatchSize", 100, 1, Integer.MAX_VALUE);

  takeLimit = Config.getIntEntry(config, COMPONENT_NAME,
View Full Code Here

 
 
        // Create lease policy -- used by recovery logic, below
        leasePolicy = (LeasePeriodPolicy) Config.getNonNullEntry(config,
      MERCURY, "leasePeriodPolicy", LeasePeriodPolicy.class,
            new FixedLeasePeriodPolicy(3 * HOURS, 1 * HOURS));
        if (initLogger.isLoggable(Level.CONFIG)) {
            initLogger.log(Level.CONFIG, "LeasePeriodPolicy is: {0}",
      leasePolicy);
 
     
View Full Code Here

  // Create lease policy objects
  entryLeasePolicy = (LeasePeriodPolicy)Config.getNonNullEntry(
      config, COMPONENT_NAME, "entryLeasePeriodPolicy",
            LeasePeriodPolicy.class,
      new FixedLeasePeriodPolicy(Long.MAX_VALUE, 1 * DAYS));

  eventLeasePolicy = (LeasePeriodPolicy)Config.getNonNullEntry(
      config, COMPONENT_NAME, "eventLeasePeriodPolicy",
      LeasePeriodPolicy.class,
      new FixedLeasePeriodPolicy(1 * HOURS, 1 * HOURS));

  contentsLeasePolicy = (LeasePeriodPolicy)Config.getNonNullEntry(
      config, COMPONENT_NAME, "contentsLeasePeriodPolicy",
      LeasePeriodPolicy.class,
      new FixedLeasePeriodPolicy(1 * HOURS, 1 * HOURS));

  nextLimit = Config.getIntEntry(config, COMPONENT_NAME,
            "iteratorBatchSize", 100, 1, Integer.MAX_VALUE);

  takeLimit = Config.getIntEntry(config, COMPONENT_NAME,
View Full Code Here

        }
  // Create lease policy -- used by recovery logic, below??
        txnLeasePeriodPolicy = (LeasePeriodPolicy)Config.getNonNullEntry(
            config, TxnManager.MAHALO, "leasePeriodPolicy",
      LeasePeriodPolicy.class,
            new FixedLeasePeriodPolicy(3 * HOURS, 1 * HOURS));
        if(initLogger.isLoggable(Level.CONFIG)) {
      initLogger.log(Level.CONFIG, "leasePeriodPolicy is: {0}",
                txnLeasePeriodPolicy);
  }   
 
View Full Code Here

 
 
        // Create lease policy -- used by recovery logic, below
        leasePolicy = (LeasePeriodPolicy) Config.getNonNullEntry(config,
      MERCURY, "leasePeriodPolicy", LeasePeriodPolicy.class,
            new FixedLeasePeriodPolicy(3 * HOURS, 1 * HOURS));
        if (initLogger.isLoggable(Level.CONFIG)) {
            initLogger.log(Level.CONFIG, "LeasePeriodPolicy is: {0}",
      leasePolicy);
 
     
View Full Code Here

    config, NORM, "recoveredLocatorPreparer", ProxyPreparer.class,
    new BasicProxyPreparer());
  }
  setLeasePolicy = (LeasePeriodPolicy) Config.getNonNullEntry(
      config, NORM, "leasePolicy", LeasePeriodPolicy.class,
      new FixedLeasePeriodPolicy(
    2 * 60 * 60 * 1000 /* max */, 60 * 60 * 1000 /* default */));
  isolateSets = ((Boolean) config.getEntry(
      NORM, "isolateSets", boolean.class, Boolean.FALSE)).booleanValue();
  try {
      lrm = (LeaseRenewalManager) Config.getNonNullEntry(
View Full Code Here

        }
  // Create lease policy -- used by recovery logic, below??
        txnLeasePeriodPolicy = (LeasePeriodPolicy)Config.getNonNullEntry(
            config, TxnManager.MAHALO, "leasePeriodPolicy",
      LeasePeriodPolicy.class,
            new FixedLeasePeriodPolicy(3 * HOURS, 1 * HOURS));
        if(initLogger.isLoggable(Level.CONFIG)) {
      initLogger.log(Level.CONFIG, "leasePeriodPolicy is: {0}",
                txnLeasePeriodPolicy);
  }   
 
View Full Code Here

        // Export server instance and get its reference
        serverStub = (TestGenerator)exporter.export(this);
  generatorUuid = UuidFactory.generate();
  leaseFactory = new LeaseFactory((Landlord) serverStub, generatorUuid);
        generatorLeasePolicy =
            new FixedLeasePeriodPolicy(
                20 * MINUTES,     // Maximum lease is 2 minutes
                1 * MINUTES      // Default lease is 1 hour
            );
 
    }
View Full Code Here

TOP

Related Classes of com.sun.jini.landlord.FixedLeasePeriodPolicy

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.