1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 package uk.ac.rdg.resc.jstyx.gridservice.client;
30
31 import org.apache.mina.common.ByteBuffer;
32
33 import uk.ac.rdg.resc.jstyx.client.CStyxFile;
34
35 /***
36 * Convenience class that provides blank implementations for all files in the
37 * SGSInstanceChangeListener
38 *
39 * @author Jon Blower
40 * $Revision: 587 $
41 * $Date: 2006-02-20 08:37:32 +0000 (Mon, 20 Feb 2006) $
42 * $Log$
43 * Revision 1.5 2006/02/20 08:37:32 jonblower
44 * Still working towards handling output data properly in SGSInstanceClient
45 *
46 * Revision 1.4 2005/12/07 17:50:01 jonblower
47 * Changed gotCommandLine() to gotArguments()
48 *
49 * Revision 1.3 2005/12/01 17:17:07 jonblower
50 * Simplifying client interface to SGS instances
51 *
52 * Revision 1.2 2005/12/01 08:21:56 jonblower
53 * Fixed javadoc comments
54 *
55 * Revision 1.1 2005/11/10 19:47:10 jonblower
56 * Renamed SGSInstanceChange* to SGSInstanceClientChange*
57 *
58 * Revision 1.3 2005/10/18 14:08:14 jonblower
59 * Removed inputfiles from namespace
60 *
61 * Revision 1.2 2005/10/14 18:00:42 jonblower
62 * Renamed getInputMethods() to getInputStreams()
63 *
64 * Revision 1.1 2005/08/12 08:08:39 jonblower
65 * Developments to support web interface
66 *
67 */
68 public class SGSInstanceClientChangeAdapter implements SGSInstanceClientChangeListener
69 {
70
71 /***
72 * Called when the given service data element changes
73 */
74 public void gotServiceDataValue(String sdName, String newData) {}
75
76 /***
77 * Called when we have a new value for a parameter
78 * @param name Name of the parameter
79 * @param value The new value of the parameter
80 */
81 public void gotParameterValue(String name, String value) {}
82
83 /***
84 * Called when we have a new value for a steerable parameter
85 * @param name Name of the parameter
86 * @param value The new value of the parameter
87 */
88 public void gotSteerableParameterValue(String name, String value) {}
89
90 /***
91 * Called when we have a new string of command line arguments (for debug purposes)
92 * @param newArgs The new arguments
93 */
94 public void gotArguments(String newArgs) {}
95
96 /***
97 * Called when the input files have been successfully uploaded
98 * @todo add arguments to this
99 */
100 public void inputFilesUploaded() {}
101
102 /***
103 * Called when the service is started
104 */
105 public void serviceStarted() {}
106
107 /***
108 * Called when the service is stopped before it has finished
109 */
110 public void serviceAborted() {}
111
112 /***
113 * Called when the exit code from the service is received: this signals that
114 * the remote executable has completed.
115 */
116 public void gotExitCode(int exitCode) {}
117
118 /***
119 * Called when all the output data have been downloaded
120 */
121 public void allOutputDataDownloaded() {}
122
123 /***
124 * Called when an error occurs
125 */
126 public void error(String message) {}
127 }