Package propagation

Examples of propagation.PropagationManager


      // Output
      printStatus("Initial state", pm_);

      // Retrieve the pojo from the Server #2
      PropagationManager pm2 = (PropagationManager) cache2_.getObject("monitor");

      System.out.println("---------------------------------------------");
      System.out.println("Modified on Server #1");
       // A state has been changed in one of the item. This will be fine-grained replicated.
      pm_.stateChange("Japan.Tokyo.RainSensor1", 1003, 1041);
      printStatus("Japan.Tokyo.RainSensor1: id: 1003  state: 1040->1041 (retrieved from cache #2)", pm2);

      System.out.println("---------------------------------------------");
      System.out.println("Modified on Server #2");
      // A state has been changed in one of the item. This will be fine-grained replicated.
      pm2.stateChange("Japan.Yokohama.WindSensor2", 1001, 1041); // Modified state on cache #2
      printStatus("Japan.Yokohama.WindSensor2: id: 1001  state: 1040->1041 (retrieved from cache #1)"
              , pm2);

   }
View Full Code Here

TOP

Related Classes of propagation.PropagationManager

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.