irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

irods::impostor_resource Class Reference

#include <irods_resource_plugin_impostor.hpp>

Inheritance diagram for irods::impostor_resource:
[legend]
Collaboration diagram for irods::impostor_resource:
[legend]

Public Member Functions

 impostor_resource (const std::string &_inst_name, const std::string &_context)
 
error need_post_disconnect_maintenance_operation (bool &_b)
 
error post_disconnect_maintenance_operation (pdmo_type &_op)
 
- Public Member Functions inherited from irods::resource
 resource (const std::string &_inst, const std::string &_ctx)
 
virtual ~resource ()
 
 resource (const resource &_rhs)
 
resourceoperator= (const resource &_rhs)
 
virtual error add_child (const std::string &, const std::string &, resource_ptr)
 
virtual error remove_child (const std::string &)
 
virtual size_t num_children ()
 
virtual bool has_child (const std::string &_name)
 
virtual void children (std::vector< std::string > &)
 
virtual error set_parent (const resource_ptr &)
 
virtual error get_parent (resource_ptr &)
 
- Public Member Functions inherited from irods::plugin_base
 plugin_base (const std::string &_n, const std::string &_c)
 
 plugin_base (const plugin_base &_rhs)
 
plugin_baseoperator= (const plugin_base &_rhs)
 
virtual ~plugin_base ()
 
error enumerate_operations (std::vector< std::string > &_ops)
 
const std::string & context_string () const
 
double interface_version () const
 
error add_operation (const std::string &_op, std::function< error(plugin_context &)> _f)
 
template<typename... types_t>
error add_operation (const std::string &_op, std::function< error(plugin_context &, types_t...)> _f)
 
template<typename... types_t>
error call (rsComm_t *_comm, const std::string &_operation_name, irods::first_class_object_ptr _fco, types_t... _t)
 
template<typename T >
error get_property (const std::string &_key, T &_val)
 
template<typename T >
error set_property (const std::string &_key, const T &_val)
 
void set_start_operation (maintenance_operation_t _op)
 
void set_stop_operation (maintenance_operation_t _op)
 
error start_operation ()
 
error stop_operation ()
 

Static Public Member Functions

static error report_error (plugin_context &)
 

Additional Inherited Members

- Protected Attributes inherited from irods::resource
resource_child_map children_
 
resource_ptr parent_
 
- Protected Attributes inherited from irods::plugin_base
std::string context_
 
std::string instance_name_
 
double interface_version_
 
plugin_property_map properties_
 
std::vector< std::pair< std::string, std::string > > ops_for_delay_load_
 
lookup_table< boost::any > operations_
 
maintenance_operation_t start_operation_
 
maintenance_operation_t stop_operation_
 

Detailed Description

Definition at line 8 of file irods_resource_plugin_impostor.hpp.

Constructor & Destructor Documentation

◆ impostor_resource()

irods::impostor_resource::impostor_resource ( const std::string &  _inst_name,
const std::string &  _context 
)

Definition at line 389 of file irods_resource_plugin_impostor.cpp.

References irods::plugin_base::add_operation(), error, impostor_file_close(), impostor_file_closedir(), impostor_file_create(), impostor_file_getfs_freespace(), impostor_file_lseek(), impostor_file_mkdir(), impostor_file_modified(), impostor_file_notify(), impostor_file_open(), impostor_file_opendir(), impostor_file_read(), impostor_file_readdir(), impostor_file_rebalance(), impostor_file_registered(), impostor_file_rename(), impostor_file_resolve_hierarchy(), impostor_file_rmdir(), impostor_file_stage_to_cache(), impostor_file_stat(), impostor_file_sync_to_arch(), impostor_file_truncate(), impostor_file_unlink(), impostor_file_unregistered(), impostor_file_write(), irods::RESOURCE_CHECK_PATH_PERM(), irods::RESOURCE_CREATE_PATH(), irods::RESOURCE_OP_CLOSE(), irods::RESOURCE_OP_CLOSEDIR(), irods::RESOURCE_OP_CREATE(), irods::RESOURCE_OP_FREESPACE(), irods::RESOURCE_OP_LSEEK(), irods::RESOURCE_OP_MKDIR(), irods::RESOURCE_OP_MODIFIED(), irods::RESOURCE_OP_NOTIFY(), irods::RESOURCE_OP_OPEN(), irods::RESOURCE_OP_OPENDIR(), irods::RESOURCE_OP_READ(), irods::RESOURCE_OP_READDIR(), irods::RESOURCE_OP_REBALANCE(), irods::RESOURCE_OP_REGISTERED(), irods::RESOURCE_OP_RENAME(), irods::RESOURCE_OP_RESOLVE_RESC_HIER(), irods::RESOURCE_OP_RMDIR(), irods::RESOURCE_OP_STAGETOCACHE(), irods::RESOURCE_OP_STAT(), irods::RESOURCE_OP_SYNCTOARCH(), irods::RESOURCE_OP_TRUNCATE(), irods::RESOURCE_OP_UNLINK(), irods::RESOURCE_OP_UNREGISTERED(), and irods::RESOURCE_OP_WRITE().

Here is the call graph for this function:

Member Function Documentation

◆ need_post_disconnect_maintenance_operation()

error irods::impostor_resource::need_post_disconnect_maintenance_operation ( bool &  _b)
virtual

=-=-=-=-=-=-=-

Description:\n interface to determine if a PDMO is necessary

Reimplemented from irods::plugin_base.

Definition at line 525 of file irods_resource_plugin_impostor.cpp.

References SUCCESS.

◆ post_disconnect_maintenance_operation()

error irods::impostor_resource::post_disconnect_maintenance_operation ( pdmo_type )
virtual
Description:\n interface to create and register a PDMO

Reimplemented from irods::plugin_base.

Definition at line 530 of file irods_resource_plugin_impostor.cpp.

References ERROR.

◆ report_error()


The documentation for this class was generated from the following files: