public class PGETaskInstance extends Object implements WorkflowTaskInstance
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger |
protected PgeConfig |
pgeConfig |
protected PgeMetadata |
pgeMetadata |
protected XmlRpcWorkflowManagerClient |
wm |
protected String |
workflowInstId |
Modifier | Constructor and Description |
---|---|
protected |
PGETaskInstance() |
protected Logger logger
protected XmlRpcWorkflowManagerClient wm
protected String workflowInstId
protected PgeMetadata pgeMetadata
protected PgeConfig pgeConfig
public void run(Metadata metadata, WorkflowTaskConfiguration config) throws WorkflowTaskInstanceException
WorkflowTaskInstance
Runs the Task with the specified metadata context.
run
in interface WorkflowTaskInstance
metadata
- The TaskContext of metadata that is shared between the tasks.config
- The static configuration metadata for this task.WorkflowTaskInstanceException
protected void updateStatus(String status) throws PGEException, org.apache.xmlrpc.XmlRpcException, IOException
PGEException
org.apache.xmlrpc.XmlRpcException
IOException
protected Logger createLogger() throws IOException, PGEException
IOException
PGEException
protected String createLogFileName()
protected PgeMetadata createPgeMetadata(Metadata dynMetadata, WorkflowTaskConfiguration config)
protected void runPropertyAdders() throws PGEException
PGEException
protected ConfigFilePropertyAdder loadPropertyAdder(String propertyAdderClasspath)
protected void runPropertyAdder(ConfigFilePropertyAdder propAdder)
protected XmlRpcWorkflowManagerClient createWorkflowManagerClient() throws MalformedURLException
MalformedURLException
protected String getWorkflowInstanceId()
protected void dumpMetadataIfRequested() throws IOException
IOException
protected String getDumpMetadataPath()
protected String getDumpMetadataName()
protected void createExeDir() throws PGEException
PGEException
protected void createOuputDirsIfRequested() throws PGEException
PGEException
protected void stageFiles() throws PGEException, IOException, ConnectionException, CatalogException, URISyntaxException, DataTransferException, InstantiationException
protected FileStager getFileStager()
protected void createDynamicConfigFiles() throws IOException, PGEException
IOException
PGEException
protected void createDynamicConfigFile(DynamicConfigFile dynamicConfigFile) throws PGEException, IOException
PGEException
IOException
protected ScriptFile buildPgeRunScript()
protected File getScriptPath()
protected String getPgeScriptName()
protected void runPge() throws PGEException, org.apache.xmlrpc.XmlRpcException
PGEException
org.apache.xmlrpc.XmlRpcException
protected boolean wasPgeSuccessful(int returnCode)
protected void processOutput() throws IOException
IOException
protected File renameFile(File file, PathUtilsNamingConvention renamingConv) throws NamingConventionException
NamingConventionException
protected Metadata getMetadataForFile(File sciPgeCreatedDataFile, PcsMetFileWriter writer, Object[] args) throws PGEException, MetExtractorConfigReaderException, ParseException, MetExtractionException, CommonsException, CasMetadataException, FileNotFoundException
protected void writeFromMetadata(Metadata metadata, String toMetFilePath) throws IOException
IOException
protected ProductCrawler createProductCrawler() throws MalformedURLException, IllegalAccessException, CrawlerActionException, MetExtractionException, InstantiationException, FileNotFoundException, ClassNotFoundException
protected void runIngestCrawler(ProductCrawler crawler) throws PGEException, IOException, org.apache.xmlrpc.XmlRpcException
PGEException
IOException
org.apache.xmlrpc.XmlRpcException
protected void verifyIngests(ProductCrawler crawler) throws PGEException
PGEException
protected void updateDynamicMetadata() throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
Copyright © 1999–2017 Apache OODT. All rights reserved.