Examples of sync()


Examples of org.osgi.service.prefs.Preferences.sync()

            try {
                Preferences prefs = preferences.getUserPreferences("AdminServiceState");
                sshPort = prefs.getInt("port", defaultPortStart + 1);
                prefs.putInt("port", sshPort + 1);
                prefs.flush();
                prefs.sync();
            } catch (Exception e) {
                try {
                    ServerSocket ss = new ServerSocket(0);
                    sshPort = ss.getLocalPort();
                    ss.close();
View Full Code Here

Examples of org.rocksdb.WriteOptions.sync()

    writeOptions.setDisableWAL(true);
    assertThat(writeOptions.disableWAL()).isTrue();
    writeOptions.setDisableWAL(false);
    assertThat(writeOptions.disableWAL()).isFalse();
    writeOptions.setSync(true);
    assertThat(writeOptions.sync()).isTrue();
    writeOptions.setSync(false);
    assertThat(writeOptions.sync()).isFalse();
  }
}
View Full Code Here

Examples of org.syncany.tests.util.TestClient.sync()

    // Run
   
    // Prepare, create file at A, sync it to B
    clientA.createNewFile("A-file1");
    clientA.sync();   
    clientB.sync();
       
    // Now move file, and sync
    clientA.moveFile("A-file1", "A-file-moved1");
    clientA.up();
   
View Full Code Here

Examples of org.w3c.jigsaw.http.Logger.sync()

    if (alive && getFlushConfiguration() )
        server.checkpoint();
    if (alive && getFlushLog()) {
        Logger logger = ((httpd)getServer()).getLogger();
        if ( logger != null)
      logger.sync();
    }
      }
  } catch (Exception ex) {
      String msg = ("exception while running \""+
        ex.getMessage() + "\". Stopped.");
View Full Code Here

Examples of redis.clients.jedis.Pipeline.sync()

  pipeline.hgetAll(key2);
  pipeline.hgetAll(key3);
  pipeline.get(key4);

  Response<List<Object>> response = pipeline.exec();
  pipeline.sync();

  List<Object> result = response.get();

  assertEquals(4, result.size());
View Full Code Here

Examples of redis.clients.jedis.ShardedJedisPipeline.sync()

  Response<Map<String, String>> hgetAll = p.hgetAll("hash");
  p.sadd("set", "foo");
  Response<Set<String>> smembers = p.smembers("set");
  Response<Set<Tuple>> zrangeWithScores = p.zrangeWithScores("zset", 0,
    -1);
  p.sync();

  assertEquals("foo", string.get());
  assertEquals(Long.valueOf(1), del.get());
  assertNull(emptyString.get());
  assertEquals("foo", list.get());
View Full Code Here

Examples of ucar.nc2.NetcdfFile.sync()

          System.out.println(" rename fails on "+ f.getPath());
        break;
      }
    }

    ncfile.sync();
    check(ncfile, 18);

    ncfile.close();   
  }
View Full Code Here

Examples of vazkii.botania.common.block.tile.TileEnchanter.sync()

    if(enchanter.itemToEnchant == null) {
      if(stackEnchantable) {
        enchanter.itemToEnchant = stack.copy();
        par5EntityPlayer.inventory.setInventorySlotContents(par5EntityPlayer.inventory.currentItem, null);
        enchanter.sync();
      }
    } else if(enchanter.stage == 0) {
      if(par5EntityPlayer.inventory.addItemStackToInventory(enchanter.itemToEnchant.copy())) {
        enchanter.itemToEnchant = null;
        enchanter.sync();
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.