Package org.apache.oodt.cas.filemgr.system

Examples of org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient


   public class NullPTGetProductTypeByNameCliAction extends MockGetProductTypeByNameCliAction {
      @Override
      public XmlRpcFileManagerClient getClient() throws MalformedURLException,
            ConnectionException {
         return new XmlRpcFileManagerClient(new URL("http://localhost:9000"),
               false) {
            @Override
            public ProductType getProductTypeByName(String name) {
               return null;
            }
View Full Code Here


   }

   public class MockAddProductTypeCliAction extends AddProductTypeCliAction {
      public XmlRpcFileManagerClient getClient() throws MalformedURLException,
            ConnectionException {
         return new XmlRpcFileManagerClient(new URL("http://localhost:9000"),
               false) {
            public String addProductType(ProductType type) {
               productTypePassedToClient = type;
               return PRODUCT_TYPE_ID;
            }
View Full Code Here

            fail(e.getMessage());
        }
       
        // now make sure that the file is ingested
        try {
            XmlRpcFileManagerClient fmClient = new XmlRpcFileManagerClient(new URL("http://localhost:"+FM_PORT));
            Product p = fmClient.getProductByName("test.txt");
            assertNotNull(p);
            assertEquals(Product.STATUS_RECEIVED, p.getTransferStatus());
            assertTrue(fmClient.hasProduct("test.txt"));
            fmClient = null;
        } catch (Exception e){
            fail(e.getMessage());
        }
    }
View Full Code Here

   }

   public class MockGetProductByNameCliAction extends GetProductByNameCliAction {
      public XmlRpcFileManagerClient getClient() throws MalformedURLException,
            ConnectionException {
         return new XmlRpcFileManagerClient(new URL("http://localhost:9000"),
               false) {
            public Product getProductByName(String name) {
               Product p = new Product();
               p.setProductId(PRODUCT_ID);
               p.setProductName(name);
View Full Code Here

   }

   public class NullProductGetProductByNameCliAction extends MockGetProductByNameCliAction {
      public XmlRpcFileManagerClient getClient() throws MalformedURLException,
            ConnectionException {
         return new XmlRpcFileManagerClient(new URL("http://localhost:9000"),
               false) {
            public Product getProductByName(String name) {
               return null;
            }
         };
View Full Code Here

   }

   public class MockGetProductByIdCliAction extends GetProductByIdCliAction {
      public XmlRpcFileManagerClient getClient() throws MalformedURLException,
            ConnectionException {
         return new XmlRpcFileManagerClient(new URL("http://localhost:9000"),
               false) {
            public Product getProductById(String productId) {
               Product p = new Product();
               p.setProductId(productId);
               p.setProductName(PRODUCT_NAME);
View Full Code Here

   }

   public class NullProductGetProductByIdCliAction extends MockGetProductByIdCliAction {
      public XmlRpcFileManagerClient getClient() throws MalformedURLException,
            ConnectionException {
         return new XmlRpcFileManagerClient(new URL("http://localhost:9000"),
               false) {
            public Product getProductById(String productId) {
               return null;
            }
         };
View Full Code Here

   public class MockGetCurrentTransfersCliAction extends GetCurrentTransfersCliAction {
      @Override
      public XmlRpcFileManagerClient getClient() throws MalformedURLException,
            ConnectionException {
         return new XmlRpcFileManagerClient(new URL("http://localhost:9000"),
               false) {
            @Override
            public List<FileTransferStatus> getCurrentFileTransfers() {
               status = new FileTransferStatus();
               status.setFileRef(new Reference(ORIG_REF, DS_REF, FILE_SIZE));
View Full Code Here

   public class NullStatusGetCurrentTransfersCliAction extends
         GetCurrentTransfersCliAction {
      @Override
      public XmlRpcFileManagerClient getClient() throws MalformedURLException,
            ConnectionException {
         return new XmlRpcFileManagerClient(new URL("http://localhost:9000"),
               false) {
            @Override
            public List<FileTransferStatus> getCurrentFileTransfers() {
               return null;
            }
View Full Code Here

  
   public class MockDeleteProductByNameCliAction extends DeleteProductByNameCliAction {
      @Override
      public XmlRpcFileManagerClient getClient() throws MalformedURLException,
            ConnectionException {
         return new XmlRpcFileManagerClient(new URL("http://localhost:9000"),
               false) {
            @Override
            public Product getProductByName(String productName) {
               Product p = new Product();
               p.setProductId(PRODUCT_ID);
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient

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.