aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/scala/spark/storage/DelegateBlockFetchTracker.scala
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/scala/spark/storage/DelegateBlockFetchTracker.scala')
-rw-r--r--core/src/main/scala/spark/storage/DelegateBlockFetchTracker.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/src/main/scala/spark/storage/DelegateBlockFetchTracker.scala b/core/src/main/scala/spark/storage/DelegateBlockFetchTracker.scala
new file mode 100644
index 0000000000..f6c28dce52
--- /dev/null
+++ b/core/src/main/scala/spark/storage/DelegateBlockFetchTracker.scala
@@ -0,0 +1,12 @@
+package spark.storage
+
+private[spark] trait DelegateBlockFetchTracker extends BlockFetchTracker {
+ var delegate : BlockFetchTracker = _
+ def setDelegate(d: BlockFetchTracker) {delegate = d}
+ def totalBlocks = delegate.totalBlocks
+ def numLocalBlocks = delegate.numLocalBlocks
+ def numRemoteBlocks = delegate.numRemoteBlocks
+ def remoteFetchTime = delegate.remoteFetchTime
+ def fetchWaitTime = delegate.fetchWaitTime
+ def remoteBytesRead = delegate.remoteBytesRead
+}