/** * set metadata items to storage server * * @param file_id the file id(including group name and filename) * @param meta_list meta item array * @param op_flag flag, can be one of following values: <br> * <ul><li> ProtoCommon.STORAGE_SET_METADATA_FLAG_OVERWRITE: overwrite all old * metadata items</li></ul> * <ul><li> ProtoCommon.STORAGE_SET_METADATA_FLAG_MERGE: merge, insert when * the metadata item not exist, otherwise update it</li></ul> * @return 0 for success, !=0 fail (error code) */ public int set_metadata1(String file_id, NameValuePair[] meta_list, byte op_flag) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.set_metadata(parts[0], parts[1], meta_list, op_flag); }
/** * set metadata items to storage server * * @param file_id the file id(including group name and filename) * @param meta_list meta item array * @param op_flag flag, can be one of following values: <br> * <ul><li> ProtoCommon.STORAGE_SET_METADATA_FLAG_OVERWRITE: overwrite all old * metadata items</li></ul> * <ul><li> ProtoCommon.STORAGE_SET_METADATA_FLAG_MERGE: merge, insert when * the metadata item not exist, otherwise update it</li></ul> * @return 0 for success, !=0 fail (error code) */ public int set_metadata1(String file_id, NameValuePair[] meta_list, byte op_flag) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.set_metadata(parts[0], parts[1], meta_list, op_flag); }
/** * set metadata items to storage server * @param file_id the file id(including group name and filename) * @param meta_list meta item array * @param op_flag flag, can be one of following values: <br> * <ul><li> ProtoCommon.STORAGE_SET_METADATA_FLAG_OVERWRITE: overwrite all old * metadata items</li></ul> * <ul><li> ProtoCommon.STORAGE_SET_METADATA_FLAG_MERGE: merge, insert when * the metadata item not exist, otherwise update it</li></ul> * @return 0 for success, !=0 fail (error code) */ public int set_metadata1(String file_id, NameValuePair[] meta_list, byte op_flag) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.set_metadata(parts[0], parts[1], meta_list, op_flag); }
/** * set metadata items to storage server * * @param file_id the file id(including group name and filename) * @param meta_list meta item array * @param op_flag flag, can be one of following values: <br> * <ul><li> ProtoCommon.STORAGE_SET_METADATA_FLAG_OVERWRITE: overwrite all old * metadata items</li></ul> * <ul><li> ProtoCommon.STORAGE_SET_METADATA_FLAG_MERGE: merge, insert when * the metadata item not exist, otherwise update it</li></ul> * @return 0 for success, !=0 fail (error code) */ public int set_metadata1(String file_id, NameValuePair[] meta_list, byte op_flag) throws IOException, FsException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.set_metadata(parts[0], parts[1], meta_list, op_flag); }
/** * set metadata items to storage server * * @param file_id the file id(including group name and filename) * @param meta_list meta item array * @param op_flag flag, can be one of following values: <br> * <ul><li> ProtoCommon.STORAGE_SET_METADATA_FLAG_OVERWRITE: overwrite all old * metadata items</li></ul> * <ul><li> ProtoCommon.STORAGE_SET_METADATA_FLAG_MERGE: merge, insert when * the metadata item not exist, otherwise update it</li></ul> * @return 0 for success, !=0 fail (error code) */ public int set_metadata1(String file_id, NameValuePair[] meta_list, byte op_flag) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return this.errno; } return this.set_metadata(parts[0], parts[1], meta_list, op_flag); }