Class ListenerV2ServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.octavia.internal.BaseOctaviaServices
-
- org.openstack4j.openstack.octavia.internal.ListenerV2ServiceImpl
-
- All Implemented Interfaces:
ListenerV2Service,RestService
public class ListenerV2ServiceImpl extends BaseOctaviaServices implements ListenerV2Service
Lbaas listener imlementation- Author:
- wei
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ListenerV2ServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListenerV2create(ListenerV2 listener)Create a listenerActionResponsedelete(String listenerId)Delete the specified listener by IDListenerV2get(String listenerId)Get the specified listener by IDList<? extends ListenerV2>list()List all listeners that the current tenant has access toList<? extends ListenerV2>list(Map<String,String> filteringParams)Returns list of listeners filtered by parameters.ListenerV2update(String listenerId, ListenerV2Update listener)Update a listener-
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 ListenerV2> list()
List all listeners that the current tenant has access to- Specified by:
listin interfaceListenerV2Service- Returns:
- list of all listeners
-
list
public List<? extends ListenerV2> list(Map<String,String> filteringParams)
Returns list of listeners filtered by parameters.- Specified by:
listin interfaceListenerV2Service- Parameters:
filteringParams- map (name, value) of filtering parameters- Returns:
- List
-
get
public ListenerV2 get(String listenerId)
Get the specified listener by ID- Specified by:
getin interfaceListenerV2Service- Returns:
- the listener or null if not found
-
delete
public ActionResponse delete(String listenerId)
Delete the specified listener by ID- Specified by:
deletein interfaceListenerV2Service- Returns:
- the action response
-
create
public ListenerV2 create(ListenerV2 listener)
Create a listener- Specified by:
createin interfaceListenerV2Service- Returns:
- ListenerV2
-
update
public ListenerV2 update(String listenerId, ListenerV2Update listener)
Description copied from interface:ListenerV2ServiceUpdate a listener- Specified by:
updatein interfaceListenerV2Service- Returns:
- ListenerV2
-
-