@Override public void processResult(CuratorFramework client, CuratorEvent event) throws Exception { applyNewData(fullPath, event.getResultCode(), event.getStat(), null); } };
@Override public void processResult(CuratorFramework client, CuratorEvent event) throws Exception { if ( event.getResultCode() == KeeperException.Code.NONODE.intValue() ) { // previous node is gone - reset reset(); } } };
@Override public void processResult(CuratorFramework client, CuratorEvent event) throws Exception { if ( event.getResultCode() == KeeperException.Code.OK.intValue() ) { ourPath = event.getName(); getChildren(); } else { log.error("getChildren() failed. rc = " + event.getResultCode()); } } };
@Override public void processResult(CuratorFramework client, CuratorEvent event) throws Exception { if ( event.getResultCode() == KeeperException.Code.OK.intValue() ) { checkLeadership(event.getChildren()); } } };
@Override public void processResult(CuratorFramework client, CuratorEvent event) throws Exception { applyNewData(fullPath, event.getResultCode(), event.getStat(), event.getData()); } };
do if ( RetryLoop.shouldRetry(event.getResultCode()) ) KeeperException.Code code = KeeperException.Code.get(event.getResultCode()); Exception e = null; try e = new Exception("Unknown result code: " + event.getResultCode());
if ( event.getResultCode() == KeeperException.Code.OK.intValue() ) if ( event.getResultCode() == KeeperException.Code.NONODE.intValue() ) else if ( event.getResultCode() == KeeperException.Code.OK.intValue() )