Package com.linkedin.helix.store

Examples of com.linkedin.helix.store.PropertyStat


  }

  @Override
  public T get(String path, Stat stat, int options)
  {
    PropertyStat propertyStat = new PropertyStat();
    try
    {
      T value = _store.getProperty(path, propertyStat);
      if (stat != null)
      {
        stat.setVersion(propertyStat.getVersion());
        stat.setMtime(propertyStat.getLastModifiedTime());
      }
      return value;
    }
    catch (PropertyStoreException e)
    {
View Full Code Here


public class TestPropertyStat
{
  @Test (groups = {"unitTest"})
  public void testPropertyStat()
  {
    PropertyStat stat = new PropertyStat(0, 0);
    AssertJUnit.assertEquals(0, stat.getLastModifiedTime());
    AssertJUnit.assertEquals(0, stat.getVersion());
  }
View Full Code Here

TOP

Related Classes of com.linkedin.helix.store.PropertyStat

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.