Class GlusterVolumesServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.GlusterVolumesServiceImpl
-
- All Implemented Interfaces:
Service
,GlusterVolumesService
public class GlusterVolumesServiceImpl extends ServiceImpl implements GlusterVolumesService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.GlusterVolumesService
GlusterVolumesService.AddRequest, GlusterVolumesService.AddResponse, GlusterVolumesService.ListRequest, GlusterVolumesService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description GlusterVolumesServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlusterVolumesService.AddRequest
add()
Creates a new gluster volume.GlusterVolumesService.ListRequest
list()
Lists all gluster volumes in the cluster.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.String
toString()
GlusterVolumeService
volumeService(String id)
Reference to a service managing gluster volume.-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
GlusterVolumesServiceImpl
public GlusterVolumesServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public GlusterVolumesService.AddRequest add()
Description copied from interface:GlusterVolumesService
Creates a new gluster volume. The volume is created based on properties of the `volume` parameter. The properties `name`, `volume_type` and `bricks` are required. For example, to add a volume with name `myvolume` to the cluster `123`, send the following request: [source] ---- POST /ovirt-engine/api/clusters/123/glustervolumes ---- With the following request body: [source,xml] ----myvolume replicate 3 server1 /exp1 server2 /exp1 server3 /exp1 - Specified by:
add
in interfaceGlusterVolumesService
-
list
public GlusterVolumesService.ListRequest list()
Description copied from interface:GlusterVolumesService
Lists all gluster volumes in the cluster. For example, to list all Gluster Volumes in cluster `456`, send a request like this: [source] ---- GET /ovirt-engine/api/clusters/456/glustervolumes ---- The order of the returned list of volumes isn't guaranteed.- Specified by:
list
in interfaceGlusterVolumesService
-
volumeService
public GlusterVolumeService volumeService(String id)
Description copied from interface:GlusterVolumesService
Reference to a service managing gluster volume.- Specified by:
volumeService
in interfaceGlusterVolumesService
-
service
public Service service(String path)
Description copied from interface:GlusterVolumesService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceGlusterVolumesService
-
-