Package org.xtreemfs.babudb.replication.service.ReplicationStage

Examples of org.xtreemfs.babudb.replication.service.ReplicationStage.ConnectionLostException


        DBFileMetaDataSet result = null;
        try {
            result = rp.get()
        } catch (ErrorCodeException e) {
            // connection is lost
            throw new ConnectionLostException(e.getMessage(), e.getCode());
        } catch (Exception e) {
            // failure on transmission --> retry
            throw new ConnectionLostException(e.getMessage(), ErrorCode.UNKNOWN);
        }
       
        // switch log file by triggering a manual checkpoint,
        // if the response was empty
        if (result.size() == 0) {
View Full Code Here


                throw new InterruptedException("Replication was interrupted" +
                    " after executing a replicaOperation.");
            }
        } catch (ErrorCodeException e) {
            // server-side error
            throw new ConnectionLostException(e.getCode());
        } catch (IOException ioe) {
            // failure on transmission (connection lost or request timed out)
            throw new ConnectionLostException(ioe.getMessage(), ErrorCode.BUSY);
        } catch (LogEntryException lee) {
            // decoding failed --> retry with new range
            Logging.logError(Logging.LEVEL_WARN, this, lee);
            finish();
        } catch (BabuDBException be) {
View Full Code Here

TOP

Related Classes of org.xtreemfs.babudb.replication.service.ReplicationStage.ConnectionLostException

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.