Package nexj.core.rpc.file.ra.tx

Examples of nexj.core.rpc.file.ra.tx.FileJournalRecordIncomingMove


                  //Cannot commit: unable to create processed directory/subdirectory for file.
                  return false;
               }
            }

            journal.addRecord(new FileJournalRecordIncomingMove(xid,
               info.getStageOneFile().getAbsolutePath(),
               info.getStageTwoFile().getAbsolutePath(),
               info.getStageOneLockableFile())
            );
         }
View Full Code Here


                  if (bRecovery)
                  {
                     throw new XAException(XAException.XA_HEURRB);
                  }
                 
                  FileJournalRecordIncomingMove incomingMove = (FileJournalRecordIncomingMove)opRecord;
                  String sProcessedName = incomingMove.getDestinationFilePath();
                  File processedFile = new File(sProcessedName);
                  LockableFile incoming = incomingMove.getSourceFileHandle();
                 
                  assert incoming != null;
                 
                  incoming.copyToFile(processedFile);
                  incoming.truncate();
View Full Code Here

TOP

Related Classes of nexj.core.rpc.file.ra.tx.FileJournalRecordIncomingMove

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.