Revision: 3478
http://bigdata.svn.sourceforge.net/bigdata/?rev=3478&view=rev
Author: martyncutcher
Date: 2010-09-01 14:22:39 +0000 (Wed, 01 Sep 2010)
Log Message:
-----------
Support for CommitRecord linked delete blocks
Added Paths:
-----------
branches/JOURNAL_HA_BRANCH/bigdata/src/java/com/bigdata/journal/DeleteBlockCommitter.java
Added: branches/JOURNAL_HA_BRANCH/bigdata/src/java/com/bigdata/journal/DeleteBlockCommitter.java
===================================================================
--- branches/JOURNAL_HA_BRANCH/bigdata/src/java/com/bigdata/journal/DeleteBlockCommitter.java (rev 0)
+++ branches/JOURNAL_HA_BRANCH/bigdata/src/java/com/bigdata/journal/DeleteBlockCommitter.java 2010-09-01 14:22:39 UTC (rev 3478)
@@ -0,0 +1,45 @@
+/**
+
+Copyright (C) SYSTAP, LLC 2006-2010. All rights reserved.
+
+Contact:
+ SYSTAP, LLC
+ 4501 Tower Road
+ Greensboro, NC 27410
+ lic...@bi...
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; version 2 of the License.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+package com.bigdata.journal;
+
+/**
+ * Defines the callback object called on commit that enables the deferred
+ * delete blocks to be associated with a CommitRecord.
+ *
+ * @author Martyn Cutcher
+ *
+ */
+public class DeleteBlockCommitter implements ICommitter {
+
+ private RWStrategy m_strategy;
+
+ public DeleteBlockCommitter(RWStrategy strategy) {
+ m_strategy = strategy;
+ }
+ public long handleCommit(long commitTime) {
+ return m_strategy.saveDeleteBlocks();
+ }
+
+}
Property changes on: branches/JOURNAL_HA_BRANCH/bigdata/src/java/com/bigdata/journal/DeleteBlockCommitter.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:keywords
+ Id Date Revision Author HeadURL
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|