svn-gvsig-desktop / branches / MULTITHREADING_DEVELOPMENT / libraries / libRemoteServices / src / org / gvsig / remoteClient / taskplanning / retrieving / RetrieveEvent.java @ 5269
History | View | Annotate | Download (1.55 KB)
1 |
/*
|
---|---|
2 |
* Created on 01-oct-2005
|
3 |
*/
|
4 |
package org.gvsig.remoteClient.taskplanning.retrieving; |
5 |
|
6 |
/**
|
7 |
* @author jaume dominguez faus - jaume.dominguez@iver.es
|
8 |
* Luis W. Sevilla (sevilla_lui@gva.es)
|
9 |
*/
|
10 |
public class RetrieveEvent { |
11 |
/**
|
12 |
* The task is on queue but it has not been started yet.
|
13 |
*/
|
14 |
public static final int NOT_STARTED = 0; |
15 |
|
16 |
/**
|
17 |
* The task has started the execution and it is attempting to connect.
|
18 |
*/
|
19 |
public static final int CONNECTING = 1; |
20 |
|
21 |
/**
|
22 |
* The task has connected and it is transferring data.
|
23 |
*/
|
24 |
public static final int TRANSFERRING = 2; |
25 |
|
26 |
/**
|
27 |
* The task has finished the request.
|
28 |
*/
|
29 |
public static final int REQUEST_FINISHED = 3; |
30 |
|
31 |
/**
|
32 |
* The request failed retreiving.
|
33 |
*/
|
34 |
public static final int REQUEST_FAILED = 4; |
35 |
|
36 |
/**
|
37 |
* The request was cancelled by somewho.
|
38 |
*/
|
39 |
public static final int REQUEST_CANCELLED = 5; |
40 |
|
41 |
/**
|
42 |
* The task is postprocessing the request. For instance, it is closing the connection.
|
43 |
*/
|
44 |
public static final int POSTPROCESSING = 6; |
45 |
|
46 |
/**
|
47 |
* The task returned a non communication error but a server-kind specific error.
|
48 |
*/
|
49 |
public static final int ERROR = 11; |
50 |
|
51 |
private int eventType; |
52 |
private String fileName; |
53 |
private String message; |
54 |
|
55 |
protected void setType(int type) { |
56 |
eventType = type; |
57 |
} |
58 |
|
59 |
public int getType() { |
60 |
return eventType;
|
61 |
} |
62 |
|
63 |
protected void setFileName(String fileName) { |
64 |
this.fileName = fileName;
|
65 |
} |
66 |
|
67 |
public String getFileName() { |
68 |
return fileName;
|
69 |
} |
70 |
|
71 |
public String getMessage() { |
72 |
return message;
|
73 |
} |
74 |
|
75 |
public void setMessage(String message) { |
76 |
this.message = message;
|
77 |
} |
78 |
|
79 |
|
80 |
} |