You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by jl...@apache.org on 2017/06/20 14:47:11 UTC
tez git commit: TEZ-3693. ControlledClock is not used. Contributed by
Muhammad Samir Khan
Repository: tez
Updated Branches:
refs/heads/master 92e86f909 -> a925c833e
TEZ-3693. ControlledClock is not used. Contributed by Muhammad Samir Khan
Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/a925c833
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/a925c833
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/a925c833
Branch: refs/heads/master
Commit: a925c833e16766ccfee169b52e6c3f03b9126086
Parents: 92e86f9
Author: Jason Lowe <jl...@yahoo-inc.com>
Authored: Tue Jun 20 09:45:01 2017 -0500
Committer: Jason Lowe <jl...@yahoo-inc.com>
Committed: Tue Jun 20 09:45:01 2017 -0500
----------------------------------------------------------------------
.../org/apache/tez/dag/app/ControlledClock.java | 43 --------------------
1 file changed, 43 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tez/blob/a925c833/tez-dag/src/main/java/org/apache/tez/dag/app/ControlledClock.java
----------------------------------------------------------------------
diff --git a/tez-dag/src/main/java/org/apache/tez/dag/app/ControlledClock.java b/tez-dag/src/main/java/org/apache/tez/dag/app/ControlledClock.java
deleted file mode 100644
index 01f6d9a..0000000
--- a/tez-dag/src/main/java/org/apache/tez/dag/app/ControlledClock.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/**
-* Licensed to the Apache Software Foundation (ASF) under one
-* or more contributor license agreements. See the NOTICE file
-* distributed with this work for additional information
-* regarding copyright ownership. The ASF licenses this file
-* to you under the Apache License, Version 2.0 (the
-* "License"); you may not use this file except in compliance
-* with the License. You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.tez.dag.app;
-
-import org.apache.hadoop.yarn.util.Clock;
-
-public class ControlledClock implements Clock {
- private long time = -1;
- private final Clock actualClock;
- public ControlledClock(Clock actualClock) {
- this.actualClock = actualClock;
- }
- public synchronized void setTime(long time) {
- this.time = time;
- }
- public synchronized void reset() {
- time = -1;
- }
-
- @Override
- public synchronized long getTime() {
- if (time != -1) {
- return time;
- }
- return actualClock.getTime();
- }
-
-}