コード例 #1
0
 private void initOtherId() {
   VM vm = getOtherVm();
   vm.invoke(
       new CacheSerializableRunnable("Connect") {
         public void run2() throws CacheException {
           getCache();
         }
       });
   this.otherId = (DistributedMember) vm.invoke(ProxyDUnitTest.class, "getVMDistributedMember");
 }
コード例 #2
0
 private void doCreateOtherVm() {
   VM vm = getOtherVm();
   vm.invoke(
       new CacheSerializableRunnable("create root") {
         public void run2() throws CacheException {
           AttributesFactory af = new AttributesFactory();
           af.setDataPolicy(DataPolicy.REPLICATE);
           af.setScope(Scope.DISTRIBUTED_ACK);
           createRootRegion("ProxyDUnitTest", af.create());
         }
       });
 }