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


Java XDR.readString方法代码示例

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


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

示例1: deserialize

import org.apache.hadoop.oncrpc.XDR; //导入方法依赖的package包/类
public static CREATE3Request deserialize(XDR xdr) throws IOException {
  FileHandle handle = readHandle(xdr);
  String name = xdr.readString();
  int mode = xdr.readInt();
  SetAttr3 objAttr = new SetAttr3();
  long verf = 0;
  if ((mode == Nfs3Constant.CREATE_UNCHECKED)
      || (mode == Nfs3Constant.CREATE_GUARDED)) {
    objAttr.deserialize(xdr);
  } else if (mode == Nfs3Constant.CREATE_EXCLUSIVE) {
    verf = xdr.readHyper();
  } else {
    throw new IOException("Wrong create mode:" + mode);
  }
  return new CREATE3Request(handle, name, mode, objAttr, verf);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:17,代码来源:CREATE3Request.java

示例2: umnt

import org.apache.hadoop.oncrpc.XDR; //导入方法依赖的package包/类
@Override
public XDR umnt(XDR xdr, XDR out, int xid, InetAddress client) {
  String path = xdr.readString();
  if (LOG.isDebugEnabled()) {
    LOG.debug("MOUNT UMNT path: " + path + " client: " + client);
  }
  
  String host = client.getHostName();
  mounts.remove(new MountEntry(host, path));
  RpcAcceptedReply.getAcceptInstance(xid, new VerifierNone()).write(out);
  return out;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:13,代码来源:RpcProgramMountd.java

示例3: read

import org.apache.hadoop.oncrpc.XDR; //导入方法依赖的package包/类
@Override
public void read(XDR xdr) {
  mCredentialsLength = xdr.readInt();

  mStamp = xdr.readInt();
  mHostName = xdr.readString();
  mUID = xdr.readInt();
  mGID = xdr.readInt();

  int length = xdr.readInt();
  mAuxGIDs = new int[length];
  for (int i = 0; i < length; i++) {
    mAuxGIDs[i] = xdr.readInt();
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:16,代码来源:CredentialsSys.java

示例4: deserialize

import org.apache.hadoop.oncrpc.XDR; //导入方法依赖的package包/类
public static MKDIR3Request deserialize(XDR xdr) throws IOException {
  FileHandle handle = readHandle(xdr);
  String name = xdr.readString();
  SetAttr3 objAttr = new SetAttr3();
  objAttr.deserialize(xdr);
  return new MKDIR3Request(handle, name, objAttr);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:MKDIR3Request.java

示例5: deserialize

import org.apache.hadoop.oncrpc.XDR; //导入方法依赖的package包/类
public static RENAME3Request deserialize(XDR xdr) throws IOException {
  FileHandle fromDirHandle = readHandle(xdr);
  String fromName = xdr.readString();
  FileHandle toDirHandle = readHandle(xdr);
  String toName = xdr.readString();
  return new RENAME3Request(fromDirHandle, fromName, toDirHandle, toName);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:RENAME3Request.java

示例6: deserialize

import org.apache.hadoop.oncrpc.XDR; //导入方法依赖的package包/类
public static SYMLINK3Request deserialize(XDR xdr) throws IOException {
  FileHandle handle = readHandle(xdr);
  String name = xdr.readString();
  SetAttr3 symAttr = new SetAttr3();
  symAttr.deserialize(xdr);
  String symData = xdr.readString();
  return new SYMLINK3Request(handle, name, symAttr, symData);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:9,代码来源:SYMLINK3Request.java

示例7: deseralize

import org.apache.hadoop.oncrpc.XDR; //导入方法依赖的package包/类
static EntryPlus3 deseralize(XDR xdr) {
  long fileId = xdr.readHyper();
  String name = xdr.readString();
  long cookie = xdr.readHyper();
  xdr.readBoolean();
  Nfs3FileAttributes nameAttr = Nfs3FileAttributes.deserialize(xdr);
  FileHandle objFileHandle = new FileHandle();
  objFileHandle.deserialize(xdr);
  return new EntryPlus3(fileId, name, cookie, nameAttr, objFileHandle);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:11,代码来源:READDIRPLUS3Response.java

示例8: deserialize

import org.apache.hadoop.oncrpc.XDR; //导入方法依赖的package包/类
public static RMDIR3Request deserialize(XDR xdr) throws IOException {
  FileHandle handle = readHandle(xdr);
  String name = xdr.readString();
  return new RMDIR3Request(handle, name);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:6,代码来源:RMDIR3Request.java

示例9: deserialize

import org.apache.hadoop.oncrpc.XDR; //导入方法依赖的package包/类
public static LINK3Request deserialize(XDR xdr) throws IOException {
  FileHandle handle = readHandle(xdr);
  FileHandle fromDirHandle = readHandle(xdr);
  String fromName = xdr.readString();
  return new LINK3Request(handle, fromDirHandle, fromName);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:LINK3Request.java

示例10: deserialize

import org.apache.hadoop.oncrpc.XDR; //导入方法依赖的package包/类
public static REMOVE3Request deserialize(XDR xdr) throws IOException {
  FileHandle handle = readHandle(xdr);
  String name = xdr.readString();
  return new REMOVE3Request(handle, name);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:6,代码来源:REMOVE3Request.java

示例11: deserialize

import org.apache.hadoop.oncrpc.XDR; //导入方法依赖的package包/类
public static LOOKUP3Request deserialize(XDR xdr) throws IOException {
  FileHandle handle = readHandle(xdr);
  String name = xdr.readString();
  return new LOOKUP3Request(handle, name);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:6,代码来源:LOOKUP3Request.java

示例12: deserialzie

import org.apache.hadoop.oncrpc.XDR; //导入方法依赖的package包/类
static Entry3 deserialzie(XDR xdr) {
  long fileId = xdr.readHyper();
  String name = xdr.readString();
  long cookie = xdr.readHyper();
  return new Entry3(fileId, name, cookie);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:READDIR3Response.java


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