Package com.orientechnologies.orient.server.distributed.task

Examples of com.orientechnologies.orient.server.distributed.task.OReadRecordTask


       if (nodes.contains(dManager.getLocalNodeName()) && dbCfg.getReadQuorum(clusterName) <= 1)
         // LOCAL NODE OWNS THE DATA AND READ-QUORUM = 1: GET IT LOCALLY BECAUSE IT'S FASTER
         return wrapped.readRecord(iRecordId, iFetchPlan, iIgnoreCache, iCallback, loadTombstones, LOCKING_STRATEGY.DEFAULT);

       // DISTRIBUTE IT
       final Object result = dManager.sendRequest(getName(), Collections.singleton(clusterName), nodes, new OReadRecordTask(
           iRecordId), EXECUTION_MODE.RESPONSE);

       if (result instanceof ONeedRetryException)
         throw (ONeedRetryException) result;
       else if (result instanceof Throwable)
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.server.distributed.task.OReadRecordTask

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.