uk.ac.rdg.resc.jstyx.gridservice.client
Class SGSInstanceClientChangeAdapter

java.lang.Object
  extended by uk.ac.rdg.resc.jstyx.gridservice.client.SGSInstanceClientChangeAdapter
All Implemented Interfaces:
SGSInstanceClientChangeListener
Direct Known Subclasses:
SGSRun

public class SGSInstanceClientChangeAdapter
extends java.lang.Object
implements SGSInstanceClientChangeListener

Convenience class that provides blank implementations for all files in the SGSInstanceChangeListener

Author:
Jon Blower $Revision: 587 $ $Date: 2006-02-20 08:37:32 +0000 (Mon, 20 Feb 2006) $ $Log$ Revision 1.5 2006/02/20 08:37:32 jonblower Still working towards handling output data properly in SGSInstanceClient Revision 1.4 2005/12/07 17:50:01 jonblower Changed gotCommandLine() to gotArguments() Revision 1.3 2005/12/01 17:17:07 jonblower Simplifying client interface to SGS instances Revision 1.2 2005/12/01 08:21:56 jonblower Fixed javadoc comments Revision 1.1 2005/11/10 19:47:10 jonblower Renamed SGSInstanceChange* to SGSInstanceClientChange* Revision 1.3 2005/10/18 14:08:14 jonblower Removed inputfiles from namespace Revision 1.2 2005/10/14 18:00:42 jonblower Renamed getInputMethods() to getInputStreams() Revision 1.1 2005/08/12 08:08:39 jonblower Developments to support web interface

Constructor Summary
SGSInstanceClientChangeAdapter()
           
 
Method Summary
 void allOutputDataDownloaded()
          Called when all the output data have been downloaded
 void error(java.lang.String message)
          Called when an error occurs
 void gotArguments(java.lang.String newArgs)
          Called when we have a new string of command line arguments (for debug purposes)
 void gotExitCode(int exitCode)
          Called when the exit code from the service is received: this signals that the remote executable has completed.
 void gotParameterValue(java.lang.String name, java.lang.String value)
          Called when we have a new value for a parameter
 void gotServiceDataValue(java.lang.String sdName, java.lang.String newData)
          Called when the given service data element changes
 void gotSteerableParameterValue(java.lang.String name, java.lang.String value)
          Called when we have a new value for a steerable parameter
 void inputFilesUploaded()
          Called when the input files have been successfully uploaded
 void serviceAborted()
          Called when the service is stopped before it has finished
 void serviceStarted()
          Called when the service is started
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SGSInstanceClientChangeAdapter

public SGSInstanceClientChangeAdapter()
Method Detail

gotServiceDataValue

public void gotServiceDataValue(java.lang.String sdName,
                                java.lang.String newData)
Called when the given service data element changes

Specified by:
gotServiceDataValue in interface SGSInstanceClientChangeListener

gotParameterValue

public void gotParameterValue(java.lang.String name,
                              java.lang.String value)
Called when we have a new value for a parameter

Specified by:
gotParameterValue in interface SGSInstanceClientChangeListener
Parameters:
name - Name of the parameter
value - The new value of the parameter

gotSteerableParameterValue

public void gotSteerableParameterValue(java.lang.String name,
                                       java.lang.String value)
Called when we have a new value for a steerable parameter

Specified by:
gotSteerableParameterValue in interface SGSInstanceClientChangeListener
Parameters:
name - Name of the parameter
value - The new value of the parameter

gotArguments

public void gotArguments(java.lang.String newArgs)
Called when we have a new string of command line arguments (for debug purposes)

Specified by:
gotArguments in interface SGSInstanceClientChangeListener
Parameters:
newArgs - The new arguments

inputFilesUploaded

public void inputFilesUploaded()
Called when the input files have been successfully uploaded

Specified by:
inputFilesUploaded in interface SGSInstanceClientChangeListener

serviceStarted

public void serviceStarted()
Called when the service is started

Specified by:
serviceStarted in interface SGSInstanceClientChangeListener

serviceAborted

public void serviceAborted()
Called when the service is stopped before it has finished

Specified by:
serviceAborted in interface SGSInstanceClientChangeListener

gotExitCode

public void gotExitCode(int exitCode)
Called when the exit code from the service is received: this signals that the remote executable has completed.

Specified by:
gotExitCode in interface SGSInstanceClientChangeListener

allOutputDataDownloaded

public void allOutputDataDownloaded()
Called when all the output data have been downloaded

Specified by:
allOutputDataDownloaded in interface SGSInstanceClientChangeListener

error

public void error(java.lang.String message)
Called when an error occurs

Specified by:
error in interface SGSInstanceClientChangeListener


Copyright © 2004-2006 Reading e-Science Centre. All Rights Reserved.