Class GlusterVolumeServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.MeasurableServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.GlusterVolumeServiceImpl
-
- All Implemented Interfaces:
Service
,GlusterVolumeService
,MeasurableService
public class GlusterVolumeServiceImpl extends MeasurableServiceImpl implements GlusterVolumeService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.GlusterVolumeService
GlusterVolumeService.GetProfileStatisticsRequest, GlusterVolumeService.GetProfileStatisticsResponse, GlusterVolumeService.GetRequest, GlusterVolumeService.GetResponse, GlusterVolumeService.RebalanceRequest, GlusterVolumeService.RebalanceResponse, GlusterVolumeService.RemoveRequest, GlusterVolumeService.RemoveResponse, GlusterVolumeService.ResetAllOptionsRequest, GlusterVolumeService.ResetAllOptionsResponse, GlusterVolumeService.ResetOptionRequest, GlusterVolumeService.ResetOptionResponse, GlusterVolumeService.SetOptionRequest, GlusterVolumeService.SetOptionResponse, GlusterVolumeService.StartProfileRequest, GlusterVolumeService.StartProfileResponse, GlusterVolumeService.StartRequest, GlusterVolumeService.StartResponse, GlusterVolumeService.StopProfileRequest, GlusterVolumeService.StopProfileResponse, GlusterVolumeService.StopRebalanceRequest, GlusterVolumeService.StopRebalanceResponse, GlusterVolumeService.StopRequest, GlusterVolumeService.StopResponse
-
-
Constructor Summary
Constructors Constructor Description GlusterVolumeServiceImpl(HttpConnection connection, String path)
-
Method Summary
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
GlusterVolumeServiceImpl
public GlusterVolumeServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
get
public GlusterVolumeService.GetRequest get()
Description copied from interface:GlusterVolumeService
Get the gluster volume details. For example, to get details of a gluster volume with identifier `123` in cluster `456`, send a request like this: [source] ---- GET /ovirt-engine/api/clusters/456/glustervolumes/123 ---- This GET request will return the following output: [source,xml] ----data 0 0 3 up 0 tcp replicate - Specified by:
get
in interfaceGlusterVolumeService
-
getProfileStatistics
public GlusterVolumeService.GetProfileStatisticsRequest getProfileStatistics()
Description copied from interface:GlusterVolumeService
Get gluster volume profile statistics. For example, to get profile statistics for a gluster volume with identifier `123` in cluster `456`, send a request like this: [source] ---- POST /ovirt-engine/api/clusters/456/glustervolumes/123/getprofilestatistics ----- Specified by:
getProfileStatistics
in interfaceGlusterVolumeService
-
rebalance
public GlusterVolumeService.RebalanceRequest rebalance()
Description copied from interface:GlusterVolumeService
Rebalance the gluster volume. Rebalancing a gluster volume helps to distribute the data evenly across all the bricks. After expanding or shrinking a gluster volume (without migrating data), we need to rebalance the data among the bricks. In a non-replicated volume, all bricks should be online to perform the rebalance operation. In a replicated volume, at least one of the bricks in the replica should be online. For example, to rebalance a gluster volume with identifier `123` in cluster `456`, send a request like this: [source] ---- POST /ovirt-engine/api/clusters/456/glustervolumes/123/rebalance ----- Specified by:
rebalance
in interfaceGlusterVolumeService
-
remove
public GlusterVolumeService.RemoveRequest remove()
Description copied from interface:GlusterVolumeService
Removes the gluster volume. For example, to remove a volume with identifier `123` in cluster `456`, send a request like this: [source] ---- DELETE /ovirt-engine/api/clusters/456/glustervolumes/123 ----- Specified by:
remove
in interfaceGlusterVolumeService
-
resetAllOptions
public GlusterVolumeService.ResetAllOptionsRequest resetAllOptions()
Description copied from interface:GlusterVolumeService
Resets all the options set in the gluster volume. For example, to reset all options in a gluster volume with identifier `123` in cluster `456`, send a request like this: [source] ---- POST /ovirt-engine/api/clusters/456/glustervolumes/123/resetalloptions ----- Specified by:
resetAllOptions
in interfaceGlusterVolumeService
-
resetOption
public GlusterVolumeService.ResetOptionRequest resetOption()
Description copied from interface:GlusterVolumeService
Resets a particular option in the gluster volume. For example, to reset a particular option `option1` in a gluster volume with identifier `123` in cluster `456`, send a request like this: [source] ---- POST /ovirt-engine/api/clusters/456/glustervolumes/123/resetoption ---- With the following request body: [source,xml] ----- Specified by:
resetOption
in interfaceGlusterVolumeService
-
setOption
public GlusterVolumeService.SetOptionRequest setOption()
Description copied from interface:GlusterVolumeService
Sets a particular option in the gluster volume. For example, to set `option1` with value `value1` in a gluster volume with identifier `123` in cluster `456`, send a request like this: [source] ---- POST /ovirt-engine/api/clusters/456/glustervolumes/123/setoption ---- With the following request body: [source,xml] ----- Specified by:
setOption
in interfaceGlusterVolumeService
-
start
public GlusterVolumeService.StartRequest start()
Description copied from interface:GlusterVolumeService
Starts the gluster volume. A Gluster Volume should be started to read/write data. For example, to start a gluster volume with identifier `123` in cluster `456`, send a request like this: [source] ---- POST /ovirt-engine/api/clusters/456/glustervolumes/123/start ----- Specified by:
start
in interfaceGlusterVolumeService
-
startProfile
public GlusterVolumeService.StartProfileRequest startProfile()
Description copied from interface:GlusterVolumeService
Start profiling the gluster volume. For example, to start profiling a gluster volume with identifier `123` in cluster `456`, send a request like this: [source] ---- POST /ovirt-engine/api/clusters/456/glustervolumes/123/startprofile ----- Specified by:
startProfile
in interfaceGlusterVolumeService
-
stop
public GlusterVolumeService.StopRequest stop()
Description copied from interface:GlusterVolumeService
Stops the gluster volume. Stopping a volume will make its data inaccessible. For example, to stop a gluster volume with identifier `123` in cluster `456`, send a request like this: [source] ---- POST /ovirt-engine/api/clusters/456/glustervolumes/123/stop ----- Specified by:
stop
in interfaceGlusterVolumeService
-
stopProfile
public GlusterVolumeService.StopProfileRequest stopProfile()
Description copied from interface:GlusterVolumeService
Stop profiling the gluster volume. For example, to stop profiling a gluster volume with identifier `123` in cluster `456`, send a request like this: [source] ---- POST /ovirt-engine/api/clusters/456/glustervolumes/123/stopprofile ----- Specified by:
stopProfile
in interfaceGlusterVolumeService
-
stopRebalance
public GlusterVolumeService.StopRebalanceRequest stopRebalance()
Description copied from interface:GlusterVolumeService
Stop rebalancing the gluster volume. For example, to stop rebalancing a gluster volume with identifier `123` in cluster `456`, send a request like this: [source] ---- POST /ovirt-engine/api/clusters/456/glustervolumes/123/stoprebalance ----- Specified by:
stopRebalance
in interfaceGlusterVolumeService
-
glusterBricksService
public GlusterBricksService glusterBricksService()
Description copied from interface:GlusterVolumeService
Reference to a service managing gluster bricks.- Specified by:
glusterBricksService
in interfaceGlusterVolumeService
-
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 interfaceGlusterVolumeService
- Specified by:
service
in interfaceMeasurableService
- Overrides:
service
in classMeasurableServiceImpl
-
toString
public String toString()
- Overrides:
toString
in classMeasurableServiceImpl
-
-