public class HostAgents extends CollectionDecorator<Agent,Agents,HostAgent>
HostAgents providing relation and functional services
to Agents
.
Constructor and Description |
---|
HostAgents(HttpProxyBroker proxy,
Host parent) |
Modifier and Type | Method and Description |
---|---|
HostAgent |
add(Agent agent)
Adds Agent object.
|
HostAgent |
add(Agent agent,
String correlationId)
Adds Agent object.
|
HostAgent |
add(Agent agent,
String correlationId,
String expect)
Adds Agent object.
|
HostAgent |
get(UUID id)
Fetches HostAgent object by id.
|
HostAgent |
getById(String id)
Fetches HostAgent object by id.
|
List<HostAgent> |
list()
Lists HostAgent objects.
|
List<HostAgent> |
list(Integer max)
Lists HostAgent objects.
|
get
public HostAgents(HttpProxyBroker proxy, Host parent)
proxy
- HttpProxyBrokerparent
- Hostpublic List<HostAgent> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Agent,Agents,HostAgent>
HostAgent
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 HostAgent get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Agent,Agents,HostAgent>
id
- entity idHostAgent
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 HostAgent getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Agent,Agents,HostAgent>
id
- entity idHostAgent
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 HostAgent add(Agent agent) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
agent
- Agent
agent.address agent.order agent.type agent.username agent.password [agent.port] [agent.options] [encrypt_options]
HostAgent
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 HostAgent add(Agent agent, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
agent
- Agent
agent.address agent.order agent.type agent.username agent.password [agent.port] [agent.options] [encrypt_options]
correlationId
- [any string]
HostAgent
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 HostAgent add(Agent agent, String correlationId, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
agent
- Agent
agent.address agent.order agent.type agent.username agent.password [agent.port] [agent.options] [encrypt_options]
correlationId
- [any string]
expect
- [201-created]
HostAgent
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<HostAgent> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
HostAgent
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