You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by sm...@apache.org on 2010/06/11 22:38:59 UTC
svn commit: r953864 [3/5] - in /incubator/oodt/trunk:
resource/src/main/java/gov/nasa/jpl/oodt/cas/resource/batchmgr/
resource/src/main/java/gov/nasa/jpl/oodt/cas/resource/examples/
resource/src/main/java/gov/nasa/jpl/oodt/cas/resource/jobqueue/ resour...
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/ThreadPoolWorkflowEngineFactory.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/ThreadPoolWorkflowEngineFactory.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/ThreadPoolWorkflowEngineFactory.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/ThreadPoolWorkflowEngineFactory.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2006, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.engine;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/WorkflowEngine.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/WorkflowEngine.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/WorkflowEngine.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/WorkflowEngine.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2005, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.engine;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/WorkflowEngineFactory.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/WorkflowEngineFactory.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/WorkflowEngineFactory.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/WorkflowEngineFactory.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2005, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.engine;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/WorkflowProcessorThread.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/WorkflowProcessorThread.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/WorkflowProcessorThread.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/engine/WorkflowProcessorThread.java Fri Jun 11 20:38:55 2010
@@ -1,59 +1,72 @@
-//Copyright (c) 2005, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
-
-package gov.nasa.jpl.oodt.cas.workflow.engine;
-
-//OODT imports
-import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowInstance;
-
-/**
- * @author mattmann
- * @version $Revision$
- *
- * <p>
- * A Threaded interface for processing a {@link WorkflowInstance}. The job of
- * this class is to actually take the WorkflowInstance and execute its jobs. The
- * class should maintain the state of the instance, such as the currentTaskId,
- * and so forth.
- * </p>
- *
- */
-public interface WorkflowProcessorThread extends Runnable {
-
- /**
- * @return The {@link WorkflowInstance} that this Thread is processing.
- */
- public WorkflowInstance getWorkflowInstance();
-
- /**
- * <p>
- * Stops once and for all the thread from processing the workflow. This
- * method should not maintain the state of the workflow, it should
- * gracefully shut down the WorkflowProcessorThread and any of its
- * subsequent resources.
- * </p>
- *
- */
- public void stop();
-
- /**
- * <p>
- * Resumes execution of a {@link #pause}d {@link WorkflowInstace} by this
- * WorkflowProcessorThread.
- * </p>
- *
- */
- public void resume();
-
- /**
- * <p>
- * Pauses exectuion of a {@link WorkflowInstace} being handled by this
- * WorkflowProcessorThread.
- * </p>
- *
- */
- public void pause();
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package gov.nasa.jpl.oodt.cas.workflow.engine;
+
+//OODT imports
+import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowInstance;
+
+/**
+ * @author mattmann
+ * @version $Revision$
+ *
+ * <p>
+ * A Threaded interface for processing a {@link WorkflowInstance}. The job of
+ * this class is to actually take the WorkflowInstance and execute its jobs. The
+ * class should maintain the state of the instance, such as the currentTaskId,
+ * and so forth.
+ * </p>
+ *
+ */
+public interface WorkflowProcessorThread extends Runnable {
+
+ /**
+ * @return The {@link WorkflowInstance} that this Thread is processing.
+ */
+ public WorkflowInstance getWorkflowInstance();
+
+ /**
+ * <p>
+ * Stops once and for all the thread from processing the workflow. This
+ * method should not maintain the state of the workflow, it should
+ * gracefully shut down the WorkflowProcessorThread and any of its
+ * subsequent resources.
+ * </p>
+ *
+ */
+ public void stop();
+
+ /**
+ * <p>
+ * Resumes execution of a {@link #pause}d {@link WorkflowInstace} by this
+ * WorkflowProcessorThread.
+ * </p>
+ *
+ */
+ public void resume();
+
+ /**
+ * <p>
+ * Pauses exectuion of a {@link WorkflowInstace} being handled by this
+ * WorkflowProcessorThread.
+ * </p>
+ *
+ */
+ public void pause();
+
+}
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/CheckForMetadataKeys.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/CheckForMetadataKeys.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/CheckForMetadataKeys.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/CheckForMetadataKeys.java Fri Jun 11 20:38:55 2010
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.examples;
import gov.nasa.jpl.oodt.cas.metadata.Metadata;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/ExternScriptTaskInstance.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/ExternScriptTaskInstance.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/ExternScriptTaskInstance.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/ExternScriptTaskInstance.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2008, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.examples;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/FalseCondition.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/FalseCondition.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/FalseCondition.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/FalseCondition.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2005, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.examples;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/GoodbyeWorld.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/GoodbyeWorld.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/GoodbyeWorld.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/GoodbyeWorld.java Fri Jun 11 20:38:55 2010
@@ -1,39 +1,52 @@
-//Copyright (c) 2005, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
-
-package gov.nasa.jpl.oodt.cas.workflow.examples;
-
-//OODT imports
-import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskInstance;
-import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskConfiguration;
-import gov.nasa.jpl.oodt.cas.metadata.Metadata;
-
-/**
- * @author mattmann
- * @version $Revsion$
- *
- * <p>A simple task that takes in a static configuration parameter, "Person",
- * and echos the string "Goodbye ${person}".</p>
- */
-public class GoodbyeWorld implements WorkflowTaskInstance {
-
- /**
- *
- */
- public GoodbyeWorld() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /* (non-Javadoc)
- * @see gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTasInstancek#run(gov.nasa.jpl.oodt.cas.metadata.Metadata,
- * gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskConfiguration)
- */
- public void run(Metadata metadata, WorkflowTaskConfiguration config) {
- System.out.println("Goodbye World: "+config.getProperties().get("Person"));
-
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package gov.nasa.jpl.oodt.cas.workflow.examples;
+
+//OODT imports
+import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskInstance;
+import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskConfiguration;
+import gov.nasa.jpl.oodt.cas.metadata.Metadata;
+
+/**
+ * @author mattmann
+ * @version $Revsion$
+ *
+ * <p>A simple task that takes in a static configuration parameter, "Person",
+ * and echos the string "Goodbye ${person}".</p>
+ */
+public class GoodbyeWorld implements WorkflowTaskInstance {
+
+ /**
+ *
+ */
+ public GoodbyeWorld() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+
+ /* (non-Javadoc)
+ * @see gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTasInstancek#run(gov.nasa.jpl.oodt.cas.metadata.Metadata,
+ * gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskConfiguration)
+ */
+ public void run(Metadata metadata, WorkflowTaskConfiguration config) {
+ System.out.println("Goodbye World: "+config.getProperties().get("Person"));
+
+ }
+
+}
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/HelloWorld.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/HelloWorld.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/HelloWorld.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/HelloWorld.java Fri Jun 11 20:38:55 2010
@@ -1,37 +1,50 @@
-//Copyright (c) 2005, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
-
-package gov.nasa.jpl.oodt.cas.workflow.examples;
-
-//OODT imports
-import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskInstance;
-import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskConfiguration;
-import gov.nasa.jpl.oodt.cas.metadata.Metadata;
-
-/**
- * @author mattmann
- * @version $Revsion$
- *
- * <p>A simple task that takes in the static configuration
- * parameter, "Person", and echos the String "Hello ${person}."</p>
- */
-public class HelloWorld implements WorkflowTaskInstance {
-
- /**
- *
- */
- public HelloWorld() {
-
- }
-
- /* (non-Javadoc)
- * @see gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskInstance#run(java.util.Map,
- * gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskConfiguration)
- */
- public void run(Metadata metadata, WorkflowTaskConfiguration config) {
- System.out.println("Hello World: "+config.getProperties().get("Person"));
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package gov.nasa.jpl.oodt.cas.workflow.examples;
+
+//OODT imports
+import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskInstance;
+import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskConfiguration;
+import gov.nasa.jpl.oodt.cas.metadata.Metadata;
+
+/**
+ * @author mattmann
+ * @version $Revsion$
+ *
+ * <p>A simple task that takes in the static configuration
+ * parameter, "Person", and echos the String "Hello ${person}."</p>
+ */
+public class HelloWorld implements WorkflowTaskInstance {
+
+ /**
+ *
+ */
+ public HelloWorld() {
+
+ }
+
+ /* (non-Javadoc)
+ * @see gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskInstance#run(java.util.Map,
+ * gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowTaskConfiguration)
+ */
+ public void run(Metadata metadata, WorkflowTaskConfiguration config) {
+ System.out.println("Hello World: "+config.getProperties().get("Person"));
+ }
+
+}
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/LongCondition.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/LongCondition.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/LongCondition.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/LongCondition.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2006, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.examples;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/LongTask.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/LongTask.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/LongTask.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/LongTask.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2006, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.examples;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/MailTask.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/MailTask.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/MailTask.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/MailTask.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2009, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.examples;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/NumIncrementTask.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/NumIncrementTask.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/NumIncrementTask.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/NumIncrementTask.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2007, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.examples;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/RandomStatusUpdateTask.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/RandomStatusUpdateTask.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/RandomStatusUpdateTask.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/RandomStatusUpdateTask.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2007, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.examples;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/TrueCondition.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/TrueCondition.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/TrueCondition.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/examples/TrueCondition.java Fri Jun 11 20:38:55 2010
@@ -1,36 +1,49 @@
-//Copyright (c) 2005, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
-
-package gov.nasa.jpl.oodt.cas.workflow.examples;
-
-//OODT imports
-import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowConditionConfiguration;
-import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowConditionInstance;
-import gov.nasa.jpl.oodt.cas.metadata.Metadata;
-
-/**
- * @author mattmann
- * @version $Revsion$
- *
- * <p>A simple condition that always returns true when invoked.</p>
- */
-public class TrueCondition implements WorkflowConditionInstance {
-
- /**
- *
- */
- public TrueCondition() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /* (non-Javadoc)
- * @see gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowConditionInstance#evaluate(gov.nasa.jpl.oodt.cas.metadata.Metadata)
- */
- public boolean evaluate(Metadata metadata, WorkflowConditionConfiguration config) {
- return true;
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package gov.nasa.jpl.oodt.cas.workflow.examples;
+
+//OODT imports
+import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowConditionConfiguration;
+import gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowConditionInstance;
+import gov.nasa.jpl.oodt.cas.metadata.Metadata;
+
+/**
+ * @author mattmann
+ * @version $Revsion$
+ *
+ * <p>A simple condition that always returns true when invoked.</p>
+ */
+public class TrueCondition implements WorkflowConditionInstance {
+
+ /**
+ *
+ */
+ public TrueCondition() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+
+ /* (non-Javadoc)
+ * @see gov.nasa.jpl.oodt.cas.workflow.structs.WorkflowConditionInstance#evaluate(gov.nasa.jpl.oodt.cas.metadata.Metadata)
+ */
+ public boolean evaluate(Metadata metadata, WorkflowConditionConfiguration config) {
+ return true;
+ }
+
+}
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/AbstractPaginatibleInstanceRepository.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/AbstractPaginatibleInstanceRepository.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/AbstractPaginatibleInstanceRepository.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/AbstractPaginatibleInstanceRepository.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2008, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.instrepo;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/DataSourceWorkflowInstanceRepository.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/DataSourceWorkflowInstanceRepository.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/DataSourceWorkflowInstanceRepository.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/DataSourceWorkflowInstanceRepository.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2006, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.instrepo;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/DataSourceWorkflowInstanceRepositoryFactory.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/DataSourceWorkflowInstanceRepositoryFactory.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/DataSourceWorkflowInstanceRepositoryFactory.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/DataSourceWorkflowInstanceRepositoryFactory.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2005, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.instrepo;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/LuceneWorkflowInstanceRepository.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/LuceneWorkflowInstanceRepository.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/LuceneWorkflowInstanceRepository.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/LuceneWorkflowInstanceRepository.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2006, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.instrepo;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/LuceneWorkflowInstanceRepositoryFactory.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/LuceneWorkflowInstanceRepositoryFactory.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/LuceneWorkflowInstanceRepositoryFactory.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/LuceneWorkflowInstanceRepositoryFactory.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2006, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.instrepo;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/MemoryWorkflowInstanceRepository.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/MemoryWorkflowInstanceRepository.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/MemoryWorkflowInstanceRepository.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/MemoryWorkflowInstanceRepository.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2006, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.instrepo;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/MemoryWorkflowInstanceRepositoryFactory.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/MemoryWorkflowInstanceRepositoryFactory.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/MemoryWorkflowInstanceRepositoryFactory.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/MemoryWorkflowInstanceRepositoryFactory.java Fri Jun 11 20:38:55 2010
@@ -1,41 +1,54 @@
-//Copyright (c) 2006, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
-
-package gov.nasa.jpl.oodt.cas.workflow.instrepo;
-
-/**
- * @author mattmann
- * @version $Revsion$
- *
- * <p>
- * A Factory for creating {@link MemoryWorkflowInstanceRepository}s.
- * </p>
- */
-public class MemoryWorkflowInstanceRepositoryFactory implements
- WorkflowInstanceRepositoryFactory {
-
- private int pageSize = -1;
-
- /**
- * <p>
- * Default Constructor
- * </p>
- */
- public MemoryWorkflowInstanceRepositoryFactory() {
- pageSize = Integer.getInteger(
- "gov.nasa.jpl.oodt.cas.workflow.instanceRep.pageSize", 20)
- .intValue();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see gov.nasa.jpl.oodt.cas.workflow.instrepo.WorkflowInstanceRepositoryFactory#createInstanceRepository()
- */
- public WorkflowInstanceRepository createInstanceRepository() {
- return new MemoryWorkflowInstanceRepository(pageSize);
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package gov.nasa.jpl.oodt.cas.workflow.instrepo;
+
+/**
+ * @author mattmann
+ * @version $Revsion$
+ *
+ * <p>
+ * A Factory for creating {@link MemoryWorkflowInstanceRepository}s.
+ * </p>
+ */
+public class MemoryWorkflowInstanceRepositoryFactory implements
+ WorkflowInstanceRepositoryFactory {
+
+ private int pageSize = -1;
+
+ /**
+ * <p>
+ * Default Constructor
+ * </p>
+ */
+ public MemoryWorkflowInstanceRepositoryFactory() {
+ pageSize = Integer.getInteger(
+ "gov.nasa.jpl.oodt.cas.workflow.instanceRep.pageSize", 20)
+ .intValue();
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see gov.nasa.jpl.oodt.cas.workflow.instrepo.WorkflowInstanceRepositoryFactory#createInstanceRepository()
+ */
+ public WorkflowInstanceRepository createInstanceRepository() {
+ return new MemoryWorkflowInstanceRepository(pageSize);
+ }
+
+}
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/WorkflowInstanceRepository.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/WorkflowInstanceRepository.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/WorkflowInstanceRepository.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/WorkflowInstanceRepository.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2006, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.instrepo;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/WorkflowInstanceRepositoryFactory.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/WorkflowInstanceRepositoryFactory.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/WorkflowInstanceRepositoryFactory.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/instrepo/WorkflowInstanceRepositoryFactory.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2005, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.instrepo;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycle.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycle.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycle.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycle.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2008, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.lifecycle;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycleManager.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycleManager.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycleManager.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycleManager.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2008, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.lifecycle;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycleMetKeys.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycleMetKeys.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycleMetKeys.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycleMetKeys.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2008, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.lifecycle;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycleStage.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycleStage.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycleStage.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecycleStage.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2008, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.lifecycle;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecyclesReader.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecyclesReader.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecyclesReader.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/lifecycle/WorkflowLifecyclesReader.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2008, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.lifecycle;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/metadata/CoreMetKeys.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/metadata/CoreMetKeys.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/metadata/CoreMetKeys.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/metadata/CoreMetKeys.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2008, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.metadata;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/DataSourceWorkflowRepository.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/DataSourceWorkflowRepository.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/DataSourceWorkflowRepository.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/DataSourceWorkflowRepository.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2005, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.repository;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/DataSourceWorkflowRepositoryFactory.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/DataSourceWorkflowRepositoryFactory.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/DataSourceWorkflowRepositoryFactory.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/DataSourceWorkflowRepositoryFactory.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2005, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.repository;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/WorkflowRepository.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/WorkflowRepository.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/WorkflowRepository.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/WorkflowRepository.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2005, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.repository;
Modified: incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/WorkflowRepositoryFactory.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/WorkflowRepositoryFactory.java?rev=953864&r1=953863&r2=953864&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/WorkflowRepositoryFactory.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/gov/nasa/jpl/oodt/cas/workflow/repository/WorkflowRepositoryFactory.java Fri Jun 11 20:38:55 2010
@@ -1,7 +1,20 @@
-//Copyright (c) 2005, California Institute of Technology.
-//ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
-//
-//$Id$
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package gov.nasa.jpl.oodt.cas.workflow.repository;