public class FileManagerUtils extends Object implements PCSConfigMetadata
CLIENT_TRANSFER_SERVICE_FACTORY, CONF_FILE_BUILD, CONFIG_FILE_SCHEMA_PATH, CRAWLER_CLEANUP, CRAWLER_CRAWLDIRS, CRAWLING, FILE_MANAGER_URL, JAVA_EXT_DIR, JAVA_MAIN_CLASS, MAX_ALLOWABLE_GAP_MINUTES, NUM_JAVA_EXT_DIRS, PGE_CONFIG_FILE_NAME, PGE_CONFIG_FILE_PROPERTY_ADDER_CLASS, PGE_LOG_FILE_NAME, PGE_TASK_TYPE, PGE_TYPE_GDS_ADAPTOR, PGE_TYPE_GDS_PGE, RUNNING_PGE, SCF_FILE_MANAGER_URL, STAGING_INPUT, UNKNOWN, WORKFLOW_INST_ID, WORKFLOW_MANAGER_URL, WORKFLOW_MGR_URL
Constructor and Description |
---|
FileManagerUtils(String fmUrlStr) |
FileManagerUtils(URL fileMgrUrl) |
FileManagerUtils(XmlRpcFileManagerClient client) |
public FileManagerUtils(URL fileMgrUrl)
public FileManagerUtils(String fmUrlStr)
public FileManagerUtils(XmlRpcFileManagerClient client)
public List safeGetTopNProducts(int n)
public Product getLatestProductByName(String prodName, String productTypeName)
public Product getLatestProductByName(String prodName, ProductType type)
public List queryAndReturnMetadata(Query query, ProductType type)
public List safeIssueQuery(Query query, ProductType type)
public ProductType safeGetProductTypeByName(String productTypeName)
public ProductType safeGetProductTypeById(String productTypeId)
public List safeGetProductTypes()
public Product getLatestProduct(Query query, ProductType type)
public int safeGetNumProducts(ProductType type)
type
- The given type.public ProductPage safeFirstPage(ProductType type)
type
- Gets the first page of products for this type.public XmlRpcFileManagerClient getFmgrClient()
public void setFmgrClient(XmlRpcFileManagerClient fmgrClient)
fmgrClient
- the fmgrClient to setpublic URL getFmUrl()
URL
to the File Manager that this FileManagerUtils
object connects to.Copyright © 1999–2017 Apache OODT. All rights reserved.