Class ServicesServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.compute.internal.BaseComputeServices
-
- org.openstack4j.openstack.compute.internal.ServicesServiceImpl
-
- All Implemented Interfaces:
ServicesService
public class ServicesServiceImpl extends BaseComputeServices implements ServicesService
Compute Services service provides CRUD capabilities for nova service(s).- Author:
- Stephan Latour
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ServicesServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtServicedisableService(String binary, String host)Disables a compute service.ExtServiceenableService(String binary, String host)Enables a compute services.ExtServiceforceDownService(String binary, String host)Forcefully shuts down a service.ExtServiceforceUpService(String binary, String host)Forcefully brings up a service.List<? extends Service>list()List services infoList<? extends Service>list(Map<String,String> filteringParams)Returns list of compute services filtered by parameters.-
Methods inherited from class org.openstack4j.openstack.compute.internal.BaseComputeServices
invokeAction, invokeActionWithResponse
-
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 Service> list()
List services infoNOTE: This is an extension and not all deployments support os-services
- Specified by:
listin interfaceServicesService- Returns:
- a list of nova services
-
list
public List<? extends Service> list(Map<String,String> filteringParams)
Returns list of compute services filtered by parameters.Author:Wang Ting/王婷
- Specified by:
listin interfaceServicesService- Parameters:
filteringParams- map (name, value) of filtering parameters- See Also:
org.openstack4j.api.compute.ServicesService#list(java.util.Map)
-
enableService
public ExtService enableService(String binary, String host)
Enables a compute services.Author:Wang Ting/王婷
- Specified by:
enableServicein interfaceServicesService- Parameters:
binary- the name of the service binary that you want to enablehost- the host name of the service that you want to enable- Returns:
- the enabled service
- See Also:
org.openstack4j.api.compute.ServicesService#enableService(java.lang.String, java.lang.String)
-
disableService
public ExtService disableService(String binary, String host)
Disables a compute service.Author:Wang Ting/王婷
- Specified by:
disableServicein interfaceServicesService- Parameters:
binary- the name of the service binary that you want to disablehost- the host name of the service that you want to disable- Returns:
- the disabled service
- See Also:
org.openstack4j.api.compute.ServicesService#disableService(java.lang.String, java.lang.String)
-
forceDownService
public ExtService forceDownService(String binary, String host)
Forcefully shuts down a service.- Specified by:
forceDownServicein interfaceServicesService- Parameters:
binary- the name of the service binary that you want to shutdownhost- the host name of the service that you want to shutdown- Returns:
- the shutdown service
-
forceUpService
public ExtService forceUpService(String binary, String host)
Forcefully brings up a service.- Specified by:
forceUpServicein interfaceServicesService- Parameters:
binary- the name of the service binary that you want to bring uphost- the host name of the service that you want to bring up- Returns:
- the brought up service
-
-