View Javadoc

1   /*
2    * Copyright (c) 2005 The University of Reading
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    * 1. Redistributions of source code must retain the above copyright
9    *    notice, this list of conditions and the following disclaimer.
10   * 2. Redistributions in binary form must reproduce the above copyright
11   *    notice, this list of conditions and the following disclaimer in the
12   *    documentation and/or other materials provided with the distribution.
13   * 3. Neither the name of the University of Reading, nor the names of the
14   *    authors or contributors may be used to endorse or promote products
15   *    derived from this software without specific prior written permission.
16   * 
17   * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18   * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20   * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21   * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22   * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23   * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24   * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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 }