Hi Aiden and Marnie, Here's my basic idea about the project and please treat this as a draft SRS of my project.I have uploaded a small diagram which would be helpful to understand my thoughts.[1] <http://people.apache.org/%7Elahiru/diagram.jpg>.I think it's better to have a look at it first.
Report Generation Mode =============== - First I think I have to figured out what report formats to be given. May be multiple report formats and user can select one at a time. (And I think you have to tell me we need these report formats and I will implement them). - This runs as a daemon and I think this won't be a big thing since we can use cron to implement this(as Marnie said) or we can use sleep with Java threads and run the same code time to time. - And what data we give in reports ...obviously user have to specify it somehow, may be with command line options or using a configuration file and I prefer use command line options. *I have no idea* about which kind of data user is going get in report format.(Is it like give me all the queue details for each and every five minutes, which means generate 12 reports for an hour and do the same thing until broker is up) am I correct and I need a feed from you about this question. - When user is going to configure which data he need in report format? I thinks when user logged in user have to configure it by some command and each argument have it's default value and then user have to give another command to start the thread. - Like this 1. qpid-admin:~$ report -i(interval to generate new report in minutes ) -f (format of the report) -o (output path of the report) -d(*user have to specify how user want to generate report..*) (I think this is not a practical thing to do like this some other clear way would be very useful) Please give me a clue 2. qpid-admin:~$ start - *Big issue here is to find a simple way to specify which data user wants to get in report format.* Interactive mode ========== - First to start the CLI user have to run a script with two parameters then console display the CLI prompt for qpid-admin ============================================== [EMAIL PROTECTED]:~$ qpid-admin -h localhost<hostname> -p 8999<port> You have successfully connected with the broker in <hostname> <port> qpid-admin:~$ ============================================== - Now user is working in interactive mode and if user is interest on generating reports user have to configure the report generation mode as I discussed with previous section.If user is not interest generating reports user can start on working in interactive mode from the beginning. Or user is only interest on generating reports, after successful configuration of the report generation mode user can type exit command and exit from the qpid-admin prompt and start the normal work with the command line. - In the interactive mode user is allow to run number of commands and I have to figure what are they and what they do. As marnie discussed we can allow commands like list and info. qpid-admin:~$ list all <list all the mbeans only> qpid-admin:~$ list -queue <list names of all the queues> In here queue is only one object type and we can define some more object types and if user specify particular object type we can list abject names of that particular object type. qpid-admin:~$ list domains <list all the available domains> qpid-admin:~$ info <name of object> This display all the attribute names and attribute value of the given object name and if user wants only a give attribute value to display user have to specify the attribute name of that attribute. qpid-admin:~$ info object_name attribute_name (this display the value of the attribute of the given object) - So in here I'm discussing only about two commands and in this mode we only have one thing to figure out. - We have to figure out what are the list of command we are going to allow the user to work in interactive mode and what sought of a work it does with each and every command.* I need a feed from you in this location again*. If you can tell me what are the operations I have to allow users to do in interactive mode then I can create a command name for each operation with appropriate parameters. May be we can ask these questions from our users as well. And please feel free to correct me if I'm going in a wrong path and please feel free to flame my thoughts if it's necessary it would really helpful for me to make my project successful. Aiden- Thanks a lot for advising me to create a structure of the project and it's really helpful for me understand my project in rock solid way. Thanks in advance [1]: http://people.apache.org/~lahiru/diagram.jpg<http://people.apache.org/%7Elahiru/diagram.jpg> Regards Lahiru
