Examples of OPlaceholder


Examples of com.orientechnologies.orient.core.db.record.OPlaceholder

           throw (ONeedRetryException) masterResult;
         else if (masterResult instanceof Throwable)
           throw new ODistributedException("Error on execution distributed CREATE_RECORD", (Throwable) masterResult);

         // COPY THE CLUSTER POS -> RID
         final OPlaceholder masterPlaceholder = (OPlaceholder) masterResult;
         iRecordId.copyFrom(masterPlaceholder.getIdentity());

         return new OStorageOperationResult<OPhysicalPosition>(new OPhysicalPosition(masterPlaceholder.getIdentity()
             .getClusterPosition(), masterPlaceholder.getRecordVersion()));
       }

       final OStorageOperationResult<OPhysicalPosition> localResult = wrapped.createRecord(iRecordId, iContent, iRecordVersion,
           iRecordType, iMode, iCallback);
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.OPlaceholder

         final OAbstractRecordReplicatedTask task = tasks.get(i);

         if (task instanceof OCreateRecordTask) {
           // SEND RID + VERSION
           final OCreateRecordTask t = (OCreateRecordTask) task;
           results.set(i, new OPlaceholder(task.getRid(), task.getVersion()));
         } else if (task instanceof OUpdateRecordTask) {
           // SEND VERSION ONLY
           final OUpdateRecordTask t = (OUpdateRecordTask) task;
           results.set(i, task.getVersion());
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.OPlaceholder

     ODistributedServerLog.debug(this, iManager.getLocalNodeName(), getNodeSource(), DIRECTION.IN,
         "+-> assigned new rid %s/%s v.%d", database.getName(), rid.toString(), record.getVersion());

     // TODO: IMPROVE TRANSPORT BY AVOIDING THE RECORD CONTENT, BUT JUST RID + VERSION
     return new OPlaceholder(record);
   }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.OPlaceholder

   public ODeleteRecordTask getFixTask(final ODistributedRequest iRequest, final Object iBadResponse, final Object iGoodResponse) {
     if (iBadResponse instanceof Throwable)
       return null;

     // TODO: NO ROLLBACK, PUT THE NODE AS OFFLINE
     final OPlaceholder badResult = (OPlaceholder) iBadResponse;

     return new ODeleteRecordTask(new ORecordId(badResult.getIdentity()), badResult.getRecordVersion()).setDelayed(false);
   }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.OPlaceholder

   @Override
   public ODeleteRecordTask getUndoTask(final ODistributedRequest iRequest, final Object iBadResponse) {
     if (iBadResponse instanceof Throwable)
       return null;

     final OPlaceholder badResult = (OPlaceholder) iBadResponse;
     return new ODeleteRecordTask(new ORecordId(badResult.getIdentity()), badResult.getRecordVersion()).setDelayed(false);
   }
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.