Class GlusterBrickServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.MeasurableServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.GlusterBrickServiceImpl
-
- All Implemented Interfaces:
Service
,GlusterBrickService
,MeasurableService
public class GlusterBrickServiceImpl extends MeasurableServiceImpl implements GlusterBrickService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.GlusterBrickService
GlusterBrickService.GetRequest, GlusterBrickService.GetResponse, GlusterBrickService.RemoveRequest, GlusterBrickService.RemoveResponse, GlusterBrickService.ReplaceRequest, GlusterBrickService.ReplaceResponse
-
-
Constructor Summary
Constructors Constructor Description GlusterBrickServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete 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.StatisticsService
statisticsService()
String
toString()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
GlusterBrickServiceImpl
public GlusterBrickServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
get
public GlusterBrickService.GetRequest get()
Description copied from interface:GlusterBrickService
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 - Specified by:
get
in interfaceGlusterBrickService
-
remove
public GlusterBrickService.RemoveRequest remove()
Description copied from interface:GlusterBrickService
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 ---- - Specified by:
remove
in interfaceGlusterBrickService
-
replace
public GlusterBrickService.ReplaceRequest replace()
Description copied from interface:GlusterBrickService
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. - Specified by:
replace
in interfaceGlusterBrickService
-
statisticsService
public StatisticsService statisticsService()
- Specified by:
statisticsService
in interfaceMeasurableService
- Overrides:
statisticsService
in classMeasurableServiceImpl
-
service
public Service service(String path)
Description copied from interface:MeasurableService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceGlusterBrickService
- Specified by:
service
in interfaceMeasurableService
- Overrides:
service
in classMeasurableServiceImpl
-
toString
public String toString()
- Overrides:
toString
in classMeasurableServiceImpl
-
-