Ejemplo n.º 1
0
 public String toString() {
   try {
     java.io.ByteArrayOutputStream s = new java.io.ByteArrayOutputStream();
     CsvOutputArchive a_ = new CsvOutputArchive(s);
     a_.startRecord(this, "");
     a_.writeString(path, "path");
     a_.writeBuffer(data, "data");
     {
       a_.startVector(acl, "acl");
       if (acl != null) {
         int len1 = acl.size();
         for (int vidx1 = 0; vidx1 < len1; vidx1++) {
           com.forest.ape.data.ACL e1 = (com.forest.ape.data.ACL) acl.get(vidx1);
           a_.writeRecord(e1, "e1");
         }
       }
       a_.endVector(acl, "acl");
     }
     a_.writeInt(flags, "flags");
     a_.endRecord(this, "");
     return new String(s.toByteArray(), "UTF-8");
   } catch (Throwable ex) {
     ex.printStackTrace();
   }
   return "ERROR";
 }
Ejemplo n.º 2
0
 public void serialize(OutputArchive a_, String tag) throws java.io.IOException {
   a_.startRecord(this, tag);
   a_.writeString(path, "path");
   {
     a_.startVector(acl, "acl");
     if (acl != null) {
       int len1 = acl.size();
       for (int vidx1 = 0; vidx1 < len1; vidx1++) {
         org.apache.zookeeper.data.ACL e1 = (org.apache.zookeeper.data.ACL) acl.get(vidx1);
         a_.writeRecord(e1, "e1");
       }
     }
     a_.endVector(acl, "acl");
   }
   a_.writeInt(version, "version");
   a_.endRecord(this, tag);
 }
Ejemplo n.º 3
0
 public void serialize(OutputArchive a_, String tag) throws java.io.IOException {
   a_.startRecord(this, tag);
   a_.writeString(path, "path");
   a_.writeBuffer(data, "data");
   {
     a_.startVector(acl, "acl");
     if (acl != null) {
       int len1 = acl.size();
       for (int vidx1 = 0; vidx1 < len1; vidx1++) {
         com.forest.ape.data.ACL e1 = (com.forest.ape.data.ACL) acl.get(vidx1);
         a_.writeRecord(e1, "e1");
       }
     }
     a_.endVector(acl, "acl");
   }
   a_.writeInt(flags, "flags");
   a_.endRecord(this, tag);
 }
Ejemplo n.º 4
0
 public int hashCode() {
   int result = 17;
   int ret;
   ret = path.hashCode();
   result = 37 * result + ret;
   ret = acl.hashCode();
   result = 37 * result + ret;
   ret = (int) version;
   result = 37 * result + ret;
   return result;
 }
Ejemplo n.º 5
0
 public int hashCode() {
   int result = 17;
   int ret;
   ret = path.hashCode();
   result = 37 * result + ret;
   ret = java.util.Arrays.toString(data).hashCode();
   result = 37 * result + ret;
   ret = acl.hashCode();
   result = 37 * result + ret;
   ret = (int) flags;
   result = 37 * result + ret;
   return result;
 }
Ejemplo n.º 6
0
 public boolean equals(Object peer_) {
   if (!(peer_ instanceof SetACLRequest)) {
     return false;
   }
   if (peer_ == this) {
     return true;
   }
   SetACLRequest peer = (SetACLRequest) peer_;
   boolean ret = false;
   ret = path.equals(peer.path);
   if (!ret) return ret;
   ret = acl.equals(peer.acl);
   if (!ret) return ret;
   ret = (version == peer.version);
   if (!ret) return ret;
   return ret;
 }
Ejemplo n.º 7
0
 public boolean equals(Object peer_) {
   if (!(peer_ instanceof CreateRequest)) {
     return false;
   }
   if (peer_ == this) {
     return true;
   }
   CreateRequest peer = (CreateRequest) peer_;
   boolean ret = false;
   ret = path.equals(peer.path);
   if (!ret) return ret;
   ret = org.apache.jute.Utils.bufEquals(data, peer.data);
   if (!ret) return ret;
   ret = acl.equals(peer.acl);
   if (!ret) return ret;
   ret = (flags == peer.flags);
   if (!ret) return ret;
   return ret;
 }
Ejemplo n.º 8
0
 public void deserialize(InputArchive a_, String tag) throws java.io.IOException {
   a_.startRecord(tag);
   path = a_.readString("path");
   {
     Index vidx1 = a_.startVector("acl");
     if (vidx1 != null) {
       acl = new java.util.ArrayList<org.apache.zookeeper.data.ACL>();
       for (; !vidx1.done(); vidx1.incr()) {
         org.apache.zookeeper.data.ACL e1;
         e1 = new org.apache.zookeeper.data.ACL();
         a_.readRecord(e1, "e1");
         acl.add(e1);
       }
     }
     a_.endVector("acl");
   }
   version = a_.readInt("version");
   a_.endRecord(tag);
 }
Ejemplo n.º 9
0
 public void deserialize(InputArchive a_, String tag) throws java.io.IOException {
   a_.startRecord(tag);
   path = a_.readString("path");
   data = a_.readBuffer("data");
   {
     Index vidx1 = a_.startVector("acl");
     if (vidx1 != null) {
       acl = new java.util.ArrayList<com.forest.ape.data.ACL>();
       for (; !vidx1.done(); vidx1.incr()) {
         com.forest.ape.data.ACL e1;
         e1 = new com.forest.ape.data.ACL();
         a_.readRecord(e1, "e1");
         acl.add(e1);
       }
     }
     a_.endVector("acl");
   }
   flags = a_.readInt("flags");
   a_.endRecord(tag);
 }