27 #ifndef FsBroker_Lib_Request_Parameters_Create_h
28 #define FsBroker_Lib_Request_Parameters_Create_h
40 namespace Parameters {
63 Create(
const string &fname, uint32_t flags, int32_t bufsz,
64 int32_t replication, int64_t blksz)
65 : m_fname(fname), m_flags(flags), m_bufsz(bufsz),
66 m_replication(replication), m_blksz(blksz) {}
70 const char *
get_name() {
return m_fname.c_str(); }
90 uint8_t encoding_version()
const override;
92 size_t encoded_length_internal()
const override;
94 void encode_internal(uint8_t **bufp)
const override;
96 void decode_internal(uint8_t version,
const uint8_t **bufp,
97 size_t *remainp)
override;
119 #endif // FsBroker_Lib_Request_Parameters_Create_h
Create(const string &fname, uint32_t flags, int32_t bufsz, int32_t replication, int64_t blksz)
Constructor.
int32_t get_buffer_size()
Gets buffer size.
int64_t get_block_size()
Gets block size.
int32_t m_replication
Replication.
Declarations for Serializable.
uint32_t m_flags
Create flags.
int32_t get_replication()
Gets replication factor.
Mixin class that provides a standard serialization interface.
const char * get_name()
Gets file name.
int32_t m_bufsz
Buffer size.
int64_t m_blksz
Block size.
uint32_t get_flags()
Gets create flags.
Request parameters for create requests.