Package org.apache.oodt.cas.filemgr.datatransfer

Examples of org.apache.oodt.cas.filemgr.datatransfer.LocalDataTransferFactory


        System.setProperties(initialProperties);
    }

    public void testProductTypeMethods() throws RepositoryManagerException, MalformedURLException, ConnectionException {
        XmlRpcFileManagerClient fmClient = new XmlRpcFileManagerClient(new URL("http://localhost:" + FILEMGR_PORT));
        fmClient.setDataTransfer(new LocalDataTransferFactory().createDataTransfer());
       
        ProductType productType = fmClient.getProductTypeByName("GenericFile");
        Hashtable<String, Object> productTypeHash = XmlRpcStructFactory.getXmlRpcProductType(productType);
        ProductType convBackProdType = XmlRpcStructFactory.getProductTypeFromXmlRpc(productTypeHash);
       
View Full Code Here



    public String getProductByID(OODTConfig config, String id) throws CatalogException, IOException, DataTransferException {
        Product product = config.getXMLRpcClient().getProductById(id);
        product.setProductReferences(config.getXMLRpcClient().getProductReferences(product));
        LocalDataTransferFactory ldtf = new LocalDataTransferFactory();
        DataTransfer dt = ldtf.createDataTransfer();
        String rand = UUID.randomUUID().toString();
        File theDir = new File("/tmp/oodt/" + rand);
        boolean mkdir = false;
        if (!theDir.exists()) {
            mkdir = theDir.mkdir();
View Full Code Here

    }

    public String getProductByName(OODTConfig config, String name) throws CatalogException, IOException, DataTransferException {
        Product product = config.getXMLRpcClient().getProductByName(name);
        product.setProductReferences(config.getXMLRpcClient().getProductReferences(product));
        LocalDataTransferFactory ldtf = new LocalDataTransferFactory();
        DataTransfer dt = ldtf.createDataTransfer();
        String rand = UUID.randomUUID().toString();
        File theDir = new File("/tmp/oodt/" + rand);
        boolean mkdir = false;
        if (!theDir.exists()) {
            mkdir = theDir.mkdir();
View Full Code Here

        fmServer.shutdown();
    }

    public void testProductTypeMethods() throws RepositoryManagerException, MalformedURLException, ConnectionException {
        XmlRpcFileManagerClient fmClient = new XmlRpcFileManagerClient(new URL("http://localhost:" + FILEMGR_PORT));
        fmClient.setDataTransfer(new LocalDataTransferFactory().createDataTransfer());
       
        ProductType productType = fmClient.getProductTypeByName("GenericFile");
        Hashtable<String, Object> productTypeHash = XmlRpcStructFactory.getXmlRpcProductType(productType);
        ProductType convBackProdType = XmlRpcStructFactory.getProductTypeFromXmlRpc(productTypeHash);
       
View Full Code Here

        fmServer.shutdown();
    }

    public void testProductTypeMethods() throws RepositoryManagerException, MalformedURLException, ConnectionException {
        XmlRpcFileManagerClient fmClient = new XmlRpcFileManagerClient(new URL("http://localhost:" + FILEMGR_PORT));
        fmClient.setDataTransfer(new LocalDataTransferFactory().createDataTransfer());
       
        ProductType productType = fmClient.getProductTypeByName("GenericFile");
        Hashtable<String, Object> productTypeHash = XmlRpcStructFactory.getXmlRpcProductType(productType);
        ProductType convBackProdType = XmlRpcStructFactory.getProductTypeFromXmlRpc(productTypeHash);
       
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.filemgr.datatransfer.LocalDataTransferFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.