View Javadoc

1   /*
2    * (C) Copyright 2006-2008 Nuxeo SAS (http://nuxeo.com/) and contributors.
3    *
4    * All rights reserved. This program and the accompanying materials
5    * are made available under the terms of the GNU Lesser General Public License
6    * (LGPL) version 2.1 which accompanies this distribution, and is available at
7    * http://www.gnu.org/licenses/lgpl.html
8    *
9    * This library is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12   * Lesser General Public License for more details.
13   *
14   * Contributors:
15   *     bstefanescu
16   *
17   * $Id$
18   */
19  
20  package org.nuxeo.ecm.core.api.operation;
21  
22  /**
23   * A progress monitor is notified by a command avout the command progress
24   *
25   * @author <a href="mailto:[email protected]">Bogdan Stefanescu</a>
26   *
27   */
28  public interface ProgressMonitor {
29  
30      void started(Operation<?> cmd);
31  
32      void done(Operation<?> cmd, int percent);
33  
34      void terminated(Operation<?> cmd);
35  
36  }