Пример #1
0
 void DoDeltaAD_C1_1()
 {
   DeltaTestAD val = new DeltaTestAD();
   IRegion<object, object> reg = CacheHelper.GetRegion<object, object>("DistRegionAck");
   reg.GetSubscriptionService().RegisterAllKeys();
   Util.Log("clientAD1 put");
   reg[1] = val;
   Util.Log("clientAD1 put done");
 }
Пример #2
0
    void DoDeltaAD_C1_afterC2Put()
    {
      Thread.Sleep(15000);
      DeltaTestAD val = null;
      IRegion<object, object> reg = CacheHelper.GetRegion<object, object>("DistRegionAck");
      Util.Log("client fetching entry from local cache");
      val = (DeltaTestAD)reg.GetEntry(1).Value;
      Assert.IsNotNull(val);
      Assert.AreEqual(3, val.DeltaUpdate);
      Util.Log("done");

      System.Threading.Thread.Sleep(5000);
      //Assert.Greater(javaobject.PdxDelta.GotDelta, 7, "this should have recieve delta");
      javaobject.PdxDelta pd = (javaobject.PdxDelta)(reg.GetLocalView()["pdxdelta"]);
      Assert.Greater(pd.Delta, 7, "this should have recieve delta");
    }
        void DoDeltaAD_C2_1()
        {
            IRegion <object, object> reg = CacheHelper.GetRegion <object, object>("DistRegionAck");

            Util.Log("clientAD2 get");
            DeltaTestAD val = (DeltaTestAD)reg[1];

            Assert.AreEqual(2, val.DeltaUpdate);
            Util.Log("clientAD2 get done");
            reg[1] = val;
            Util.Log("clientAD2 put done");

            javaobject.PdxDelta pd = new javaobject.PdxDelta(1001);
            for (int i = 0; i < 10; i++)
            {
                reg["pdxdelta"] = pd;
            }
        }