public class Hosts extends CollectionDecorator<Host,Hosts,Host>
Hosts providing relation and functional services
to Hosts
.
Constructor and Description |
---|
Hosts(HttpProxyBroker proxy) |
Modifier and Type | Method and Description |
---|---|
Host |
add(Host host)
Adds Host object.
|
Host |
add(Host host,
String expect)
Adds Host object.
|
Host |
add(Host host,
String expect,
String correlationId)
Adds Host object.
|
Host |
get(UUID id)
Fetches Host object by id.
|
Host |
getById(String id)
Fetches Host object by id.
|
List<Host> |
list()
Lists Host objects.
|
List<Host> |
list(String query)
Lists Host objects.
|
List<Host> |
list(String query,
Boolean caseSensitive)
Lists Host objects.
|
List<Host> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists Host objects.
|
List<Host> |
list(String query,
Boolean caseSensitive,
Integer max,
String allContent)
Lists Host objects.
|
get
public Hosts(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<Host> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Host,Hosts,Host>
Host
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public Host get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Host,Hosts,Host>
id
- entity idHost
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public Host getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Host,Hosts,Host>
id
- entity idHost
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public Host add(Host host) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
host
- Host
Overload 1: add a new host to the system providing the host root password. This has been deprecated and provided for backwards compatibility host.name host.address host.root_password host.cluster.id|name [host.comment] [host.port] [host.display.address] [host.spm.priority] [host.power_management.type] [host.power_management.enabled] [host.power_management.address] [host.power_management.username] [host.power_management.automatic_pm_enabled] [host.power_management.password] [host.power_management.options.option] [host.power_management.pm_proxy] [host.power_management.agents.agent] [host.reboot_after_installation] [host.override_iptables] [host.power_management.kdump_detection] [host.protocol] Overload 2: add a new host to the system providing the ssh password or fingerprint host.name host.address host.cluster.id|name [host.comment] [host.ssh.port] [host.ssh.fingerprint] [host.ssh.authentication_method] [host.ssh.user.user_name] [host.ssh.user.password] [host.port] [host.display.address] [host.spm.priority] [host.power_management.type] [host.power_management.automatic_pm_enabled] [host.power_management.enabled] [host.power_management.address] [host.power_management.username] [host.power_management.password] [host.power_management.options.option] [host.power_management.pm_proxy] [host.power_management.agents.agent] [host.reboot_after_installation] [host.override_iptables] [host.power_management.kdump_detection] [host.protocol]
Host
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public Host add(Host host, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
host
- Host
Overload 1: add a new host to the system providing the host root password. This has been deprecated and provided for backwards compatibility host.name host.address host.root_password host.cluster.id|name [host.comment] [host.port] [host.display.address] [host.spm.priority] [host.power_management.type] [host.power_management.enabled] [host.power_management.address] [host.power_management.username] [host.power_management.automatic_pm_enabled] [host.power_management.password] [host.power_management.options.option] [host.power_management.pm_proxy] [host.power_management.agents.agent] [host.reboot_after_installation] [host.override_iptables] [host.power_management.kdump_detection] [host.protocol] Overload 2: add a new host to the system providing the ssh password or fingerprint host.name host.address host.cluster.id|name [host.comment] [host.ssh.port] [host.ssh.fingerprint] [host.ssh.authentication_method] [host.ssh.user.user_name] [host.ssh.user.password] [host.port] [host.display.address] [host.spm.priority] [host.power_management.type] [host.power_management.automatic_pm_enabled] [host.power_management.enabled] [host.power_management.address] [host.power_management.username] [host.power_management.password] [host.power_management.options.option] [host.power_management.pm_proxy] [host.power_management.agents.agent] [host.reboot_after_installation] [host.override_iptables] [host.power_management.kdump_detection] [host.protocol]
expect
- [201-created]
Host
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public Host add(Host host, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
host
- Host
Overload 1: add a new host to the system providing the host root password. This has been deprecated and provided for backwards compatibility host.name host.address host.root_password host.cluster.id|name [host.comment] [host.port] [host.display.address] [host.spm.priority] [host.power_management.type] [host.power_management.enabled] [host.power_management.address] [host.power_management.username] [host.power_management.automatic_pm_enabled] [host.power_management.password] [host.power_management.options.option] [host.power_management.pm_proxy] [host.power_management.agents.agent] [host.reboot_after_installation] [host.override_iptables] [host.power_management.kdump_detection] [host.protocol] Overload 2: add a new host to the system providing the ssh password or fingerprint host.name host.address host.cluster.id|name [host.comment] [host.ssh.port] [host.ssh.fingerprint] [host.ssh.authentication_method] [host.ssh.user.user_name] [host.ssh.user.password] [host.port] [host.display.address] [host.spm.priority] [host.power_management.type] [host.power_management.automatic_pm_enabled] [host.power_management.enabled] [host.power_management.address] [host.power_management.username] [host.power_management.password] [host.power_management.options.option] [host.power_management.pm_proxy] [host.power_management.agents.agent] [host.reboot_after_installation] [host.override_iptables] [host.power_management.kdump_detection] [host.protocol]
expect
- [201-created]
correlationId
- [any string]
Host
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public List<Host> list(String query) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [search query]
Host
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public List<Host> list(String query, Boolean caseSensitive) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [search query]
caseSensitive
- [true|false]
Host
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public List<Host> list(String query, Boolean caseSensitive, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [search query]
caseSensitive
- [true|false]
max
- [max results]
Host
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public List<Host> list(String query, Boolean caseSensitive, Integer max, String allContent) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [search query]
caseSensitive
- [true|false]
max
- [max results]
allContent
- [true|false]
Host
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.Copyright ? 2010 Red Hat, Inc - released under the Apache License Version 2.0