Package org.sdnplatform.sync.error

Examples of org.sdnplatform.sync.error.RemoteStoreException


            synchronized (futureNotify) {
                while (futureMap.size() > MAX_PENDING_REQUESTS) {
                    try {
                        futureNotify.wait();
                    } catch (InterruptedException e) {
                        throw new RemoteStoreException("Could not send request",
                                                       e);
                    }
                }
            }
        }
View Full Code Here


    }

    protected void channelDisconnected(SyncException why) {
        ready = false;
        connectionGeneration += 1;
        if (why == null) why = new RemoteStoreException("Channel disconnected");
        for (RemoteSyncFuture f : futureMap.values()) {
            if (f.getConnectionGeneration() < connectionGeneration)
                dispatchReply(f.getXid(),
                              new SyncReply(null, null, false, why, 0));
        }
View Full Code Here

        Future<SyncReply> future =
                sendRequest(header.getTransactionId(), bsm);
        try {
            future.get(5, TimeUnit.SECONDS);
        } catch (TimeoutException e) {
            throw new RemoteStoreException("Timed out on operation", e);
        } catch (Exception e) {
            throw new RemoteStoreException("Error while waiting for reply", e);
        }       
    }
View Full Code Here

            Future<SyncReply> future =
                    syncManager.sendRequest(xid, bsm);
            reply = future.get(5, TimeUnit.SECONDS);
           
        } catch (TimeoutException e) {
            throw new RemoteStoreException("Timed out on operation", e);
        } catch (Exception e) {
            throw new RemoteStoreException("Error while waiting for reply", e);
        }

        if (reply.getError() != null)
            throw reply.getError();
View Full Code Here

TOP

Related Classes of org.sdnplatform.sync.error.RemoteStoreException

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.