001: /**
002: * This file or a portion of this file is licensed under the terms of
003: * the Globus Toolkit Public License, found in file GTPL, or at
004: * http://www.globus.org/toolkit/download/license.html. This notice must
005: * appear in redistributions of this file, with or without modification.
006: *
007: * Redistributions of this Software, with or without modification, must
008: * reproduce the GTPL in: (1) the Software, or (2) the Documentation or
009: * some other similar material which is provided with the Software (if
010: * any).
011: *
012: * Copyright 1999-2004 University of Chicago and The University of
013: * Southern California. All rights reserved.
014: */package org.griphyn.cPlanner.provenance.pasoa.pps;
015:
016: import java.util.*;
017:
018: import org.griphyn.cPlanner.engine.Refiner;
019:
020: import org.griphyn.cPlanner.provenance.pasoa.PPS;
021:
022: /**
023: * The default empty implementation to be used.
024: *
025: * @author Karan Vahi
026: * @version $Revision: 241 $
027: */
028: public class Empty implements PPS {
029:
030: public Empty() {
031: }
032:
033: /**
034: *
035: * @return The ID used for the whole refinement process of this workflow
036: * @param refiner workflow Refiner
037: * @param refinementStepName String
038: * @param firstStep boolean
039: * @throws Exception
040: */
041: public String beginWorkflowRefinementStep(Refiner refiner,
042: String refinementStepName, boolean firstStep)
043: throws Exception {
044:
045: // System.out.println( "Start of Refiner- " + refinementStepName );
046: // System.out.println( "First Step " + firstStep );
047: // System.out.println( refiner.getXMLProducer().toXML() );
048:
049: return "";
050: }
051:
052: /**
053: * clusteringOf
054: *
055: * @param clusteredJob String
056: * @param jobs List
057: * @throws Exception
058: */
059: public void clusteringOf(String clusteredJob, List jobs)
060: throws Exception {
061: // System.out.println( "Clustered Job " + clusteredJob );
062: // System.out.println( " contains " + jobs );
063:
064: }
065:
066: /**
067: * endWorkflowRefinementStep
068: *
069: * @param refiner workflow Refiner
070: * @throws Exception
071: */
072: public void endWorkflowRefinementStep(Refiner refiner)
073: throws Exception {
074:
075: // System.out.println( "End of Refiner" );
076: // System.out.println( refiner.getXMLProducer().toXML() );
077:
078: }
079:
080: /**
081: * isIdenticalTo
082: *
083: * @param afterNode String
084: * @param beforeNode String
085: * @throws Exception
086: */
087: public void isIdenticalTo(String afterNode, String beforeNode)
088: throws Exception {
089: // System.out.println( beforeNode + " identical to " + afterNode );
090: }
091:
092: /**
093: * isPartitionOf
094: *
095: * @param afterNode String
096: * @param beforeNode List
097: * @throws Exception
098: */
099: public void isPartitionOf(String afterNode, List beforeNode)
100: throws Exception {
101: }
102:
103: /**
104: * registrationIntroducedFor
105: *
106: * @param registrationNode String
107: * @param dataStagingNode String
108: * @throws Exception
109: */
110: public void registrationIntroducedFor(String registrationNode,
111: String dataStagingNode) throws Exception {
112: // System.out.println( "registration node " + registrationNode + " for " + dataStagingNode );
113: }
114:
115: /**
116: * siteSelectionFor
117: *
118: * @param afterNode String
119: * @param beforeNode String
120: * @throws Exception
121: */
122: public void siteSelectionFor(String afterNode, String beforeNode)
123: throws Exception {
124: // System.out.print( " Site Selection for " + beforeNode );
125: // System.out.println( " is " + afterNode );
126:
127: }
128:
129: /**
130: * stagingIntroducedFor
131: *
132: * @param stagingNodes List
133: * @param appNode String
134: * @throws Exception
135: */
136: public void stagingIntroducedFor(List stagingNodes, String appNode)
137: throws Exception {
138: // System.out.println( "Staging done by " + stagingNodes + " for " + appNode);
139: }
140: }
|