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, conflue...@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/

Reply via email to