com.cloudbees.jenkins.plugins.sshagent.mina
Class MinaRemoteAgentFactory

java.lang.Object
  extended by com.cloudbees.jenkins.plugins.sshagent.RemoteAgentFactory
      extended by com.cloudbees.jenkins.plugins.sshagent.mina.MinaRemoteAgentFactory
All Implemented Interfaces:
hudson.ExtensionPoint

@Extension
public class MinaRemoteAgentFactory
extends RemoteAgentFactory

A factory that uses the Apache Mina/SSH library support to (semi-)natively provide a ssh-agent implementation


Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
MinaRemoteAgentFactory()
           
 
Method Summary
 java.lang.String getDisplayName()
          The display name of the factory.
 boolean isSupported(hudson.Launcher launcher, hudson.model.TaskListener listener)
          Checks if the supplied launcher is supported by this factory.
 RemoteAgent start(hudson.Launcher launcher, hudson.model.TaskListener listener)
          Start a ssh-agent on the specified launcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinaRemoteAgentFactory

public MinaRemoteAgentFactory()
Method Detail

getDisplayName

public java.lang.String getDisplayName()
The display name of the factory.

Specified by:
getDisplayName in class RemoteAgentFactory
Returns:
The display name of the factory.

isSupported

public boolean isSupported(hudson.Launcher launcher,
                           hudson.model.TaskListener listener)
Checks if the supplied launcher is supported by this factory.

Specified by:
isSupported in class RemoteAgentFactory
Parameters:
launcher - the launcher on which the factory would be asked to start a ssh-agent.
listener - a listener in case any user diagnostics are to be printed.
Returns:
false if the factory does not want to try and start an ssh-agent on the launcher.

start

public RemoteAgent start(hudson.Launcher launcher,
                         hudson.model.TaskListener listener)
                  throws java.lang.Throwable
Start a ssh-agent on the specified launcher.

Specified by:
start in class RemoteAgentFactory
Parameters:
launcher - the launcher on which to start a ssh-agent.
listener - a listener for any diagnostics.
Returns:
the agent.
Throws:
java.lang.Throwable - if the agent cannot be started.


Copyright © 2004-2012. All Rights Reserved.