Class ShareServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.internal.MicroVersionedOpenStackService
-
- org.openstack4j.openstack.manila.internal.BaseShareServices
-
- org.openstack4j.openstack.manila.internal.ShareServiceImpl
-
- All Implemented Interfaces:
ShareService,RestService
public class ShareServiceImpl extends BaseShareServices implements ShareService
Shared File Systems API (Manila)- Author:
- Daniel Gonzalez Nothnagel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ShareServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<? extends AvailabilityZone>availabilityZones()Lists all availability zones.ManilaService.ServiceStatusdisableService(String binary, String host)Disables a service.ManilaService.ServiceStatusenableService(String binary, String host)Enables a service.Limitslimits()List<? extends Extension>listExtensions()SharemanageShare(ShareManage shareManage)Configures Shared File Systems to manage a share.QuotaSetServicequotaSets()SchedulerStatsServiceschedulerStats()SecurityServiceServicesecurityServices()List<? extends Service>services()Lists all services.ShareInstanceServiceshareInstances()ShareNetworkServiceshareNetworks()SharesServiceshares()ShareServerServiceshareServers()ShareSnapshotServiceshareSnapshots()ShareTypeServiceshareTypes()ActionResponseunmanageShare(String shareId)Configures Shared File Systems to stop managing a share.-
Methods inherited from class org.openstack4j.openstack.manila.internal.BaseShareServices
getApiVersionHeader
-
Methods inherited from class org.openstack4j.openstack.internal.MicroVersionedOpenStackService
delete, deleteWithResponse, get, head, patch, post, put, request
-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, patchWithResponse, postWithResponse, putWithResponse, toList, uri
-
-
-
-
Method Detail
-
listExtensions
public List<? extends Extension> listExtensions()
- Specified by:
listExtensionsin interfaceShareService- Returns:
- a list of available Shared File Systems API extensions
-
limits
public Limits limits()
- Specified by:
limitsin interfaceShareService- Returns:
- the resource limitations allowed for the tenant
-
shares
public SharesService shares()
- Specified by:
sharesin interfaceShareService- Returns:
- service which provides methods to manage shares
-
securityServices
public SecurityServiceService securityServices()
- Specified by:
securityServicesin interfaceShareService- Returns:
- service which provides methods to manage security services
-
shareSnapshots
public ShareSnapshotService shareSnapshots()
- Specified by:
shareSnapshotsin interfaceShareService- Returns:
- service which provides methods to manage share snapshots
-
shareNetworks
public ShareNetworkService shareNetworks()
- Specified by:
shareNetworksin interfaceShareService- Returns:
- service which provides methods to manage share networks
-
shareServers
public ShareServerService shareServers()
- Specified by:
shareServersin interfaceShareService- Returns:
- service which provides methods to manage share servers
-
shareInstances
public ShareInstanceService shareInstances()
- Specified by:
shareInstancesin interfaceShareService- Returns:
- service which provides methods to manage share instances
-
shareTypes
public ShareTypeService shareTypes()
- Specified by:
shareTypesin interfaceShareService- Returns:
- service which provides methods to manage share types
-
schedulerStats
public SchedulerStatsService schedulerStats()
- Specified by:
schedulerStatsin interfaceShareService- Returns:
- service which provides methods to query scheduler stats
-
services
public List<? extends Service> services()
Lists all services.- Specified by:
servicesin interfaceShareService- Returns:
- a list of all services
-
enableService
public ManilaService.ServiceStatus enableService(String binary, String host)
Enables a service.- Specified by:
enableServicein interfaceShareService- 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 status of the enabled service
-
disableService
public ManilaService.ServiceStatus disableService(String binary, String host)
Disables a service.- Specified by:
disableServicein interfaceShareService- 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 status of the disabled service
-
availabilityZones
public List<? extends AvailabilityZone> availabilityZones()
Lists all availability zones.- Specified by:
availabilityZonesin interfaceShareService- Returns:
- a list of all availability zones
-
manageShare
public Share manageShare(ShareManage shareManage)
Configures Shared File Systems to manage a share.- Specified by:
manageSharein interfaceShareService- Parameters:
shareManage- the share to manage- Returns:
- the managed share
-
unmanageShare
public ActionResponse unmanageShare(String shareId)
Configures Shared File Systems to stop managing a share.- Specified by:
unmanageSharein interfaceShareService- Parameters:
shareId- the share ID- Returns:
- the action response
-
quotaSets
public QuotaSetService quotaSets()
- Specified by:
quotaSetsin interfaceShareService- Returns:
- service which provides methods to manage quota sets
-
-