当前位置: 首页>>代码示例>>Java>>正文


Java AvroRemoteException.getMessage方法代码示例

本文整理汇总了Java中org.apache.avro.AvroRemoteException.getMessage方法的典型用法代码示例。如果您正苦于以下问题:Java AvroRemoteException.getMessage方法的具体用法?Java AvroRemoteException.getMessage怎么用?Java AvroRemoteException.getMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.avro.AvroRemoteException的用法示例。


在下文中一共展示了AvroRemoteException.getMessage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: transferringProduct

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public boolean transferringProduct(Product product) throws DataTransferException {
    boolean success;

    try {
        success = proxy.transferringProduct(AvroTypeFactory.getAvroProduct(product));
    } catch (AvroRemoteException e) {
        e.printStackTrace();
        throw new DataTransferException(e.getMessage());
    }

    return success;
}
 
开发者ID:apache,项目名称:oodt,代码行数:14,代码来源:AvroFileManagerClient.java

示例2: removeProductTransferStatus

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public boolean removeProductTransferStatus(Product product) throws DataTransferException {
    boolean success;
    try {
        success = proxy.removeProductTransferStatus(AvroTypeFactory.getAvroProduct(product));
    } catch (AvroRemoteException e) {
        throw new DataTransferException(e.getMessage());
    }
    return success;
}
 
开发者ID:apache,项目名称:oodt,代码行数:11,代码来源:AvroFileManagerClient.java

示例3: getReducedMetadata

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public Metadata getReducedMetadata(Product product, List<?> elements) throws CatalogException {
    try {
        return AvroTypeFactory.getMetadata(
                this.proxy.getReducedMetadata(AvroTypeFactory.getAvroProduct(product), (List<String>) elements));
    } catch (AvroRemoteException e) {
        throw new CatalogException(e.getMessage());
    }
}
 
开发者ID:apache,项目名称:oodt,代码行数:10,代码来源:AvroFileManagerClient.java

示例4: moveProduct

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public boolean moveProduct(Product product, String newPath) throws DataTransferException {
    boolean success;
    try {
        success = this.proxy.moveProduct(AvroTypeFactory.getAvroProduct(product), newPath);
    } catch (AvroRemoteException e) {
        throw new DataTransferException(e.getMessage());
    }
    return success;
}
 
开发者ID:apache,项目名称:oodt,代码行数:11,代码来源:AvroFileManagerClient.java

示例5: removeFile

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public boolean removeFile(String filePath) throws DataTransferException {
    try {
        return this.proxy.removeFile(filePath);
    } catch (AvroRemoteException e) {
        throw new DataTransferException(e.getMessage());
    }
}
 
开发者ID:apache,项目名称:oodt,代码行数:9,代码来源:AvroFileManagerClient.java

示例6: getElementsByProductType

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public List<Element> getElementsByProductType(ProductType type) throws ValidationLayerException {
    List<Element> products = new ArrayList<Element>();
    try {
        for (AvroElement ap : this.proxy.getElementsByProductType(AvroTypeFactory.getAvroProductType(type))) {
            products.add(AvroTypeFactory.getElement(ap));
        }
    } catch (AvroRemoteException e) {
        throw new ValidationLayerException(e.getMessage());
    }
    return products;
}
 
开发者ID:apache,项目名称:oodt,代码行数:13,代码来源:AvroFileManagerClient.java

示例7: getCurrentFileTransfer

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public FileTransferStatus getCurrentFileTransfer() throws DataTransferException {
    try {
        return AvroTypeFactory.getFileTransferStatus(this.proxy.getCurrentFileTransfer());
    } catch (AvroRemoteException e) {
        throw new DataTransferException(e.getMessage());
    }
}
 
开发者ID:apache,项目名称:oodt,代码行数:9,代码来源:AvroFileManagerClient.java

示例8: getCurrentFileTransfers

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public List<FileTransferStatus> getCurrentFileTransfers() throws DataTransferException {
    List<FileTransferStatus> fileTransferStatuses = new ArrayList<FileTransferStatus>();
    try {
        for (AvroFileTransferStatus afts : this.proxy.getCurrentFileTransfers()) {
            fileTransferStatuses.add(AvroTypeFactory.getFileTransferStatus(afts));
        }
    } catch (AvroRemoteException e) {
        throw new DataTransferException(e.getMessage());
    }
    return fileTransferStatuses;
}
 
开发者ID:apache,项目名称:oodt,代码行数:13,代码来源:AvroFileManagerClient.java

示例9: getProductPctTransferred

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public double getProductPctTransferred(Product product) throws DataTransferException {
    try {
        return this.proxy.getProductPctTransferred(AvroTypeFactory.getAvroProduct(product));
    } catch (AvroRemoteException e) {
        throw new DataTransferException(e.getMessage());
    }
}
 
开发者ID:apache,项目名称:oodt,代码行数:9,代码来源:AvroFileManagerClient.java

示例10: addMetadata

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public void addMetadata(Product product, Metadata metadata) throws CatalogException {
    try {
        this.proxy.addMetadata(AvroTypeFactory.getAvroProduct(product),
                AvroTypeFactory.getAvroMetadata(metadata));
    } catch (AvroRemoteException e) {
        throw new CatalogException(e.getMessage());
    }

}
 
开发者ID:apache,项目名称:oodt,代码行数:11,代码来源:AvroFileManagerClient.java

示例11: getElementById

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public Element getElementById(String elementId) throws ValidationLayerException {
    try {
        return AvroTypeFactory.getElement(this.proxy.getElementById(elementId));
    } catch (AvroRemoteException e) {
        throw new ValidationLayerException(e.getMessage());
    }
}
 
开发者ID:apache,项目名称:oodt,代码行数:9,代码来源:AvroFileManagerClient.java

示例12: getFirstPage

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public ProductPage getFirstPage(ProductType type) throws CatalogException {
    try {
        return AvroTypeFactory.getProductPage(this.proxy.getFirstPage(AvroTypeFactory.getAvroProductType(type)));
    } catch (AvroRemoteException e) {
        throw new CatalogException(e.getMessage());
    }
}
 
开发者ID:apache,项目名称:oodt,代码行数:9,代码来源:AvroFileManagerClient.java

示例13: getLastPage

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public ProductPage getLastPage(ProductType type) throws CatalogException {
    try {
        return AvroTypeFactory.getProductPage(this.proxy.getLastPage(AvroTypeFactory.getAvroProductType(type)));
    } catch (AvroRemoteException e) {
        throw new CatalogException(e.getMessage());
    }
}
 
开发者ID:apache,项目名称:oodt,代码行数:9,代码来源:AvroFileManagerClient.java

示例14: retrieveFile

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public byte[] retrieveFile(String filePath, int offset, int numBytes) throws DataTransferException {
    try {
        return this.proxy.retrieveFile(filePath, offset, numBytes).array();
    } catch (AvroRemoteException e) {
        throw new DataTransferException(e.getMessage());
    }
}
 
开发者ID:apache,项目名称:oodt,代码行数:9,代码来源:AvroFileManagerClient.java

示例15: updateMetadata

import org.apache.avro.AvroRemoteException; //导入方法依赖的package包/类
@Override
public boolean updateMetadata(Product product, Metadata met) throws CatalogException {
    try {
        return this.proxy.updateMetadata(
                AvroTypeFactory.getAvroProduct(product),
                AvroTypeFactory.getAvroMetadata(met)
        );
    } catch (AvroRemoteException e) {
        throw new CatalogException(e.getMessage());
    }
}
 
开发者ID:apache,项目名称:oodt,代码行数:12,代码来源:AvroFileManagerClient.java


注:本文中的org.apache.avro.AvroRemoteException.getMessage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。