Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions python_rules/rulemsiDigestMonStat.r

This file was deleted.

24 changes: 0 additions & 24 deletions python_rules/rulemsiFlushMonStat.r

This file was deleted.

6 changes: 0 additions & 6 deletions python_rules/rulemsiServerMonPerf.r

This file was deleted.

17 changes: 17 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,16 @@ namespace
}
} // anonymous namespace

static irods::error setup(irods::default_re_ctx&, const std::string& _instance_name)
{
return SUCCESS();
} // setup

static irods::error teardown(irods::default_re_ctx&, const std::string& _instance_name)
{
return SUCCESS();
} // teardown

static irods::error start(irods::default_re_ctx&, const std::string& _instance_name)
{
python_state::ts_main = nullptr;
Expand Down Expand Up @@ -993,6 +1003,13 @@ extern "C" irods::pluggable_rule_engine<irods::default_re_ctx>* plugin_factory(c
{
irods::pluggable_rule_engine<irods::default_re_ctx>* re =
new irods::pluggable_rule_engine<irods::default_re_ctx>(_inst_name, _context);

re->add_operation<irods::default_re_ctx&, const std::string&>(
"setup", std::function<irods::error(irods::default_re_ctx&, const std::string&)>(setup));

re->add_operation<irods::default_re_ctx&, const std::string&>(
"teardown", std::function<irods::error(irods::default_re_ctx&, const std::string&)>(teardown));

re->add_operation<irods::default_re_ctx&, const std::string&>(
"start", std::function<irods::error(irods::default_re_ctx&, const std::string&)>(start));

Expand Down