Examples of PropertyStoreException


Examples of com.linkedin.helix.store.PropertyStoreException

      }
    }
    catch (Exception e)
    {
      LOG.error("Exception in subscribeForPropertyChange(" + prefix + ")", e);
      throw (new PropertyStoreException(e.toString()));
    }
  }
View Full Code Here

Examples of com.linkedin.helix.store.PropertyStoreException

    {
      if (!_zkClient.exists(path))
      {
        if (!createIfAbsent)
        {
          throw new PropertyStoreException("Can't update " + key
              + " since no node exists");
        }
        else
        {
          _zkClient.createPersistent(path, true);
        }
      }

      _zkClient.updateDataSerialized(path, new ByteArrayUpdater(updater, _serializer));
    }
    catch (Exception e)
    {
      LOG.error("Exception in updatePropertyUntilSucceed(" + key + ", " + createIfAbsent
          + ")", e);
      throw (new PropertyStoreException(e.toString()));
    }

    // update cache
    // getProperty(key);
  }
View Full Code Here

Examples of com.linkedin.helix.store.PropertyStoreException

public class TestPropertyStoreException
{
  @Test (groups = {"unitTest"})
  public void testPropertyStoreException()
  {
    PropertyStoreException exception = new PropertyStoreException("msg");
    AssertJUnit.assertEquals(exception.getMessage(), "msg");
   
    exception = new PropertyStoreException();
    AssertJUnit.assertNull(exception.getMessage());
  }
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.