@Test public void testGetTimestamp() throws FatalChronosException, ChronosException, IOException, TException { ChronosImplement chronosImplement = createChronosImplement(new HostPort("127.0.0.1", 10086)); chronosImplement.initTimestamp(); long firstTimestamp = chronosImplement.getTimestamp(); long secondTimestamp = chronosImplement.getTimestamp(); Assert.assertTrue(firstTimestamp < secondTimestamp); chronosImplement.getChronosServerWatcher().close(); }
public long getTimestamp() throws TException { return getTimestamps(1); }
ChronosImplement implements ChronosService.Iface { public long getTimestamp() throws TException { return getTimestamps(1); } }
ChronosImplement implements ChronosService.Iface { public long getTimestamp() throws TException { return getTimestamps(1); } ChronosImplement(Properties properties, ChronosServerWatcher chronosServerWatcher); }
ChronosImplement implements ChronosService.Iface { public long getTimestamp() throws TException { return getTimestamps(1); } ChronosImplement(Properties properties, ChronosServerWatcher chronosServerWatcher); long getTimestamps(int range); long getTimestamp(); void initTimestamp(); synchronized void asyncSetPersistentTimestamp(final long newPersistentTimestamp); ChronosServerWatcher getChronosServerWatcher(); }
ChronosImplement implements ChronosService.Iface { public long getTimestamp() throws TException { return getTimestamps(1); } ChronosImplement(Properties properties, ChronosServerWatcher chronosServerWatcher); long getTimestamps(int range); long getTimestamp(); void initTimestamp(); synchronized void asyncSetPersistentTimestamp(final long newPersistentTimestamp); ChronosServerWatcher getChronosServerWatcher();  }