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
ConnectionException
public 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.ConnectionException
public boolean refreshConfigAndPolicy()
public boolean isAlive()
public boolean transferringProduct(Product product) throws DataTransferException
DataTransferException
public boolean removeProductTransferStatus(Product product) throws DataTransferException
DataTransferException
public boolean isTransferComplete(Product product) throws DataTransferException
DataTransferException
public boolean moveProduct(Product product, String newPath) throws DataTransferException
DataTransferException
public boolean modifyProduct(Product product) throws CatalogException
CatalogException
public boolean removeProduct(Product product) throws CatalogException
CatalogException
public FileTransferStatus getCurrentFileTransfer() throws DataTransferException
DataTransferException
public List<FileTransferStatus> getCurrentFileTransfers() throws DataTransferException
DataTransferException
public double getProductPctTransferred(Product product) throws DataTransferException
DataTransferException
public double getRefPctTransferred(Reference reference) throws DataTransferException
DataTransferException
public ProductPage pagedQuery(Query query, ProductType type, int pageNum) throws CatalogException
CatalogException
public ProductPage getFirstPage(ProductType type) throws CatalogException
CatalogException
public ProductPage getLastPage(ProductType type) throws CatalogException
CatalogException
public ProductPage getNextPage(ProductType type, ProductPage currPage) throws CatalogException
CatalogException
public ProductPage getPrevPage(ProductType type, ProductPage currPage) throws CatalogException
CatalogException
public String addProductType(ProductType type) throws RepositoryManagerException
RepositoryManagerException
public boolean hasProduct(String productName) throws CatalogException
CatalogException
public int getNumProducts(ProductType type) throws CatalogException
CatalogException
public List<Product> getTopNProducts(int n) throws CatalogException
CatalogException
public List<Product> getTopNProducts(int n, ProductType type) throws CatalogException
CatalogException
public void setProductTransferStatus(Product product) throws CatalogException
CatalogException
public void addProductReferences(Product product) throws CatalogException
CatalogException
public void addMetadata(Product product, Metadata metadata) throws CatalogException
CatalogException
public boolean updateMetadata(Product product, Metadata met) throws CatalogException
CatalogException
public String catalogProduct(Product product) throws CatalogException
CatalogException
public Metadata getMetadata(Product product) throws CatalogException
CatalogException
public Metadata getReducedMetadata(Product product, List<?> elements) throws CatalogException
CatalogException
public boolean removeFile(String filePath) throws DataTransferException
DataTransferException
public byte[] retrieveFile(String filePath, int offset, int numBytes) throws DataTransferException
DataTransferException
public void transferFile(String filePath, byte[] fileData, int offset, int numBytes) throws DataTransferException
DataTransferException
public List<Product> getProductsByProductType(ProductType type) throws CatalogException
CatalogException
public List<Element> getElementsByProductType(ProductType type) throws ValidationLayerException
ValidationLayerException
public Element getElementById(String elementId) throws ValidationLayerException
ValidationLayerException
public Element getElementByName(String elementName) throws ValidationLayerException
ValidationLayerException
public Element getElementByName(String elementName, ProductType type) throws ValidationLayerException
ValidationLayerException
public List<QueryResult> complexQuery(ComplexQuery complexQuery) throws CatalogException
CatalogException
public List<Product> query(Query query, ProductType type) throws CatalogException
CatalogException
public ProductType getProductTypeByName(String productTypeName) throws RepositoryManagerException
RepositoryManagerException
public ProductType getProductTypeById(String productTypeId) throws RepositoryManagerException
RepositoryManagerException
public List<ProductType> getProductTypes() throws RepositoryManagerException
RepositoryManagerException
public List<Reference> getProductReferences(Product product) throws CatalogException
CatalogException
public Product getProductById(String productId) throws CatalogException
CatalogException
public Product getProductByName(String productName) throws CatalogException
CatalogException
public String ingestProduct(Product product, Metadata metadata, boolean clientTransfer) throws VersioningException, org.apache.xmlrpc.XmlRpcException, FileManagerException
VersioningException
org.apache.xmlrpc.XmlRpcException
FileManagerException
public Metadata getCatalogValues(Metadata metadata, ProductType productType) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public Metadata getOrigValues(Metadata metadata, ProductType productType) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public Query getCatalogQuery(Query query, ProductType productType) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public 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.