jenkins.plugins.publish_over_ssh
Class BapSshHostConfiguration

java.lang.Object
  extended by jenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,BapSshCommonConfiguration>
      extended by jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
All Implemented Interfaces:
hudson.model.Describable<BapSshHostConfiguration>, java.io.Serializable

public class BapSshHostConfiguration
extends jenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,BapSshCommonConfiguration>
implements hudson.model.Describable<BapSshHostConfiguration>

See Also:
Serialized Form

Field Summary
static int DEFAULT_PORT
           
static int DEFAULT_TIMEOUT
           
 
Constructor Summary
BapSshHostConfiguration(java.lang.String name, java.lang.String hostname, java.lang.String username, java.lang.String encryptedPassword, java.lang.String remoteRootDir, int port, int timeout, boolean overrideKey, java.lang.String keyPath, java.lang.String key, boolean disableExec)
           
 
Method Summary
protected  org.apache.commons.lang.builder.EqualsBuilder addToEquals(org.apache.commons.lang.builder.EqualsBuilder builder, BapSshHostConfiguration that)
           
protected  org.apache.commons.lang.builder.HashCodeBuilder addToHashCode(org.apache.commons.lang.builder.HashCodeBuilder builder)
           
protected  org.apache.commons.lang.builder.ToStringBuilder addToToString(org.apache.commons.lang.builder.ToStringBuilder builder)
           
 BapSshClient createClient(jenkins.plugins.publish_over.BPBuildInfo buildInfo)
           
protected  com.jcraft.jsch.JSch createJSch()
           
 boolean equals(java.lang.Object that)
           
 BapSshHostConfigurationDescriptor getDescriptor()
           
 java.lang.String getEncryptedPassword()
           
 java.lang.String getKey()
           
 java.lang.String getKeyPath()
           
protected  java.lang.String getPassword()
           
 int getTimeout()
           
 int hashCode()
           
 boolean isDisableExec()
           
 boolean isEffectiveDisableExec()
           
 boolean isOverrideKey()
           
 void setDisableExec(boolean disableExec)
           
 void setKey(java.lang.String key)
           
 void setKeyPath(java.lang.String keyPath)
           
 void setOverrideKey(boolean overrideKey)
           
 void setPassword(java.lang.String password)
           
 void setTimeout(int timeout)
           
 java.lang.String toString()
           
 
Methods inherited from class jenkins.plugins.publish_over.BPHostConfiguration
addToEquals, changeToRootDirectory, exception, getCommonConfig, getHostname, getName, getPort, getRemoteRootDir, getUsername, isDirectoryAbsolute, readResolve, setCommonConfig, setHostname, setName, setPort, setRemoteRootDir, setUsername
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

BapSshHostConfiguration

@DataBoundConstructor
public BapSshHostConfiguration(java.lang.String name,
                                                    java.lang.String hostname,
                                                    java.lang.String username,
                                                    java.lang.String encryptedPassword,
                                                    java.lang.String remoteRootDir,
                                                    int port,
                                                    int timeout,
                                                    boolean overrideKey,
                                                    java.lang.String keyPath,
                                                    java.lang.String key,
                                                    boolean disableExec)
Method Detail

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int timeout)

getPassword

protected final java.lang.String getPassword()
Overrides:
getPassword in class jenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,BapSshCommonConfiguration>

setPassword

public final void setPassword(java.lang.String password)
Overrides:
setPassword in class jenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,BapSshCommonConfiguration>

getEncryptedPassword

public final java.lang.String getEncryptedPassword()
Overrides:
getEncryptedPassword in class jenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,BapSshCommonConfiguration>

getKeyPath

public java.lang.String getKeyPath()

setKeyPath

public void setKeyPath(java.lang.String keyPath)

getKey

public java.lang.String getKey()

setKey

public void setKey(java.lang.String key)

isOverrideKey

public boolean isOverrideKey()

setOverrideKey

public void setOverrideKey(boolean overrideKey)

isDisableExec

public boolean isDisableExec()

setDisableExec

public void setDisableExec(boolean disableExec)

isEffectiveDisableExec

public boolean isEffectiveDisableExec()

createClient

public BapSshClient createClient(jenkins.plugins.publish_over.BPBuildInfo buildInfo)
Specified by:
createClient in class jenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,BapSshCommonConfiguration>

createJSch

protected com.jcraft.jsch.JSch createJSch()

getDescriptor

public BapSshHostConfigurationDescriptor getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<BapSshHostConfiguration>

addToEquals

protected org.apache.commons.lang.builder.EqualsBuilder addToEquals(org.apache.commons.lang.builder.EqualsBuilder builder,
                                                                    BapSshHostConfiguration that)

addToHashCode

protected org.apache.commons.lang.builder.HashCodeBuilder addToHashCode(org.apache.commons.lang.builder.HashCodeBuilder builder)
Overrides:
addToHashCode in class jenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,BapSshCommonConfiguration>

addToToString

protected org.apache.commons.lang.builder.ToStringBuilder addToToString(org.apache.commons.lang.builder.ToStringBuilder builder)
Overrides:
addToToString in class jenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,BapSshCommonConfiguration>

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class jenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,BapSshCommonConfiguration>

hashCode

public int hashCode()
Overrides:
hashCode in class jenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,BapSshCommonConfiguration>

toString

public java.lang.String toString()
Overrides:
toString in class jenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,BapSshCommonConfiguration>


Copyright © 2011. All Rights Reserved.