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 37EA8200B81 for ; Tue, 30 Aug 2016 01:50:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 36588160AC9; Mon, 29 Aug 2016 23:50: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 889E9160AB8 for ; Tue, 30 Aug 2016 01:50:22 +0200 (CEST) Received: (qmail 79161 invoked by uid 500); 29 Aug 2016 23:50:21 -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 78980 invoked by uid 99); 29 Aug 2016 23:50:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2016 23:50:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 41D972C014C for ; Mon, 29 Aug 2016 23:50:21 +0000 (UTC) Date: Mon, 29 Aug 2016 23:50:21 +0000 (UTC) From: "Dhruv Mahajan (JIRA)" To: dev@reef.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (REEF-1404) IMRU task state Maintenance and Preservation in Evaluator for fault tolerant MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 29 Aug 2016 23:50:23 -0000 [ https://issues.apache.org/jira/browse/REEF-1404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15447461#comment-15447461 ] Dhruv Mahajan commented on REEF-1404: ------------------------------------- [~markus.weimer]. How about something like this as user facing interface. It is assumed that user adds {{IStreamingCodec}} as part of task configuration. {code} /// /// State Maneger interface visible to the user. /// /// Type of state object. public interface IStateManager { /// /// Adds state object to the manager for a given iteration. Only one object /// can be set per iteration. The old one will be replaced if called again with /// the same iteration number. /// /// Iteration number in IMRU /// State value void AddState(int iteration, T stateObject); /// /// Remove the state logged at iteration. /// /// Iteration for which state should be removed. void RemoveState(int iteration); /// /// Gets state at particular iteration. /// /// Iteration number /// The latest state. T GetState(int iteration); /// /// Gets the latest state as well as iteration number. /// /// Last iteration number /// The latest state. T GetLatestState(out int iteration); } {code} > IMRU task state Maintenance and Preservation in Evaluator for fault tolerant > ---------------------------------------------------------------------------- > > Key: REEF-1404 > URL: https://issues.apache.org/jira/browse/REEF-1404 > Project: REEF > Issue Type: Task > Reporter: Julia > Labels: FT > > IMRU task should be able to > * Maintenance and preservation the state > * When restart, able to recover from the previous sate -- This message was sent by Atlassian JIRA (v6.3.4#6332)