Justin,
That's a great suggestion to reply with :-)
> Further suggestion is that the "somebody" should be the original suggester!
>
Actually, I didn't mean that ... :)
My current proposal is to add a new "-sm-list-xml" command line option in
> kernel/gov/rc.cpp source, analogous to existing "-sm-list" option but output
> in XML format.
I think it's better to add a "modifier" option -xml which changes format of
any information se_rc provides (or will provide in the future). So that the
following command will give you information you need:
*./se_rc -sm-list -xml*
> Now, aside from simply a listing of existing Sedna databases and count of
> sessions, what other Governor runtime state information/goodies would you
> like to see in the XML output?
It depends mostly on what do you want to see ).
> I haven't looked much further into msg_struct received from Governor shared
> memory (?) yet so your guidance would be useful.
Yes, governov shares memory region with SMs (se_sm) and TRNs (se_trn -
session process). This memory contains gov_table, which in turn contains
alomost all informtaion about databases (including not started ones) and
sessions.
Governor table has *get_rc()* method which returns *rc_vector* data
structure to be sent to the se_rc process. For example, you can also add
option -all and modify rc_vector to return also not started databases. So
that *./se_rc -xml -all* would return something like that:
<sedna>
<database>
<name>x</name>
<state>running</state>
<sessions>2</sesstions>
</database>
...
<database>
<name>y</name>
<state>stopped</state>
<sessions>0</sesstions>
</database>
</sedna>
For deatils, see *listener.cpp::send_runtime_config()* function. It's quite
easy to understand.
Anyway I'm on with the task forthwith and will send my source code
> contribution for the Sedna project to you in the near future.
>
Ok. It would be great!
Please don't hesitate to ask any questions you might have.
Ivan Shcheklein,
Sedna Team
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion