Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 84B88200B93 for ; Sat, 17 Sep 2016 00:35:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 83806160ADC; Fri, 16 Sep 2016 22:35:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EFF47160AC4 for ; Sat, 17 Sep 2016 00:35:22 +0200 (CEST) Received: (qmail 45910 invoked by uid 500); 16 Sep 2016 22:35:22 -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 45872 invoked by uid 99); 16 Sep 2016 22:35:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2016 22:35:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 080F42C014F for ; Fri, 16 Sep 2016 22:35:22 +0000 (UTC) Date: Fri, 16 Sep 2016 22:35:22 +0000 (UTC) From: "Mariia Mykhailova (JIRA)" To: dev@reef.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (REEF-1557) Refactor logic related to Evaluator state MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 16 Sep 2016 22:35:23 -0000 [ https://issues.apache.org/jira/browse/REEF-1557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mariia Mykhailova resolved REEF-1557. ------------------------------------- Resolution: Fixed Fix Version/s: 0.16 Resolved via [PR 1118|https://github.com/apache/reef/pull/1118] > Refactor logic related to Evaluator state > ----------------------------------------- > > Key: REEF-1557 > URL: https://issues.apache.org/jira/browse/REEF-1557 > Project: REEF > Issue Type: Sub-task > Components: REEF Driver > Reporter: Sergiy Matusevych > Assignee: Sergiy Matusevych > Priority: Minor > Labels: javadoc, refactoring > Fix For: 0.16 > > > We need to refactor the logic related to {{EvaluatorState}} and {{State}} enums. It is currently spread across several classes, and is not always consistent. Method names are clumsy, e.g. {{.isDoneOrFailedOrKilled()}}; {{EvaluatorStatusManager}} class has all its methods synchronized, although having an atomic enum reference would be enough. We also need to add more javadocs and clean up the code for readability. -- This message was sent by Atlassian JIRA (v6.3.4#6332)