Class AgentServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.networking.internal.ext.AgentServiceImpl
-
- All Implemented Interfaces:
AgentService,RestService
public class AgentServiceImpl extends BaseNetworkingServices implements AgentService
Networking (Neutron) Agent Extension API- Author:
- Yin Zhang
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description AgentServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionResponseattachNetworkToDhcpAgent(String agentId, String networkId)Schedules the network to that the specified DHCP agent.ActionResponsedetachNetworkToDhcpAgent(String agentId, String networkId)Removes the network from that the specified DHCP agent.AgentgetAgent(String agentId)Returns the agent with agentId.List<? extends Agent>list()List neutron agents.AgentsetAdminStateUp(String agentId, boolean state)Sets the admin_state_up.-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends Agent> list()
Description copied from interface:AgentServiceList neutron agents.- Specified by:
listin interfaceAgentService- Returns:
- a list of available neutron agents
-
getAgent
public Agent getAgent(String agentId)
Description copied from interface:AgentServiceReturns the agent with agentId.- Specified by:
getAgentin interfaceAgentService- Parameters:
agentId- id of agent- Returns:
- agent
-
setAdminStateUp
public Agent setAdminStateUp(String agentId, boolean state)
Description copied from interface:AgentServiceSets the admin_state_up.- Specified by:
setAdminStateUpin interfaceAgentService- Parameters:
agentId- the id of the agent to set state forstate- the state to set- Returns:
- a new reference to the updated agent
-
attachNetworkToDhcpAgent
public ActionResponse attachNetworkToDhcpAgent(String agentId, String networkId)
Description copied from interface:AgentServiceSchedules the network to that the specified DHCP agent.- Specified by:
attachNetworkToDhcpAgentin interfaceAgentService- Parameters:
agentId- the id of agent with type DHCPnetworkId- the id of network- Returns:
- the action response
-
detachNetworkToDhcpAgent
public ActionResponse detachNetworkToDhcpAgent(String agentId, String networkId)
Description copied from interface:AgentServiceRemoves the network from that the specified DHCP agent.- Specified by:
detachNetworkToDhcpAgentin interfaceAgentService- Parameters:
agentId- the id of agent with type DHCPnetworkId- the id of network- Returns:
- the action response
-
-