jpl.eda.archive.server
Class NoOpTask

java.lang.Object
  extended byjpl.eda.archive.server.NoOpTask
All Implemented Interfaces:
Task

public class NoOpTask
extends java.lang.Object
implements Task

This task does absolutely nothing. But it does provide a nice template for generating a new task.

Version:
$Revision: 1.1 $
Author:
S. Hardman
See Also:
Task

Constructor Summary
NoOpTask()
           
 
Method Summary
static void main(java.lang.String[] argv)
          Execute the task via the command-line.
 void run(java.util.Properties props, jpl.eda.util.JDBC_DB db, Dataset dataset, Product product, int taskId, int execId)
          Execute the task via the Task interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpTask

public NoOpTask()
Method Detail

run

public void run(java.util.Properties props,
                jpl.eda.util.JDBC_DB db,
                Dataset dataset,
                Product product,
                int taskId,
                int execId)
         throws TaskException
Execute the task via the Task interface.

Specified by:
run in interface Task
Parameters:
props - The system properties.
db - The Archive Service database connection.
dataset - The associated dataset information.
product - The associated product information.
taskId - The task identifier.
execId - The execution identifier.
Throws:
TaskException - If an error occurs setting up or sending the message.

main

public static void main(java.lang.String[] argv)
Execute the task via the command-line.

The command-line arguments are: datasetName productId taskId

The program exits with status 0 on success, 1 on failure.

Parameters:
argv - The command-line arguments.


Copyright © 1999-2005 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.