com.sonyericsson.hudson.plugins.gerrit.gerritevents
Interface GerritConnectionConfig


public interface GerritConnectionConfig

Interface for an object that has information about how to connect to the Gerrit server.

Author:
Robert Sandell <robert.sandell@sonyericsson.com>

Method Summary
 Authentication getGerritAuthentication()
          The the Gerrit authentication credentials.
 File getGerritAuthKeyFile()
          The path to the private key.
 String getGerritAuthKeyFilePassword()
          The password for the private key, or null if there is none.
 String getGerritHostName()
          The hostname for gerrit where it is listening to ssh commands.
 int getGerritSshPort()
          The port to connect with ssh to.
 String getGerritUserName()
          The username to authenticate to gerrit with.
 int getNumberOfReceivingWorkerThreads()
          The number of threads to handle incoming events with.
 int getNumberOfSendingWorkerThreads()
          The default nr of worker threads that sends approvals/review commands.
 

Method Detail

getGerritAuthKeyFile

File getGerritAuthKeyFile()
The path to the private key.

Returns:
the path.

getGerritAuthKeyFilePassword

String getGerritAuthKeyFilePassword()
The password for the private key, or null if there is none.

Returns:
the password

getGerritHostName

String getGerritHostName()
The hostname for gerrit where it is listening to ssh commands.

Returns:
the hostname.

getGerritSshPort

int getGerritSshPort()
The port to connect with ssh to.

Returns:
the port.

getGerritUserName

String getGerritUserName()
The username to authenticate to gerrit with.

Returns:
the username.

getNumberOfReceivingWorkerThreads

int getNumberOfReceivingWorkerThreads()
The number of threads to handle incoming events with.

Returns:
the number of worker threads.

getNumberOfSendingWorkerThreads

int getNumberOfSendingWorkerThreads()
The default nr of worker threads that sends approvals/review commands.

Returns:
the number of worker threads.

getGerritAuthentication

Authentication getGerritAuthentication()
The the Gerrit authentication credentials. Containing getGerritAuthKeyFile(), getGerritUserName() and getGerritAuthKeyFilePassword().

Returns:
the credentials.


Copyright © 2004-2012 Hudson. All Rights Reserved.