]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.simulation/src/org/simantics/simulation/history/HistoryImportResult.java
Added logging for history archive import failure cases
[simantics/platform.git] / bundles / org.simantics.simulation / src / org / simantics / simulation / history / HistoryImportResult.java
1 /*******************************************************************************
2  * Copyright (c) 2014 Association for Decentralized Information Management in
3  * Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     Semantum Oy - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.simulation.history;
13
14 import org.simantics.databoard.annotations.Optional;
15 import org.simantics.databoard.util.Bean;
16
17 /**
18  * A result class returned stored history import from database to disk.
19  * 
20  * @author Tuukka Lehtonen
21  * @see HistoryUtil#importHistory(org.simantics.db.Resource,
22  *      org.simantics.history.HistoryManager)
23  */
24 public class HistoryImportResult {
25
26         @Optional public String error;
27         @Optional public Bean collectorState;
28
29         public HistoryImportResult() {
30         }
31
32         public HistoryImportResult(String error) {
33                 this.error = error;
34         }
35
36 }