Class ClusterServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.ClusterServiceImpl
-
- All Implemented Interfaces:
Service
,ClusterService
public class ClusterServiceImpl extends ServiceImpl implements ClusterService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.ClusterService
ClusterService.GetRequest, ClusterService.GetResponse, ClusterService.RefreshGlusterHealStatusRequest, ClusterService.RefreshGlusterHealStatusResponse, ClusterService.RemoveRequest, ClusterService.RemoveResponse, ClusterService.ResetEmulatedMachineRequest, ClusterService.ResetEmulatedMachineResponse, ClusterService.SyncAllNetworksRequest, ClusterService.SyncAllNetworksResponse, ClusterService.UpdateRequest, ClusterService.UpdateResponse, ClusterService.UpgradeRequest, ClusterService.UpgradeResponse
-
-
Constructor Summary
Constructors Constructor Description ClusterServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AffinityGroupsService
affinityGroupsService()
A reference to the service that manages affinity groups.AssignedCpuProfilesService
cpuProfilesService()
A reference to the service that manages assigned CPU profiles for the cluster.ClusterEnabledFeaturesService
enabledFeaturesService()
A reference to the service that manages the collection of enabled features for the cluster.ClusterExternalProvidersService
externalNetworkProvidersService()
A reference to the service that manages the collection of external network providers.ClusterService.GetRequest
get()
Gets information about the cluster.GlusterHooksService
glusterHooksService()
A reference to the service that manages the Gluster hooks for the cluster.GlusterVolumesService
glusterVolumesService()
A reference to the service that manages Gluster volumes for the cluster.NetworkFiltersService
networkFiltersService()
A sub-collection with all the supported network filters for the cluster.ClusterNetworksService
networksService()
A reference to the service that manages assigned networks for the cluster.AssignedPermissionsService
permissionsService()
A reference to permissions.ClusterService.RefreshGlusterHealStatusRequest
refreshGlusterHealStatus()
Refresh the Gluster heal info for all volumes in cluster.ClusterService.RemoveRequest
remove()
Removes the cluster from the system.ClusterService.ResetEmulatedMachineRequest
resetEmulatedMachine()
Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.ClusterService.SyncAllNetworksRequest
syncAllNetworks()
Synchronizes all networks on the cluster.String
toString()
ClusterService.UpdateRequest
update()
Updates information about the cluster.ClusterService.UpgradeRequest
upgrade()
Start or finish upgrade process for the cluster based on the action value.-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
ClusterServiceImpl
public ClusterServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
get
public ClusterService.GetRequest get()
Description copied from interface:ClusterService
Gets information about the cluster. An example of getting a cluster: [source] ---- GET /ovirt-engine/api/clusters/123 ---- [source,xml] ----Default The default server cluster false x86_64 Intel Nehalem Family migrate true false 50 false false false true true 100 true inherit auto inherit random false false false 4 0 true - Specified by:
get
in interfaceClusterService
-
refreshGlusterHealStatus
public ClusterService.RefreshGlusterHealStatusRequest refreshGlusterHealStatus()
Description copied from interface:ClusterService
Refresh the Gluster heal info for all volumes in cluster. For example, Cluster `123`, send a request like this: [source] ---- POST /ovirt-engine/api/clusters/123/refreshglusterhealstatus ----- Specified by:
refreshGlusterHealStatus
in interfaceClusterService
-
remove
public ClusterService.RemoveRequest remove()
Description copied from interface:ClusterService
Removes the cluster from the system. [source] ---- DELETE /ovirt-engine/api/clusters/00000000-0000-0000-0000-000000000000 ----- Specified by:
remove
in interfaceClusterService
-
resetEmulatedMachine
public ClusterService.ResetEmulatedMachineRequest resetEmulatedMachine()
- Specified by:
resetEmulatedMachine
in interfaceClusterService
-
syncAllNetworks
public ClusterService.SyncAllNetworksRequest syncAllNetworks()
Description copied from interface:ClusterService
Synchronizes all networks on the cluster. [source] ---- POST /ovirt-engine/api/clusters/123/syncallnetworks ---- With a request body like this: [source,xml] -------- - Specified by:
syncAllNetworks
in interfaceClusterService
-
update
public ClusterService.UpdateRequest update()
Description copied from interface:ClusterService
Updates information about the cluster. Only the specified fields are updated; others remain unchanged. For example, to update the cluster's CPU: [source] ---- PUT /ovirt-engine/api/clusters/123 ---- With a request body like this: [source,xml] ----Intel Haswell-noTSX Family - Specified by:
update
in interfaceClusterService
-
upgrade
public ClusterService.UpgradeRequest upgrade()
Description copied from interface:ClusterService
Start or finish upgrade process for the cluster based on the action value. This action marks the cluster for upgrade or clears the upgrade running flag on the cluster based on the action value which takes values of start or stop. [source] ---- POST /ovirt-engine/api/clusters/123/upgrade ---- With a request body like this to mark the cluster for upgrade: [source,xml] ----start - Specified by:
upgrade
in interfaceClusterService
-
affinityGroupsService
public AffinityGroupsService affinityGroupsService()
Description copied from interface:ClusterService
A reference to the service that manages affinity groups.- Specified by:
affinityGroupsService
in interfaceClusterService
-
cpuProfilesService
public AssignedCpuProfilesService cpuProfilesService()
Description copied from interface:ClusterService
A reference to the service that manages assigned CPU profiles for the cluster.- Specified by:
cpuProfilesService
in interfaceClusterService
-
enabledFeaturesService
public ClusterEnabledFeaturesService enabledFeaturesService()
Description copied from interface:ClusterService
A reference to the service that manages the collection of enabled features for the cluster.- Specified by:
enabledFeaturesService
in interfaceClusterService
-
externalNetworkProvidersService
public ClusterExternalProvidersService externalNetworkProvidersService()
Description copied from interface:ClusterService
A reference to the service that manages the collection of external network providers.- Specified by:
externalNetworkProvidersService
in interfaceClusterService
-
glusterHooksService
public GlusterHooksService glusterHooksService()
Description copied from interface:ClusterService
A reference to the service that manages the Gluster hooks for the cluster.- Specified by:
glusterHooksService
in interfaceClusterService
-
glusterVolumesService
public GlusterVolumesService glusterVolumesService()
Description copied from interface:ClusterService
A reference to the service that manages Gluster volumes for the cluster.- Specified by:
glusterVolumesService
in interfaceClusterService
-
networkFiltersService
public NetworkFiltersService networkFiltersService()
Description copied from interface:ClusterService
A sub-collection with all the supported network filters for the cluster.- Specified by:
networkFiltersService
in interfaceClusterService
-
networksService
public ClusterNetworksService networksService()
Description copied from interface:ClusterService
A reference to the service that manages assigned networks for the cluster.- Specified by:
networksService
in interfaceClusterService
-
permissionsService
public AssignedPermissionsService permissionsService()
Description copied from interface:ClusterService
A reference to permissions.- Specified by:
permissionsService
in interfaceClusterService
-
service
public Service service(String path)
Description copied from interface:ClusterService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceClusterService
-
-