org.apache.zookeeper.data.ACL.serialize()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(63)

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

ACL.serialize介绍

暂无

代码示例

代码示例来源:origin: apache/zookeeper

public void write(java.io.DataOutput out) throws java.io.IOException {
 BinaryOutputArchive archive = new BinaryOutputArchive(out);
 serialize(archive, "");
}
public void readFields(java.io.DataInput in) throws java.io.IOException {

代码示例来源:origin: org.apache.zookeeper/zookeeper

public void write(java.io.DataOutput out) throws java.io.IOException {
 BinaryOutputArchive archive = new BinaryOutputArchive(out);
 serialize(archive, "");
}
public void readFields(java.io.DataInput in) throws java.io.IOException {

代码示例来源:origin: apache/zookeeper

public synchronized void serialize(OutputArchive oa) throws IOException {
  oa.writeInt(longKeyMap.size(), "map");
  Set<Map.Entry<Long, List<ACL>>> set = longKeyMap.entrySet();
  for (Map.Entry<Long, List<ACL>> val : set) {
    oa.writeLong(val.getKey(), "long");
    List<ACL> aclList = val.getValue();
    oa.startVector(aclList, "acls");
    for (ACL acl : aclList) {
      acl.serialize(oa, "acl");
    }
    oa.endVector(aclList, "acls");
  }
}

代码示例来源:origin: org.apache.zookeeper/zookeeper

public synchronized void serialize(OutputArchive oa) throws IOException {
  oa.writeInt(longKeyMap.size(), "map");
  Set<Map.Entry<Long, List<ACL>>> set = longKeyMap.entrySet();
  for (Map.Entry<Long, List<ACL>> val : set) {
    oa.writeLong(val.getKey(), "long");
    List<ACL> aclList = val.getValue();
    oa.startVector(aclList, "acls");
    for (ACL acl : aclList) {
      acl.serialize(oa, "acl");
    }
    oa.endVector(aclList, "acls");
  }
}

代码示例来源:origin: org.apache.zookeeper/zookeeper

synchronized public void serialize(OutputArchive archive, String tag)
      throws IOException {
    archive.startRecord(this, "node");
    archive.writeBuffer(data, "data");
    archive.startVector(acl, "acl");
    if (acl != null) {
      for (ACL a : acl) {
        a.serialize(archive, "aclEntry");
      }
    }
    archive.endVector(acl, "acl");
    stat.serialize(archive, "stat");
    archive.endRecord(this, "node");
  }
}

代码示例来源:origin: org.apache.hadoop/zookeeper

public void write(java.io.DataOutput out) throws java.io.IOException {
 BinaryOutputArchive archive = new BinaryOutputArchive(out);
 serialize(archive, "");
}
public void readFields(java.io.DataInput in) throws java.io.IOException {

代码示例来源:origin: org.apache.hadoop/zookeeper

private synchronized void serializeList(Map<Long, List<ACL>> longKeyMap,
    OutputArchive oa) throws IOException {
  oa.writeInt(longKeyMap.size(), "map");
  Set<Map.Entry<Long, List<ACL>>> set = longKeyMap.entrySet();
  for (Map.Entry<Long, List<ACL>> val : set) {
    oa.writeLong(val.getKey(), "long");
    List<ACL> aclList = val.getValue();
    oa.startVector(aclList, "acls");
    for (ACL acl : aclList) {
      acl.serialize(oa, "acl");
    }
    oa.endVector(aclList, "acls");
  }
}

代码示例来源:origin: org.apache.hadoop/zookeeper

synchronized public void serialize(OutputArchive archive, String tag)
      throws IOException {
    archive.startRecord(this, "node");
    archive.writeBuffer(data, "data");
    archive.startVector(acl, "acl");
    if (acl != null) {
      for (ACL a : acl) {
        a.serialize(archive, "aclEntry");
      }
    }
    archive.endVector(acl, "acl");
    stat.serialize(archive, "stat");
    archive.endRecord(this, "node");
  }
}

相关文章