Package org.ovirt.engine.sdk4.services
Interface GlusterBrickService
-
- All Superinterfaces:
MeasurableService
,Service
- All Known Implementing Classes:
GlusterBrickServiceImpl
public interface GlusterBrickService extends MeasurableService
This service manages a single gluster brick.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
GlusterBrickService.GetRequest
Get details of a brick.static interface
GlusterBrickService.GetResponse
Get details of a brick.static interface
GlusterBrickService.RemoveRequest
Removes a brick.static interface
GlusterBrickService.RemoveResponse
Removes a brick.static interface
GlusterBrickService.ReplaceRequest
Replaces this brick with a new one.static interface
GlusterBrickService.ReplaceResponse
Replaces this brick with a new one.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GlusterBrickService.GetRequest
get()
Get details of a brick.GlusterBrickService.RemoveRequest
remove()
Removes a brick.GlusterBrickService.ReplaceRequest
replace()
Replaces this brick with a new one.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.-
Methods inherited from interface org.ovirt.engine.sdk4.services.MeasurableService
statisticsService
-
-
-
-
Method Detail
-
get
GlusterBrickService.GetRequest get()
Get details of a brick. Retrieves status details of brick from underlying gluster volume with header `All-Content` set to `true`. This is the equivalent of running `gluster volume statusdetail`. For example, to get the details of brick `234` of gluster volume `123`, send a request like this: [source] ---- GET /ovirt-engine/api/clusters/567/glustervolumes/123/glusterbricks/234 ---- Which will return a response body like this: [source,xml] ---- host1:/rhgs/data/brick1 /rhgs/data/brick1 111 up /dev/mapper/RHGS_vg1-lv_vmaddldisks xfs 2818417648 1384694844 1011 client2 data-server:fd_t 1626348 1020 4 23 0 140 0 rw,seclabel,noatime,nodiratime,attr2,inode64,sunit=512,swidth=2048,noquota 25589 49155
-
remove
GlusterBrickService.RemoveRequest remove()
Removes a brick. Removes a brick from the underlying gluster volume and deletes entries from database. This can be used only when removing a single brick without data migration. To remove multiple bricks and with data migration, use <> instead. For example, to delete brick `234` from gluster volume `123`, send a request like this: [source] ---- DELETE /ovirt-engine/api/clusters/567/glustervolumes/123/glusterbricks/234 ----
-
replace
GlusterBrickService.ReplaceRequest replace()
Replaces this brick with a new one. IMPORTANT: This operation has been deprecated since version 3.5 of the engine and will be removed in the future. Use <> and < > instead.
-
service
Service service(String path)
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceMeasurableService
-
-