本文整理汇总了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;
}
示例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;
}
示例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());
}
}
示例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;
}
示例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());
}
}
示例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;
}
示例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());
}
}
示例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;
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}