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
WorkflowTaskInstanceRuns the Task with the specified metadata context.
run in interface WorkflowTaskInstancemetadata - The TaskContext of metadata that is shared between the tasks.config - The static configuration metadata for this task.WorkflowTaskInstanceExceptionprotected void updateStatus(String status) throws PGEException, org.apache.xmlrpc.XmlRpcException, IOException
PGEExceptionorg.apache.xmlrpc.XmlRpcExceptionIOExceptionprotected Logger createLogger() throws IOException, PGEException
IOExceptionPGEExceptionprotected String createLogFileName()
protected PgeMetadata createPgeMetadata(Metadata dynMetadata, WorkflowTaskConfiguration config)
protected void runPropertyAdders()
                          throws PGEException
PGEExceptionprotected ConfigFilePropertyAdder loadPropertyAdder(String propertyAdderClasspath)
protected void runPropertyAdder(ConfigFilePropertyAdder propAdder)
protected XmlRpcWorkflowManagerClient createWorkflowManagerClient() throws MalformedURLException
MalformedURLExceptionprotected String getWorkflowInstanceId()
protected void dumpMetadataIfRequested()
                                throws IOException
IOExceptionprotected String getDumpMetadataPath()
protected String getDumpMetadataName()
protected void createExeDir()
                     throws PGEException
PGEExceptionprotected void createOuputDirsIfRequested()
                                   throws PGEException
PGEExceptionprotected void stageFiles()
                   throws PGEException,
                          IOException,
                          ConnectionException,
                          CatalogException,
                          URISyntaxException,
                          DataTransferException,
                          InstantiationException
protected FileStager getFileStager()
protected void createDynamicConfigFiles()
                                 throws IOException,
                                        PGEException
IOExceptionPGEExceptionprotected void createDynamicConfigFile(DynamicConfigFile dynamicConfigFile) throws PGEException, IOException
PGEExceptionIOExceptionprotected ScriptFile buildPgeRunScript()
protected File getScriptPath()
protected String getPgeScriptName()
protected void runPge()
               throws PGEException,
                      org.apache.xmlrpc.XmlRpcException
PGEExceptionorg.apache.xmlrpc.XmlRpcExceptionprotected boolean wasPgeSuccessful(int returnCode)
protected void processOutput()
                      throws IOException
IOExceptionprotected File renameFile(File file, PathUtilsNamingConvention renamingConv) throws NamingConventionException
NamingConventionExceptionprotected 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
IOExceptionprotected ProductCrawler createProductCrawler() throws MalformedURLException, IllegalAccessException, CrawlerActionException, MetExtractionException, InstantiationException, FileNotFoundException, ClassNotFoundException
protected void runIngestCrawler(ProductCrawler crawler) throws PGEException, IOException, org.apache.xmlrpc.XmlRpcException
PGEExceptionIOExceptionorg.apache.xmlrpc.XmlRpcExceptionprotected void verifyIngests(ProductCrawler crawler) throws PGEException
PGEExceptionprotected void updateDynamicMetadata()
                              throws org.apache.xmlrpc.XmlRpcException,
                                     IOException
org.apache.xmlrpc.XmlRpcExceptionIOExceptionCopyright © 1999–2017 Apache OODT. All rights reserved.