[infinispan-dev] Infinispan Shell Console

Michal Linhard mlinhard at redhat.com
Tue May 31 07:27:59 EDT 2011


On 05/31/2011 10:14 AM, Galder Zamarreño wrote:
> Hey Michal,
>
> I've gone through it and I really like it. Couple of comments:
>
> - 'include' command. I think the name can be a bit confusing. Include sounds more like you import some commands but don't necessarily execute. Rather than 'include', I'd maybe call it 'batch', cos what is doing is batching the commands.
>
yeah. I see ... I'm not emotionally attached to this name so if this is 
misleading it can be changed, I'll make a TODO note with several other 
improvements that I can think of.
The name "include" came from this:
- almost all commands are "verb based", and the verb "to batch" didn't 
come to my mind :-)
- a batch file can include another batch file, forming an inclusion 
hierarchy
> - Also, the return of 'include' command might be a bit confusing since it's relying on the last command on the batch. I think it might be better providing a summary of the outcome of each batch command, or like something like JUnit or TestNG does:
>
> "X commands executed, N succeeded (i.e. return was SUCCESS or 0), and M failed (return was ERROR or CONFLICT)"
good point, but I'd make this optional. Original purpose of batch files 
was to simulate some steps to replicate an error in a testcase and I'd 
like it to fail directly with the first failed command.

btw I'm not such a great fan of batch files anymore because I think that 
there might be tendency to move too much functionality in there. E.g. 
sleep command would be really great to produce some useful command 
batches and of course looping and other stuff...

instead I'd like to optimise the console to work as well as possible 
with bash scripting so that I can write simple testcases (reproducing 
ispn errors) in the form of shell scripts.. where all the rich 
programming functionality already exists ...

batches may still make sense for preloading the cache with some testdata 
... (for this purpose, I'm starting to like the name "batch")
> - I like the fact that you validate the Hot Rod version to be numeric. In fact, this check should be done by the Hot Rod client itself, you shouldn't need to do it yourself. I'll create a task to fix that.
>
> Once again, great work dude :)
thx.
> Cheers,
>
> On May 31, 2011, at 10:00 AM, Galder Zamarreño wrote:
>
>> Great stuff Michal :).
>>
>> I'll have a look asap and will make sure I use it for any quick testing :)
>>
>> It uses the Hot Rod python client, doesn't it?
>>
>> On May 26, 2011, at 11:44 AM, Michal Linhard wrote:
>>
>>> Hi all!
>>>
>>> Announcing my little project Infinispan Console:
>>>
>>> https://github.com/mlinhard/ispncon
>>>
>>> I wanted to wait with publishing of this until I do some more testing,
>>> but I don't know when I'll get to that, and it already helps me with
>>> some testing and I thought that it might be useful to some of you too,
>>> so I don't wanna keep it to myself any longer...
>>>
>>> it basically enables you to do stuff like
>>>
>>> ispncon put key value
>>> ispncon get key
>>>
>>> from your bash, using client access (hotrod, memcached, rest) - I.e. you
>>> have to have these server modules running/deployed in a container.
>>>
>>> feedback is appreciated.
>>>
>>> m.
>>>
>>>
>>> -- 
>>> Michal Linhard
>>> Quality Assurance Engineer
>>>
>>> Red Hat Czech s.r.o.
>>> Purkynova 99 612 45 Brno, Czech Republic
>>> phone: +420 532 294 320 ext. 62320
>>> mobile: +420 728 626 363
>>>
>>> _______________________________________________
>>> infinispan-dev mailing list
>>> infinispan-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>> --
>> Galder Zamarreño
>> Sr. Software Engineer
>> Infinispan, JBoss Cache
>>
>>
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
> --
> Galder Zamarreño
> Sr. Software Engineer
> Infinispan, JBoss Cache
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev


-- 
Michal Linhard
Quality Assurance Engineer

Red Hat Czech s.r.o.
Purkynova 99 612 45 Brno, Czech Republic
phone: +420 532 294 320 ext. 62320
mobile: +420 728 626 363



More information about the infinispan-dev mailing list