public class XmlRpcFileManagerClient extends Object
The XML RPC based file manager client.
| Constructor and Description |
|---|
XmlRpcFileManagerClient(URL url) |
XmlRpcFileManagerClient(URL url,
boolean testConnection)
Constructs a new XmlRpcFileManagerClient with the given
url. |
public XmlRpcFileManagerClient(URL url) throws ConnectionException
ConnectionExceptionpublic XmlRpcFileManagerClient(URL url, boolean testConnection) throws ConnectionException
Constructs a new XmlRpcFileManagerClient with the given url.
url - The url pointer to the xml rpc file manager service.testConnection - Whether or not to check if server at given url is alive.ConnectionExceptionpublic boolean refreshConfigAndPolicy()
public boolean isAlive()
public boolean transferringProduct(Product product) throws DataTransferException
DataTransferExceptionpublic boolean removeProductTransferStatus(Product product) throws DataTransferException
DataTransferExceptionpublic boolean isTransferComplete(Product product) throws DataTransferException
DataTransferExceptionpublic boolean moveProduct(Product product, String newPath) throws DataTransferException
DataTransferExceptionpublic boolean modifyProduct(Product product) throws CatalogException
CatalogExceptionpublic boolean removeProduct(Product product) throws CatalogException
CatalogExceptionpublic FileTransferStatus getCurrentFileTransfer() throws DataTransferException
DataTransferExceptionpublic List<FileTransferStatus> getCurrentFileTransfers() throws DataTransferException
DataTransferExceptionpublic double getProductPctTransferred(Product product) throws DataTransferException
DataTransferExceptionpublic double getRefPctTransferred(Reference reference) throws DataTransferException
DataTransferExceptionpublic ProductPage pagedQuery(Query query, ProductType type, int pageNum) throws CatalogException
CatalogExceptionpublic ProductPage getFirstPage(ProductType type) throws CatalogException
CatalogExceptionpublic ProductPage getLastPage(ProductType type) throws CatalogException
CatalogExceptionpublic ProductPage getNextPage(ProductType type, ProductPage currPage) throws CatalogException
CatalogExceptionpublic ProductPage getPrevPage(ProductType type, ProductPage currPage) throws CatalogException
CatalogExceptionpublic String addProductType(ProductType type) throws RepositoryManagerException
RepositoryManagerExceptionpublic boolean hasProduct(String productName) throws CatalogException
CatalogExceptionpublic int getNumProducts(ProductType type) throws CatalogException
CatalogExceptionpublic List<Product> getTopNProducts(int n) throws CatalogException
CatalogExceptionpublic List<Product> getTopNProducts(int n, ProductType type) throws CatalogException
CatalogExceptionpublic void setProductTransferStatus(Product product) throws CatalogException
CatalogExceptionpublic void addProductReferences(Product product) throws CatalogException
CatalogExceptionpublic void addMetadata(Product product, Metadata metadata) throws CatalogException
CatalogExceptionpublic boolean updateMetadata(Product product, Metadata met) throws CatalogException
CatalogExceptionpublic String catalogProduct(Product product) throws CatalogException
CatalogExceptionpublic Metadata getMetadata(Product product) throws CatalogException
CatalogExceptionpublic Metadata getReducedMetadata(Product product, List<?> elements) throws CatalogException
CatalogExceptionpublic boolean removeFile(String filePath) throws DataTransferException
DataTransferExceptionpublic byte[] retrieveFile(String filePath, int offset, int numBytes) throws DataTransferException
DataTransferExceptionpublic void transferFile(String filePath, byte[] fileData, int offset, int numBytes) throws DataTransferException
DataTransferExceptionpublic List<Product> getProductsByProductType(ProductType type) throws CatalogException
CatalogExceptionpublic List<Element> getElementsByProductType(ProductType type) throws ValidationLayerException
ValidationLayerExceptionpublic Element getElementById(String elementId) throws ValidationLayerException
ValidationLayerExceptionpublic Element getElementByName(String elementName) throws ValidationLayerException
ValidationLayerExceptionpublic Element getElementByName(String elementName, ProductType type) throws ValidationLayerException
ValidationLayerExceptionpublic List<QueryResult> complexQuery(ComplexQuery complexQuery) throws CatalogException
CatalogExceptionpublic List<Product> query(Query query, ProductType type) throws CatalogException
CatalogExceptionpublic ProductType getProductTypeByName(String productTypeName) throws RepositoryManagerException
RepositoryManagerExceptionpublic ProductType getProductTypeById(String productTypeId) throws RepositoryManagerException
RepositoryManagerExceptionpublic List<ProductType> getProductTypes() throws RepositoryManagerException
RepositoryManagerExceptionpublic List<Reference> getProductReferences(Product product) throws CatalogException
CatalogExceptionpublic Product getProductById(String productId) throws CatalogException
CatalogExceptionpublic Product getProductByName(String productName) throws CatalogException
CatalogExceptionpublic String ingestProduct(Product product, Metadata metadata, boolean clientTransfer) throws VersioningException, org.apache.xmlrpc.XmlRpcException, FileManagerException
VersioningExceptionorg.apache.xmlrpc.XmlRpcExceptionFileManagerExceptionpublic Metadata getCatalogValues(Metadata metadata, ProductType productType) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcExceptionIOExceptionpublic Metadata getOrigValues(Metadata metadata, ProductType productType) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcExceptionIOExceptionpublic Query getCatalogQuery(Query query, ProductType productType) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcExceptionIOExceptionpublic static void main(String[] args)
public URL getFileManagerUrl()
public void setFileManagerUrl(URL fileManagerUrl)
fileManagerUrl - The fileManagerUrl to set.public DataTransfer getDataTransfer()
public void setDataTransfer(DataTransfer dataTransfer)
dataTransfer - The dataTransfer to set.Copyright © 1999–2017 Apache OODT. All rights reserved.