1
- package org .bimserver .geometry ;
2
-
3
- /******************************************************************************
4
- * Copyright (C) 2009-2019 BIMserver.org
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU Affero General Public License as
8
- * published by the Free Software Foundation, either version 3 of the
9
- * License, or (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU Affero General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU Affero General Public License
17
- * along with this program. If not, see {@literal<http://www.gnu.org/licenses/>}.
18
- *****************************************************************************/
19
-
20
- import java .util .HashMap ;
1
+ package org .bimserver .geometry ;
2
+
3
+ /******************************************************************************
4
+ * Copyright (C) 2009-2019 BIMserver.org
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License as
8
+ * published by the Free Software Foundation, either version 3 of the
9
+ * License, or (at your option) any later version.
10
+ *
11
+ * This program is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ * GNU Affero General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Affero General Public License
17
+ * along with this program. If not, see {@literal<http://www.gnu.org/licenses/>}.
18
+ *****************************************************************************/
19
+
20
+ import java .util .HashMap ;
21
21
import java .util .Map ;
22
22
23
23
public class ReportJob {
24
24
25
25
private Map <Long , String > objects = new HashMap <>();
26
- private Exception exception ;
26
+ private Throwable exception ;
27
27
private long end ;
28
- private long start ;
28
+ private long start ;
29
29
private long cpuTimeMs ;
30
30
private String mainType ;
31
31
private int nrObjects ;
32
32
private boolean usesMapping ;
33
33
private int trianglesGenerated ;
34
34
private GeometryGenerationReport report ;
35
- private int id ;
35
+ private int id ;
36
36
private long maxMemoryBytes ;
37
37
38
38
public ReportJob (GeometryGenerationReport report , String mainType , int nrObjects ) {
@@ -45,11 +45,11 @@ public String getMainType() {
45
45
return mainType ;
46
46
}
47
47
48
- public void addObject (long oid , String name ) {
48
+ public void addObject (long oid , String name ) {
49
49
objects .put (oid , name );
50
50
}
51
51
52
- public void setException (Exception exception ) {
52
+ public void setException (Throwable exception ) {
53
53
this .exception = exception ;
54
54
}
55
55
@@ -69,7 +69,7 @@ public Map<Long, String> getObjects() {
69
69
return objects ;
70
70
}
71
71
72
- public Exception getException () {
72
+ public Throwable getException () {
73
73
return exception ;
74
74
}
75
75
@@ -96,28 +96,28 @@ public int getTrianglesGenerated() {
96
96
public GeometryGenerationReport getReport () {
97
97
return report ;
98
98
}
99
-
100
- public void setId (int id ) {
101
- this .id = id ;
102
- }
103
-
104
- public int getId () {
105
- return id ;
106
- }
107
-
108
- public long getCpuTimeMs () {
109
- return cpuTimeMs ;
110
- }
111
-
112
- public void setCpuTimeMs (long cpuTimeMs ) {
113
- this .cpuTimeMs = cpuTimeMs ;
114
- }
115
-
116
- public void setMaxMemoryBytes (long maxMemoryBytes ) {
117
- this .maxMemoryBytes = maxMemoryBytes ;
118
- }
119
-
120
- public long getMaxMemoryBytes () {
121
- return maxMemoryBytes ;
99
+
100
+ public void setId (int id ) {
101
+ this .id = id ;
102
+ }
103
+
104
+ public int getId () {
105
+ return id ;
106
+ }
107
+
108
+ public long getCpuTimeMs () {
109
+ return cpuTimeMs ;
110
+ }
111
+
112
+ public void setCpuTimeMs (long cpuTimeMs ) {
113
+ this .cpuTimeMs = cpuTimeMs ;
114
+ }
115
+
116
+ public void setMaxMemoryBytes (long maxMemoryBytes ) {
117
+ this .maxMemoryBytes = maxMemoryBytes ;
118
+ }
119
+
120
+ public long getMaxMemoryBytes () {
121
+ return maxMemoryBytes ;
122
122
}
123
123
}
0 commit comments