1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package fr.fastconnect.gigaspaces.datasource.strategy;
20
21 import java.util.List;
22
23 import com.gigaspaces.datasource.BulkItem;
24 import com.gigaspaces.datasource.DataSourceException;
25
26
27
28
29
30
31 public class SpaceStorageExecutionFailure {
32
33 private Long timestamp;
34 private String bulkDataPersisterClassName;
35 private List<BulkItem> bulkItems;
36 private DataSourceException exception;
37
38 public SpaceStorageExecutionFailure() {
39 }
40
41 public SpaceStorageExecutionFailure(final String bulkDataPersisterClassName, final List<BulkItem> bulkItems, final DataSourceException e) {
42 this.timestamp = System.currentTimeMillis();
43 this.bulkDataPersisterClassName = bulkDataPersisterClassName;
44 this.bulkItems = bulkItems;
45 this.exception = e;
46 }
47
48 public Long getTimestamp() {
49 return this.timestamp;
50 }
51
52 public void setTimestamp(final Long timestamp) {
53 this.timestamp = timestamp;
54 }
55
56 public String getBulkDataPersisterClassName() {
57 return this.bulkDataPersisterClassName;
58 }
59
60 public void setBulkDataPersisterClassName(final String bulkDataPersisterClassName) {
61 this.bulkDataPersisterClassName = bulkDataPersisterClassName;
62 }
63
64 public List<BulkItem> getBulkItems() {
65 return this.bulkItems;
66 }
67
68 public void setBulkItems(final List<BulkItem> bulkItems) {
69 this.bulkItems = bulkItems;
70 }
71
72 public DataSourceException getDataSourceException() {
73 return this.exception;
74 }
75
76 public void setDataSourceException(final DataSourceException exception) {
77 this.exception = exception;
78 }
79
80 }