Package org.openstack4j.api.compute.ext
Interface ServicesService
-
- All Known Implementing Classes:
ServicesServiceImpl
public interface ServicesServiceAPI which supports the "os-services" extension.- Author:
- Stephan Latour
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExtServicedisableService(String binary, String host)Disables a 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.
-
-
-
Method Detail
-
list
List<? extends Service> list()
List services infoNOTE: This is an extension and not all deployments support os-services
- Returns:
- a list of nova services
-
list
List<? extends Service> list(Map<String,String> filteringParams)
Returns list of compute services filtered by parameters.- Parameters:
filteringParams- map (name, value) of filtering parameters
-
enableService
ExtService enableService(String binary, String host)
Enables a compute services.- 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
-
disableService
ExtService disableService(String binary, String host)
Disables a service.- 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
-
forceDownService
ExtService forceDownService(String binary, String host)
Forcefully shuts down a service.- 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
ExtService forceUpService(String binary, String host)
Forcefully brings up a service.- 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
-
-