public class GlusterHookServiceImpl extends ServiceImpl implements GlusterHookService
GlusterHookService.DisableRequest, GlusterHookService.DisableResponse, GlusterHookService.EnableRequest, GlusterHookService.EnableResponse, GlusterHookService.GetRequest, GlusterHookService.GetResponse, GlusterHookService.RemoveRequest, GlusterHookService.RemoveResponse, GlusterHookService.ResolveRequest, GlusterHookService.ResolveResponse
Constructor and Description |
---|
GlusterHookServiceImpl(HttpConnection connection,
String path) |
Modifier and Type | Method and 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() |
checkAction, checkFault, getConnection, getPath, throwError
public GlusterHookServiceImpl(HttpConnection connection, String path)
public GlusterHookService.DisableRequest disable()
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.
disable
in interface GlusterHookService
public GlusterHookService.EnableRequest enable()
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.
enable
in interface GlusterHookService
public GlusterHookService.GetRequest get()
get
in interface GlusterHookService
public GlusterHookService.RemoveRequest remove()
GlusterHookService
Removes the this Gluster hook from all servers in cluster and deletes it from the database.
remove
in interface GlusterHookService
public GlusterHookService.ResolveRequest resolve()
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.
resolve
in interface GlusterHookService
public Service service(String path)
GlusterHookService
Service locator method, returns individual service on which the URI is dispatched.
service
in interface GlusterHookService
Copyright © 2016. All rights reserved.