org.apache.hadoop.ipc.RemoteException.valueOf()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中org.apache.hadoop.ipc.RemoteException.valueOf方法的一些代码示例,展示了RemoteException.valueOf的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RemoteException.valueOf方法的具体详情如下:
包路径:org.apache.hadoop.ipc.RemoteException
类名称:RemoteException
方法名:valueOf

RemoteException.valueOf介绍

[英]Create RemoteException from attributes
[中]从属性创建RemoteException

代码示例

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

@Override
public void startElement(String ns, String localname, String qname,
      Attributes attrs) throws SAXException {
 if (!ContentSummary.class.getName().equals(qname)) {
  if (RemoteException.class.getSimpleName().equals(qname)) {
   throw new SAXException(RemoteException.valueOf(attrs));
  }
  throw new SAXException("Unrecognized entry: " + qname);
 }
 contentsummary = toContentSummary(attrs);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-hdfs

@Override
public void startElement(String ns, String localname, String qname,
      Attributes attrs) throws SAXException {
 if (!ContentSummary.class.getName().equals(qname)) {
  if (RemoteException.class.getSimpleName().equals(qname)) {
   throw new SAXException(RemoteException.valueOf(attrs));
  }
  throw new SAXException("Unrecognized entry: " + qname);
 }
 contentsummary = toContentSummary(attrs);
}

代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core

/** {@inheritDoc} */
public void startElement(String ns, String localname, String qname,
      Attributes attrs) throws SAXException {
 if (!MD5MD5CRC32FileChecksum.class.getName().equals(qname)) {
  if (RemoteException.class.getSimpleName().equals(qname)) {
   throw new SAXException(RemoteException.valueOf(attrs));
  }
  throw new SAXException("Unrecognized entry: " + qname);
 }
 filechecksum = MD5MD5CRC32FileChecksum.valueOf(attrs);
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

/** {@inheritDoc} */
public void startElement(String ns, String localname, String qname,
      Attributes attrs) throws SAXException {
 if (!MD5MD5CRC32FileChecksum.class.getName().equals(qname)) {
  if (RemoteException.class.getSimpleName().equals(qname)) {
   throw new SAXException(RemoteException.valueOf(attrs));
  }
  throw new SAXException("Unrecognized entry: " + qname);
 }
 filechecksum = MD5MD5CRC32FileChecksum.valueOf(attrs);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-hdfs

@Override
public void startElement(String ns, String localname, String qname,
      Attributes attrs) throws SAXException {
 if (!MD5MD5CRC32FileChecksum.class.getName().equals(qname)) {
  if (RemoteException.class.getSimpleName().equals(qname)) {
   throw new SAXException(RemoteException.valueOf(attrs));
  }
  throw new SAXException("Unrecognized entry: " + qname);
 }
 filechecksum = MD5MD5CRC32FileChecksum.valueOf(attrs);
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

@Override
public void startElement(String ns, String localname, String qname,
      Attributes attrs) throws SAXException {
 if (!MD5MD5CRC32FileChecksum.class.getName().equals(qname)) {
  if (RemoteException.class.getSimpleName().equals(qname)) {
   throw new SAXException(RemoteException.valueOf(attrs));
  }
  throw new SAXException("Unrecognized entry: " + qname);
 }
 filechecksum = MD5MD5CRC32FileChecksum.valueOf(attrs);
}

代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core

if (!"file".equals(qname) && !"directory".equals(qname)) {
 if (RemoteException.class.getSimpleName().equals(qname)) {
  throw new SAXException(RemoteException.valueOf(attrs));

代码示例来源:origin: com.facebook.hadoop/hadoop-core

if (!"file".equals(qname) && !"directory".equals(qname)) {
 if (RemoteException.class.getSimpleName().equals(qname)) {
  throw new SAXException(RemoteException.valueOf(attrs));

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

if (!"file".equals(qname) && !"directory".equals(qname)) {
 if (RemoteException.class.getSimpleName().equals(qname)) {
  throw new SAXException(RemoteException.valueOf(attrs));

代码示例来源:origin: ch.cern.hadoop/hadoop-hdfs

if (!"file".equals(qname) && !"directory".equals(qname)) {
 if (RemoteException.class.getSimpleName().equals(qname)) {
  throw new SAXException(RemoteException.valueOf(attrs));

相关文章