Package hudson.plugins.libvirt.lib
Class ConnectionBuilder
- java.lang.Object
-
- hudson.plugins.libvirt.lib.ConnectionBuilder
-
public class ConnectionBuilder extends Object
- Version:
- 05/02/2014
- Author:
- Nigel Magnay
-
-
Constructor Summary
Constructors Constructor Description ConnectionBuilder(String hypervisorType, String hypervisorHost)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IConnect
build()
String
constructHypervisorURI()
ConnectionBuilder
hypervisorPort(int port)
ConnectionBuilder
hypervisorSysUrl(String sysUrl)
ConnectionBuilder
hypervisorTransport(String transport)
boolean
isLibraryTransport()
ConnectionBuilder
readOnly()
ConnectionBuilder
userName(String user)
ConnectionBuilder
useUri(String newuri)
ConnectionBuilder
withCredentials(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials userPwCredentials)
-
-
-
Method Detail
-
hypervisorTransport
public ConnectionBuilder hypervisorTransport(String transport)
-
userName
public ConnectionBuilder userName(String user)
-
hypervisorPort
public ConnectionBuilder hypervisorPort(int port)
-
hypervisorSysUrl
public ConnectionBuilder hypervisorSysUrl(String sysUrl)
-
withCredentials
public ConnectionBuilder withCredentials(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials userPwCredentials)
-
useUri
public ConnectionBuilder useUri(String newuri)
-
readOnly
public ConnectionBuilder readOnly()
-
isLibraryTransport
public boolean isLibraryTransport()
-
build
public IConnect build() throws VirtException
- Throws:
VirtException
-
constructHypervisorURI
public String constructHypervisorURI()
-
-