Return-Path: X-Original-To: apmail-reef-dev-archive@minotaur.apache.org Delivered-To: apmail-reef-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1A523188D1 for ; Mon, 11 Apr 2016 01:38:26 +0000 (UTC) Received: (qmail 8674 invoked by uid 500); 11 Apr 2016 01:38:25 -0000 Delivered-To: apmail-reef-dev-archive@reef.apache.org Received: (qmail 8641 invoked by uid 500); 11 Apr 2016 01:38:25 -0000 Mailing-List: contact dev-help@reef.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@reef.apache.org Delivered-To: mailing list dev@reef.apache.org Received: (qmail 8625 invoked by uid 99); 11 Apr 2016 01:38:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2016 01:38:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 79D952C14E1 for ; Mon, 11 Apr 2016 01:38:25 +0000 (UTC) Date: Mon, 11 Apr 2016 01:38:25 +0000 (UTC) From: "Anupam (JIRA)" To: dev@reef.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (REEF-1281) REEF.NET uses RuntimeClock instead of IClock MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/REEF-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15234399#comment-15234399 ] Anupam commented on REEF-1281: ------------------------------ Removing the usage from {{Evaluator}} would need a breaking change in {{IClock}} interface as far as I can tell. Not sure why these things were made public in {{RuntimeClock}} and not added to {{IClock}}. Anyone has insight? > REEF.NET uses RuntimeClock instead of IClock > -------------------------------------------- > > Key: REEF-1281 > URL: https://issues.apache.org/jira/browse/REEF-1281 > Project: REEF > Issue Type: Bug > Components: REEF.NET > Reporter: Markus Weimer > Assignee: Anupam > Priority: Minor > > The REEF.NET code is currently using the {{RuntimeClock}} type directly instead of {{IClock}}. This defeats the purpose of having the interface in the first place: When writing tests for e.g. timeouts, it is very convenient to supply a clock that runs faster than real time. > We should refactor all uses of {{RuntimeClock}} in the code base and use the interface {{IClock}} wherever possible. -- This message was sent by Atlassian JIRA (v6.3.4#6332)