22 #ifndef FsBroker_qfs_QfsBroker_h
23 #define FsBroker_qfs_QfsBroker_h
51 : fname(fname), fd(fd), m_client(client) {};
77 virtual void create(
Response::Callback::Open *cb,
const char *fname, uint32_t flags, int32_t bufsz, int16_t replication, int64_t blksz);
83 bool accurate =
true);
85 uint32_t amount,
bool verify_checksum);
115 #endif // FsBroker_qfs_QfsBroker_h
A memory buffer of static size.
Application handler for append function.
Abstract class to be implemented by brokers.
std::shared_ptr< OpenFileData > OpenFileDataPtr
Flags
Enumeration type for append flags.
Application handler for exists function.
Program options handling.
OpenFileDataQfs * operator->() const
Application handler for length function.
MetricsHandlerPtr m_metrics_handler
Metrics collection handler.
KFS::KfsClient *const m_client
bool status(ContextPtr &context, Timer &timer, Status &status)
Runs a status check on the master.
std::shared_ptr< Properties > PropertiesPtr
Manages file system broker status.
static std::atomic< int > ms_next_fd
Atomic counter for file descriptor assignment.
This class is used to generate and deliver standard responses back to a client.
Application handler for readdir function.
OpenFileDataQfsPtr(OpenFileDataQfs *ofdq)
Application handler for open function.
Declarations for MetricsHandler.
Application handler for read function.
Application handler for open function.
A String class based on std::string.
Declarations for StatusManager.
OpenFileDataQfs(const std::string &fname, int fd, KFS::KfsClient *client)
KFS::KfsClient *const m_client
std::shared_ptr< MetricsHandler > MetricsHandlerPtr
Smart pointer to MetricsHandler.
StatusManager m_status_manager
Server status manager.