#927 immdump: Support for dumping instances of selected classes.

4.6.FC
fixed
Hung Nguyen
None
enhancement
imm
tools
major
2015-01-08
2014-05-26
No

The immdump tool currently dumps the entire imm database to a file
(either imm-xml format or imm-sqlite format). There is a need for
performing more selective dumping. Currently this is possible to
achieve by post processing the dump using the imm-xml-tools or by
implementing a customized tool.

It should be simple to implement support in immdump for accepting a
list of classes in the argument list and to selectively dump only the
instances that belong to classes in the list.

Related

Tickets: #927

Discussion

    • status: unassigned --> accepted
    • assigned_to: Zoran Milinkovic
    • Milestone: future --> 4.6.FC
     
    • status: accepted --> review
     
    • status: review --> assigned
    • assigned_to: Zoran Milinkovic --> Hung Nguyen
     
  • Hung Nguyen
    Hung Nguyen
    2014-12-12

    • status: assigned --> review
     
  • default(4.6):

    changeset: 6227:788cb17edbfb
    tag: tip
    user: Hung Nguyen hung.d.nguyen@dektech.com.au
    date: Fri Dec 12 18:51:11 2014 +0700
    summary: immtools: Support for dumping instances of selected classes [#927]

     

    Related

    Tickets: #927

    • status: review --> fixed
     
    • status: fixed --> accepted
     
  • The build fails if PBE is disabled.

    immdump-imm_dumper.o: In function main': /home/elunlen/workspace/opensaf-staging-dev/osaf/tools/safimm/immdump/imm_dumper.cc:214: undefined reference todumpClassesToPbe(unsigned long long, std::map<std::basic_string<char, std::char_traits<char="">, std::allocator<char> >, ClassInfo, std::less<std::basic_string<char, std::char_traits<char="">, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char="">, std::allocator<char> > const, ClassInfo> > >, void, std::list<std::basic_string<char, std::char_traits<char="">, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char="">, std::allocator<char> > > >&)'
    /home/elunlen/workspace/opensaf-staging-dev/osaf/tools/safimm/immdump/imm_dumper.cc:225:
    undefined reference to dumpObjectsToPbe(unsigned long long, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, ClassInfo*, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ClassInfo*> > >*, void*, std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)' collect2: ld returned 1 exit status make[5]: *** [immdump] Error 1 make[5]: Leaving directory/home/elunlen/workspace/opensaf-staging-dev/osaf/tools/safimm/immdump'
    make[4]: [all-recursive] Error 1
    make[4]: Leaving directory
    /home/elunlen/workspace/opensaf-staging-dev/osaf/tools/safimm' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory/home/elunlen/workspace/opensaf-staging-dev/osaf/tools'
    make[2]:
    [all-recursive] Error 1
    make[2]: Leaving directory
    /home/elunlen/workspace/opensaf-staging-dev/osaf' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/elunlen/workspace/opensaf-staging-dev'
    make: *** [all] Error 2

     
  • Hung Nguyen
    Hung Nguyen
    2015-01-08

    • status: accepted --> review
     
    • status: review --> fixed
     
  • default(4.6):

    changeset: 6231:049e060d68c4
    tag: tip
    user: Hung Nguyen hung.d.nguyen@dektech.com.au
    date: Thu Jan 08 11:53:38 2015 +0700
    summary: immtools: Support for dumping instances of selected classes [#927]

     

    Related

    Tickets: #927