public class XmlRpcFileManager extends Object
An XML RPC-based File manager.
Constructor and Description |
---|
XmlRpcFileManager(int port)
Creates a new XmlRpcFileManager with the given metadata store factory, and the given data store factory, on the
given port.
|
public XmlRpcFileManager(int port) throws IOException
Creates a new XmlRpcFileManager with the given metadata store factory, and the given data store factory, on the given port.
port
- The web server port to run the XML Rpc server on, defaults to 1999.IOException
public void setCatalog(Catalog catalog)
public boolean isAlive()
public boolean refreshConfigAndPolicy()
public double getProductPctTransferred(Hashtable<String,Object> productHash)
public double getProductPctTransferredCore(Map<String,Object> productHash)
public boolean removeProductTransferStatus(Hashtable<String,Object> productHash)
public boolean removeProductTransferStatusCore(Map<String,Object> productHash)
public Map<String,Object> pagedQuery(Hashtable<String,Object> queryHash, Hashtable<String,Object> productTypeHash, int pageNum) throws CatalogException
CatalogException
public Map<String,Object> pagedQueryCore(Map<String,Object> queryHash, Map<String,Object> productTypeHash, int pageNum) throws CatalogException
CatalogException
public Map<String,Object> getNextPage(Hashtable<String,Object> productTypeHash, Hashtable<String,Object> currentPageHash)
public Map<String,Object> getNextPageCore(Map<String,Object> productTypeHash, Map<String,Object> currentPageHash)
public Map<String,Object> getPrevPage(Hashtable<String,Object> productTypeHash, Hashtable<String,Object> currentPageHash)
public Map<String,Object> getPrevPageCore(Map<String,Object> productTypeHash, Map<String,Object> currentPageHash)
public String addProductType(Hashtable<String,Object> productTypeHash) throws RepositoryManagerException
RepositoryManagerException
public String addProductTypeCore(Map<String,Object> productTypeHash) throws RepositoryManagerException
RepositoryManagerException
public boolean setProductTransferStatus(Hashtable<String,Object> productHash) throws CatalogException
CatalogException
public boolean setProductTransferStatusCore(Map<String,Object> productHash) throws CatalogException
CatalogException
public int getNumProducts(Hashtable<String,Object> productTypeHash) throws CatalogException
CatalogException
public int getNumProductsCore(Map<String,Object> productTypeHash) throws CatalogException
CatalogException
public List<Map<String,Object>> getTopNProducts(int n) throws CatalogException
CatalogException
public List<Map<String,Object>> getTopNProducts(int n, Hashtable<String,Object> productTypeHash) throws CatalogException
CatalogException
public List<Map<String,Object>> getTopNProductsCore(int n, Map<String,Object> productTypeHash) throws CatalogException
CatalogException
public boolean hasProduct(String productName) throws CatalogException
CatalogException
public Map<String,Object> getMetadata(Hashtable<String,Object> productHash) throws CatalogException
CatalogException
public Map<String,Object> getMetadataCore(Map<String,Object> productHash) throws CatalogException
CatalogException
public Map<String,Object> getReducedMetadata(Hashtable<String,Object> productHash, Vector<String> elements) throws CatalogException
CatalogException
public Map<String,Object> getReducedMetadataCore(Map<String,Object> productHash, Vector<String> elements) throws CatalogException
CatalogException
public List<Map<String,Object>> getProductTypes() throws RepositoryManagerException
RepositoryManagerException
public List<Map<String,Object>> getProductReferences(Hashtable<String,Object> productHash) throws CatalogException
CatalogException
public List<Map<String,Object>> getProductReferencesCore(Map<String,Object> productHash) throws CatalogException
CatalogException
public Map<String,Object> getProductById(String productId) throws CatalogException
CatalogException
public Map<String,Object> getProductByName(String productName) throws CatalogException
CatalogException
public List<Map<String,Object>> getProductsByProductType(Hashtable<String,Object> productTypeHash) throws CatalogException
CatalogException
public List<Map<String,Object>> getProductsByProductTypeCore(Map<String,Object> productTypeHash) throws CatalogException
CatalogException
public List<Map<String,Object>> getElementsByProductType(Map<String,Object> productTypeHash) throws ValidationLayerException
ValidationLayerException
public Map<String,Object> getElementById(String elementId) throws ValidationLayerException
ValidationLayerException
public Map<String,Object> getElementByName(String elementName) throws ValidationLayerException
ValidationLayerException
public List<Map<String,Object>> complexQuery(Hashtable<String,Object> complexQueryHash) throws CatalogException
CatalogException
public List<Map<String,Object>> complexQueryCore(Map<String,Object> complexQueryHash) throws CatalogException
CatalogException
public List<Map<String,Object>> query(Hashtable<String,Object> queryHash, Hashtable<String,Object> productTypeHash) throws CatalogException
CatalogException
public List<Map<String,Object>> queryCore(Map<String,Object> queryHash, Map<String,Object> productTypeHash) throws CatalogException
CatalogException
public Map<String,Object> getProductTypeByName(String productTypeName) throws RepositoryManagerException
RepositoryManagerException
public Map<String,Object> getProductTypeById(String productTypeId) throws RepositoryManagerException
RepositoryManagerException
public boolean updateMetadata(Hashtable<String,Object> productHash, Hashtable<String,Object> metadataHash) throws CatalogException
CatalogException
public boolean updateMetadataCore(Map<String,Object> productHash, Map<String,Object> metadataHash) throws CatalogException
CatalogException
public String catalogProduct(Hashtable<String,Object> productHash) throws CatalogException
CatalogException
public String catalogProductCore(Map<String,Object> productHash) throws CatalogException
CatalogException
public boolean addMetadata(Hashtable<String,Object> productHash, Hashtable<String,String> metadata) throws CatalogException
CatalogException
public boolean addMetadataCore(Map<String,Object> productHash, Map<String,String> metadata) throws CatalogException
CatalogException
public boolean addProductReferencesCore(Map<String,Object> productHash) throws CatalogException
CatalogException
public boolean addProductReferences(Hashtable<String,Object> productHash) throws CatalogException
CatalogException
public String ingestProduct(Hashtable<String,Object> ph, Hashtable<String,String> m, boolean ct) throws CatalogException
CatalogException
public String ingestProductCore(Map<String,Object> productHash, Map<String,String> metadata, boolean clientTransfer) throws CatalogException
CatalogException
public byte[] retrieveFile(String filePath, int offset, int numBytes) throws DataTransferException
DataTransferException
public boolean transferFile(String filePath, byte[] fileData, int offset, int numBytes)
public boolean moveProduct(Hashtable<String,Object> productHash, String newPath) throws DataTransferException
DataTransferException
public boolean moveProductCore(Map<String,Object> productHash, String newPath) throws DataTransferException
DataTransferException
public boolean removeFile(String filePath) throws DataTransferException, IOException
DataTransferException
IOException
public boolean modifyProduct(Hashtable<?,?> productHash) throws CatalogException
CatalogException
public boolean modifyProductCore(Map<?,?> productHash) throws CatalogException
CatalogException
public boolean removeProduct(Hashtable table) throws CatalogException
CatalogException
public boolean removeProduct(Map<String,Object> productHash) throws CatalogException
CatalogException
public Map<String,Object> getCatalogValues(Hashtable<String,Object> metadataHash, Hashtable<String,Object> productTypeHash) throws RepositoryManagerException
RepositoryManagerException
public Map<String,Object> getCatalogValuesCore(Map<String,Object> metadataHash, Map<String,Object> productTypeHash) throws RepositoryManagerException
RepositoryManagerException
public Map<String,Object> getOrigValues(Hashtable<String,Object> metadataHash, Hashtable<String,Object> productTypeHash) throws RepositoryManagerException
RepositoryManagerException
public Map<String,Object> getOrigValuesCore(Map<String,Object> metadataHash, Map<String,Object> productTypeHash) throws RepositoryManagerException
RepositoryManagerException
public Map<String,Object> getCatalogQuery(Hashtable<String,Object> queryHash, Hashtable<String,Object> productTypeHash) throws RepositoryManagerException, QueryFormulationException
public Map<String,Object> getCatalogQueryCore(Map<String,Object> queryHash, Map<String,Object> productTypeHash) throws RepositoryManagerException, QueryFormulationException
public static void main(String[] args) throws IOException
IOException
public boolean shutdown()
Copyright © 1999–2017 Apache OODT. All rights reserved.