jpl.eda.archive.server
Class NoOpRule

java.lang.Object
  extended byjpl.eda.archive.server.NoOpRule
All Implemented Interfaces:
Rule

public class NoOpRule
extends java.lang.Object
implements Rule

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

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

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

Constructor Detail

NoOpRule

public NoOpRule()
Method Detail

run

public boolean run(java.util.Properties props,
                   jpl.eda.util.JDBC_DB db,
                   Dataset dataset,
                   Product product,
                   int taskId)
            throws RuleException
Execute the rule via the Rule interface.

Specified by:
run in interface Rule
Parameters:
props - The system properties.
db - The CAS database connection.
dataset - The associated dataset information.
product - The associated product information.
taskId - The identifier for the associated task.
Returns:
True if the rule is satisfied, false if it is not.
Throws:
RuleException - If an error occurs.

main

public static void main(java.lang.String[] argv)
Execute the rule 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.