public class MockXmlRpcFileManagerClient extends XmlRpcFileManagerClient
XmlRpcFileManagerClient
.Modifier and Type | Class and Description |
---|---|
class |
MockXmlRpcFileManagerClient.MethodCallDetails |
Constructor and Description |
---|
MockXmlRpcFileManagerClient() |
addMetadata, addProductReferences, catalogProduct, getCatalogQuery, getCatalogValues, getDataTransfer, getElementById, getElementByName, getElementByName, getElementsByProductType, getFileManagerUrl, getOrigValues, getProductsByProductType, getProductTypeById, getReducedMetadata, getTopNProducts, getTopNProducts, isAlive, isTransferComplete, main, modifyProduct, moveProduct, pagedQuery, query, refreshConfigAndPolicy, removeProductTransferStatus, setDataTransfer, setFileManagerUrl, setProductTransferStatus, transferFile, transferringProduct, updateMetadata
public MockXmlRpcFileManagerClient() throws ConnectionException, MalformedURLException
public MockXmlRpcFileManagerClient.MethodCallDetails getLastMethodCallDetails()
public String addProductType(ProductType productType)
addProductType
in class XmlRpcFileManagerClient
public Product getProductById(String productId)
getProductById
in class XmlRpcFileManagerClient
public Product getProductByName(String productName)
getProductByName
in class XmlRpcFileManagerClient
public List<Reference> getProductReferences(Product product)
getProductReferences
in class XmlRpcFileManagerClient
public boolean removeProduct(Product product)
removeProduct
in class XmlRpcFileManagerClient
public boolean removeFile(String file)
removeFile
in class XmlRpcFileManagerClient
public byte[] retrieveFile(String filePath, int offset, int numBytes) throws DataTransferException
retrieveFile
in class XmlRpcFileManagerClient
DataTransferException
public FileTransferStatus getCurrentFileTransfer()
getCurrentFileTransfer
in class XmlRpcFileManagerClient
public List<FileTransferStatus> getCurrentFileTransfers()
getCurrentFileTransfers
in class XmlRpcFileManagerClient
public double getRefPctTransferred(Reference ref)
getRefPctTransferred
in class XmlRpcFileManagerClient
public ProductType getProductTypeByName(String productTypeName)
getProductTypeByName
in class XmlRpcFileManagerClient
public ProductPage getFirstPage(ProductType type)
getFirstPage
in class XmlRpcFileManagerClient
public ProductPage getLastPage(ProductType type)
getLastPage
in class XmlRpcFileManagerClient
public ProductPage getNextPage(ProductType type, ProductPage curPage)
getNextPage
in class XmlRpcFileManagerClient
public ProductPage getPrevPage(ProductType type, ProductPage curPage)
getPrevPage
in class XmlRpcFileManagerClient
public int getNumProducts(ProductType type)
getNumProducts
in class XmlRpcFileManagerClient
public double getProductPctTransferred(Product product)
getProductPctTransferred
in class XmlRpcFileManagerClient
public boolean hasProduct(String productName)
hasProduct
in class XmlRpcFileManagerClient
public String ingestProduct(Product p, Metadata m, boolean clientTransfer)
ingestProduct
in class XmlRpcFileManagerClient
public List<ProductType> getProductTypes()
getProductTypes
in class XmlRpcFileManagerClient
public List<QueryResult> complexQuery(ComplexQuery query)
complexQuery
in class XmlRpcFileManagerClient
public Metadata getMetadata(Product p)
getMetadata
in class XmlRpcFileManagerClient
Copyright © 1999–2017 Apache OODT. All rights reserved.