Пример #1
0
 public bool rm(Pathname path, bool recursive)
 {
     send_rm(path, recursive);
     return recv_rm();
 }
Пример #2
0
 public FileStatus stat(Pathname path)
 {
     send_stat(path);
     return recv_stat();
 }
Пример #3
0
 public List<BlockLocation> getFileBlockLocations(Pathname path, long start, long length)
 {
     send_getFileBlockLocations(path, start, length);
     return recv_getFileBlockLocations();
 }
Пример #4
0
 public bool mkdirs(Pathname path)
 {
     send_mkdirs(path);
     return recv_mkdirs();
 }
Пример #5
0
 public void chown(Pathname path, string owner, string group)
 {
     send_chown(path, owner, group);
     recv_chown();
 }
Пример #6
0
 public ThriftHandle createFile(Pathname path, short mode, bool overwrite, int bufferSize, short block_replication, long blocksize)
 {
     send_createFile(path, mode, overwrite, bufferSize, block_replication, blocksize);
     return recv_createFile();
 }
Пример #7
0
 public void send_listStatus(Pathname path)
 {
     oprot_.WriteMessageBegin(new TMessage("listStatus", TMessageType.Call, seqid_));
     listStatus_args args = new listStatus_args();
     args.Path = path;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Пример #8
0
 public ThriftHandle append(Pathname path)
 {
     send_append(path);
     return recv_append();
 }
Пример #9
0
 public void send_createFile(Pathname path, short mode, bool overwrite, int bufferSize, short block_replication, long blocksize)
 {
     oprot_.WriteMessageBegin(new TMessage("createFile", TMessageType.Call, seqid_));
     createFile_args args = new createFile_args();
     args.Path = path;
     args.Mode = mode;
     args.Overwrite = overwrite;
     args.BufferSize = bufferSize;
     args.Block_replication = block_replication;
     args.Blocksize = blocksize;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Пример #10
0
 public void send_getFileBlockLocations(Pathname path, long start, long length)
 {
     oprot_.WriteMessageBegin(new TMessage("getFileBlockLocations", TMessageType.Call, seqid_));
     getFileBlockLocations_args args = new getFileBlockLocations_args();
     args.Path = path;
     args.Start = start;
     args.Length = length;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Пример #11
0
 public void send_create(Pathname path)
 {
     oprot_.WriteMessageBegin(new TMessage("create", TMessageType.Call, seqid_));
     create_args args = new create_args();
     args.Path = path;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Пример #12
0
 public void send_chown(Pathname path, string owner, string group)
 {
     oprot_.WriteMessageBegin(new TMessage("chown", TMessageType.Call, seqid_));
     chown_args args = new chown_args();
     args.Path = path;
     args.Owner = owner;
     args.Group = group;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Пример #13
0
 public void send_chmod(Pathname path, short mode)
 {
     oprot_.WriteMessageBegin(new TMessage("chmod", TMessageType.Call, seqid_));
     chmod_args args = new chmod_args();
     args.Path = path;
     args.Mode = mode;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Пример #14
0
 public void Read(TProtocol iprot)
 {
     TField field;
     iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 1:
       if (field.Type == TType.Struct) {
     Path = new Pathname();
     Path.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.I16) {
     Mode = iprot.ReadI16();
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 3:
       if (field.Type == TType.Bool) {
     Overwrite = iprot.ReadBool();
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 4:
       if (field.Type == TType.I32) {
     BufferSize = iprot.ReadI32();
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 5:
       if (field.Type == TType.I16) {
     Block_replication = iprot.ReadI16();
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 6:
       if (field.Type == TType.I64) {
     Blocksize = iprot.ReadI64();
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
Пример #15
0
 public void send_mkdirs(Pathname path)
 {
     oprot_.WriteMessageBegin(new TMessage("mkdirs", TMessageType.Call, seqid_));
     mkdirs_args args = new mkdirs_args();
     args.Path = path;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Пример #16
0
 public void Read(TProtocol iprot)
 {
     TField field;
     iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 1:
       if (field.Type == TType.Struct) {
     Path = new Pathname();
     Path.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.String) {
     Owner = iprot.ReadString();
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 3:
       if (field.Type == TType.String) {
     Group = iprot.ReadString();
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
Пример #17
0
 public void send_rename(Pathname path, Pathname dest)
 {
     oprot_.WriteMessageBegin(new TMessage("rename", TMessageType.Call, seqid_));
     rename_args args = new rename_args();
     args.Path = path;
     args.Dest = dest;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Пример #18
0
 public void chmod(Pathname path, short mode)
 {
     send_chmod(path, mode);
     recv_chmod();
 }
Пример #19
0
 public void send_rm(Pathname path, bool recursive)
 {
     oprot_.WriteMessageBegin(new TMessage("rm", TMessageType.Call, seqid_));
     rm_args args = new rm_args();
     args.Path = path;
     args.Recursive = recursive;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Пример #20
0
 public ThriftHandle create(Pathname path)
 {
     send_create(path);
     return recv_create();
 }
Пример #21
0
 public void send_setReplication(Pathname path, short replication)
 {
     oprot_.WriteMessageBegin(new TMessage("setReplication", TMessageType.Call, seqid_));
     setReplication_args args = new setReplication_args();
     args.Path = path;
     args.Replication = replication;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Пример #22
0
 public bool exists(Pathname path)
 {
     send_exists(path);
     return recv_exists();
 }
Пример #23
0
 public void send_stat(Pathname path)
 {
     oprot_.WriteMessageBegin(new TMessage("stat", TMessageType.Call, seqid_));
     stat_args args = new stat_args();
     args.Path = path;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Пример #24
0
 public List<FileStatus> listStatus(Pathname path)
 {
     send_listStatus(path);
     return recv_listStatus();
 }
Пример #25
0
 public void setReplication(Pathname path, short replication)
 {
     send_setReplication(path, replication);
     recv_setReplication();
 }
Пример #26
0
 public ThriftHandle open(Pathname path)
 {
     send_open(path);
     return recv_open();
 }
Пример #27
0
 public bool rename(Pathname path, Pathname dest)
 {
     send_rename(path, dest);
     return recv_rename();
 }