adding dummy command output parser
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/79757785 Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/79757785 Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/79757785 Branch: refs/heads/ansible-testing-0.17 Commit: 79757785499572f885dc9b96f3f16637a751fd08 Parents: 2d0796f Author: scnakandala <[email protected]> Authored: Sat Mar 4 21:45:42 2017 -0500 Committer: scnakandala <[email protected]> Committed: Sat Mar 4 21:45:42 2017 -0500 ---------------------------------------------------------------------- .../server/src/main/resources/gfac-config.yaml | 1 + .../job/AiravataCustomCommandOutputParser.java | 59 ++++++++++++++++++++ 2 files changed, 60 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/79757785/modules/configuration/server/src/main/resources/gfac-config.yaml ---------------------------------------------------------------------- diff --git a/modules/configuration/server/src/main/resources/gfac-config.yaml b/modules/configuration/server/src/main/resources/gfac-config.yaml index 38578af..109af97 100644 --- a/modules/configuration/server/src/main/resources/gfac-config.yaml +++ b/modules/configuration/server/src/main/resources/gfac-config.yaml @@ -115,6 +115,7 @@ resources: commandOutputParser: org.apache.airavata.gfac.impl.job.ForkOutputParser - jobManagerType: AIRAVATA_CUSTOM + commandOutputParser: org.apache.airavata.gfac.impl.job.AiravataCustomCommandOutputParser emailParser: org.apache.airavata.gfac.monitor.email.parser.AiravataCustomMailParser resourceEmailAddresses: - [email protected] http://git-wip-us.apache.org/repos/asf/airavata/blob/79757785/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/job/AiravataCustomCommandOutputParser.java ---------------------------------------------------------------------- diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/job/AiravataCustomCommandOutputParser.java b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/job/AiravataCustomCommandOutputParser.java new file mode 100644 index 0000000..309d1d7 --- /dev/null +++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/job/AiravataCustomCommandOutputParser.java @@ -0,0 +1,59 @@ +/* + * + * 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 org.apache.airavata.gfac.impl.job; + +import org.apache.airavata.gfac.core.GFacException; +import org.apache.airavata.gfac.core.cluster.OutputParser; +import org.apache.airavata.model.status.JobStatus; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.Map; + +public class AiravataCustomCommandOutputParser implements OutputParser { + private static final Logger log = LoggerFactory.getLogger(AiravataCustomCommandOutputParser.class); + + @Override + public String parseJobSubmission(String rawOutput) throws GFacException { + throw new UnsupportedOperationException(); + } + + @Override + public boolean isJobSubmissionFailed(String rawOutput) { + throw new UnsupportedOperationException(); + } + + @Override + public JobStatus parseJobStatus(String jobID, String rawOutput) throws GFacException { + throw new UnsupportedOperationException(); + } + + @Override + public void parseJobStatuses(String userName, Map<String, JobStatus> statusMap, String rawOutput) throws GFacException { + throw new UnsupportedOperationException(); + } + + @Override + public String parseJobId(String jobName, String rawOutput) throws GFacException { + throw new UnsupportedOperationException(); + } +}
