camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: [CONF] Apache Camel > SSH
Date Mon, 30 Jan 2012 17:31:11 GMT
Hi

I have run the tests maybe 10 times. And they all run okay on my osx-laptop.

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.camel.component.ssh.SshComponentProducerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.771 sec

Results :

Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

Running org.apache.camel.component.ssh.SshComponentProducerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.754 sec

Results :

Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

Running org.apache.camel.component.ssh.SshComponentProducerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.836 sec

Results :

Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

Running org.apache.camel.component.ssh.SshComponentProducerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.067 sec

Results :

Tests run: 4, Failures: 0, Errors: 0, Skipped: 0



Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /opt/apache-maven-3.0.3
Java version: 1.6.0_29, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.2", arch: "x86_64", family: "mac"


Someone with a Windows box at hand, could you try it on windows to see
camel-ssh tests there?


There is a default timeout option of 30000, are we sure that is in
millis, and not something else?




On Mon, Jan 30, 2012 at 6:05 PM, Hadrian Zbarcea <hzbarcea@gmail.com> wrote:
> There is something not quite right with the SshComponentProducerTest. The
> time it takes to run the test is high, but worse than that it's totally
> unpredictable. Here's how long it took in 3 different runs on my (fast)
> machine:
>
> Running org.apache.camel.component.ssh.SshComponentProducerTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 297.961 sec
>
> Running org.apache.camel.component.ssh.SshComponentProducerTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.668 sec
>
> Running org.apache.camel.component.ssh.SshComponentProducerTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 36.435 sec
>
> Any insight?
> Hadrian
>
>
>
> On 01/30/2012 05:53 AM, confluence@apache.org wrote:
>>
>>
>>    SSH <https://cwiki.apache.org/confluence/display/CAMEL/SSH>
>>
>>
>>        Page *added* by Claus Ibsen
>>        <https://cwiki.apache.org/confluence/display/~davsclaus>
>>
>>
>>
>>    SSH
>>
>> *Available as of Camel 2.10*
>>
>> The SSH component enables access to SSH servers such that you can send
>> an SSH command, and process the response.
>>
>> Maven users will need to add the following dependency to their pom.xml
>> for this component:
>>
>> <dependency>
>>     <groupId>org.apache.camel</groupId>
>>     <artifactId>camel-ssh</artifactId>
>>     <version>x.x.x</version>
>>     <!-- use the same version as your Camel core version -->
>> </dependency>
>>
>>
>>      URI format
>>
>> ssh:[username[:password]@]host[:port][?options]
>>
>>
>>      Options
>>
>> Name    Default Value   Description
>> host            Hostname of SSH Server
>> port    22      Port of the SSH Server
>> username                Username used for authenticating with SSH Server.
>> password                Password used for authenticating with SSH Server.
>> Used if
>> keyPairProvider is null.
>> timeout         30000   Milliseconds to wait beforing timing out
>> connection to
>> SSH Server.
>> initialDelay    1000    *Consumer only:* Milliseconds before polling the
>> SSH
>> server starts.
>> delay   500     *Consumer only:* Milliseconds before the next poll of the
>> SSH Server.
>> useFixedDelay   true    *Consumer only:* Controls if fixed delay or fixed
>>
>> rate is used. See ScheduledExecutorService in JDK for details.
>> pollCommand             *Consumer only:* Command to send to SSH Server
>> during each
>>
>> poll cycle. Used only when acting as Consumer
>>
>>
>>      See Also
>>
>>  * Configuring Camel </confluence/display/CAMEL/Configuring+Camel>
>>  * Component </confluence/display/CAMEL/Component>
>>  * Endpoint </confluence/display/CAMEL/Endpoint>
>>  * Getting Started </confluence/display/CAMEL/Getting+Started>
>>
>> Change Notification Preferences
>> <https://cwiki.apache.org/confluence/users/viewnotifications.action>
>> View Online <https://cwiki.apache.org/confluence/display/CAMEL/SSH> |
>> Add Comment
>>
>> <https://cwiki.apache.org/confluence/display/CAMEL/SSH?showComments=true&showCommentArea=true#addcomment>
>>
>
> --
> Hadrian Zbarcea
> Principal Software Architect
> Talend, Inc
> http://coders.talend.com/
> http://camelbot.blogspot.com/



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message