Class GlusterBrickServiceImpl

    • 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 status detail`. 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 interface GlusterBrickService
      • 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 interface GlusterBrickService