Class GlusterHookServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.GlusterHookServiceImpl
-
- All Implemented Interfaces:
Service
,GlusterHookService
public class GlusterHookServiceImpl extends ServiceImpl implements GlusterHookService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.GlusterHookService
GlusterHookService.DisableRequest, GlusterHookService.DisableResponse, GlusterHookService.EnableRequest, GlusterHookService.EnableResponse, GlusterHookService.GetRequest, GlusterHookService.GetResponse, GlusterHookService.RemoveRequest, GlusterHookService.RemoveResponse, GlusterHookService.ResolveRequest, GlusterHookService.ResolveResponse
-
-
Constructor Summary
Constructors Constructor Description GlusterHookServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlusterHookService.DisableRequest
disable()
Resolves status conflict of hook among servers in cluster by disabling Gluster hook in all servers of the cluster.GlusterHookService.EnableRequest
enable()
Resolves status conflict of hook among servers in cluster by disabling Gluster hook in all servers of the cluster.GlusterHookService.GetRequest
get()
GlusterHookService.RemoveRequest
remove()
Removes the this Gluster hook from all servers in cluster and deletes it from the database.GlusterHookService.ResolveRequest
resolve()
Resolves missing hook conflict depending on the resolution type.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.String
toString()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
GlusterHookServiceImpl
public GlusterHookServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
disable
public GlusterHookService.DisableRequest disable()
Description copied from interface:GlusterHookService
Resolves status conflict of hook among servers in cluster by disabling Gluster hook in all servers of the cluster. This updates the hook status to `DISABLED` in database.- Specified by:
disable
in interfaceGlusterHookService
-
enable
public GlusterHookService.EnableRequest enable()
Description copied from interface:GlusterHookService
Resolves status conflict of hook among servers in cluster by disabling Gluster hook in all servers of the cluster. This updates the hook status to `DISABLED` in database.- Specified by:
enable
in interfaceGlusterHookService
-
get
public GlusterHookService.GetRequest get()
- Specified by:
get
in interfaceGlusterHookService
-
remove
public GlusterHookService.RemoveRequest remove()
Description copied from interface:GlusterHookService
Removes the this Gluster hook from all servers in cluster and deletes it from the database.- Specified by:
remove
in interfaceGlusterHookService
-
resolve
public GlusterHookService.ResolveRequest resolve()
Description copied from interface:GlusterHookService
Resolves missing hook conflict depending on the resolution type. For `ADD` resolves by copying hook stored in engine database to all servers where the hook is missing. The engine maintains a list of all servers where hook is missing. For `COPY` resolves conflict in hook content by copying hook stored in engine database to all servers where the hook is missing. The engine maintains a list of all servers where the content is conflicting. If a host id is passed as parameter, the hook content from the server is used as the master to copy to other servers in cluster.- Specified by:
resolve
in interfaceGlusterHookService
-
service
public Service service(String path)
Description copied from interface:GlusterHookService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceGlusterHookService
-
-