Examples of SyncRuntimeException


Examples of org.sdnplatform.sync.error.SyncRuntimeException

                    List<Versioned<byte[]>> vlist = getVersionedList(rs);
                    hasNextSet = false;
                    return new Pair<ByteArray,
                                    List<Versioned<byte[]>>>(key, vlist);
                } catch (Exception e) {
                    throw new SyncRuntimeException("Error in DB Iterator",
                                                   new PersistException(e));
                }
            } else {
                throw new NoSuchElementException();
            }
View Full Code Here

Examples of org.sdnplatform.sync.error.SyncRuntimeException

            Entry<ByteArray, List<Versioned<byte[]>>> n = delegate.next();
            try {
                return new Pair<K, List<Versioned<V>>>(getKeyObject(n.getKey()),
                                        convertValues(n.getValue()));
            } catch (SyncException e) {
                throw new SyncRuntimeException("Failed to construct next value",
                                               e);
            }
        }
View Full Code Here

Examples of org.sdnplatform.sync.error.SyncRuntimeException

    public void registerStore(String storeName, Scope scope) {
        try {
            storeRegistry.register(storeName, scope, false);
        } catch (PersistException e) {
            // not possible
            throw new SyncRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.sdnplatform.sync.error.SyncRuntimeException

                try {
                    Thread.sleep(1000);
                } catch (Exception e) {}
            }
            if (channel == null)
                throw new SyncRuntimeException(new SyncException("Failed to establish connection"));
        }
    }
View Full Code Here

Examples of org.sdnplatform.sync.error.SyncRuntimeException

            SyncReply reply;
            try {
                reply = getReply(crm.getHeader().getTransactionId(),
                                 bsm);
            } catch (SyncException e) {
                throw new SyncRuntimeException(e);
            }
            this.cursorId = reply.getIntValue();
            if (reply.getKeyedValues() != null)
                currentChunk = reply.getKeyedValues().iterator();
        }
View Full Code Here

Examples of org.sdnplatform.sync.error.SyncRuntimeException

            bsm.setCursorRequest(crm);
            try {
                getReply(crm.getHeader().getTransactionId(),
                         bsm);
            } catch (SyncException e) {
                throw new SyncRuntimeException(e);
            }
        }
View Full Code Here

Examples of org.sdnplatform.sync.error.SyncRuntimeException

            SyncReply reply;
            try {
                reply = getReply(crm.getHeader().getTransactionId(),
                                              bsm);
            } catch (SyncException e) {
                throw new SyncRuntimeException(e);
            }
            if (reply.getKeyedValues() == null ||
                reply.getKeyedValues().size() == 0) return null;

            return reply.getKeyedValues().iterator();
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.