@MBean(objectName="GlobalXSiteAdminOperations", description="Exposes tooling for handling backing up data to remote sites.") public class GlobalXSiteAdminOperations extends Object
All the operations invoked in this class will be applied to all caches which remotely backups its data.
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_DELIMITER |
Constructor and Description |
---|
GlobalXSiteAdminOperations() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
bringAllCachesOnline(String site) |
String |
bringSiteOnline(String site) |
String |
cancelPushState(String site) |
Map<String,String> |
cancelPushStateAllCaches(String site) |
Map<String,SiteStatus> |
globalStatus() |
String |
pushState(String site) |
Map<String,String> |
pushStateAllCaches(String site) |
Map<String,String> |
takeAllCachesOffline(String site) |
String |
takeSiteOffline(String site) |
public static final String CACHE_DELIMITER
@ManagedOperation(description="Takes this site offline in all caches in the cluster.", displayName="Takes this site offline in all caches in the cluster.") public String takeSiteOffline(@Parameter(name="site",description="The name of the backup site") String site)
@ManagedOperation(description="Brings the given site back online on all the caches.", displayName="Brings the given site back online on all the caches.") public String bringSiteOnline(@Parameter(name="site",description="The name of the backup site") String site)
@ManagedOperation(displayName="Push state to site", description="Pushes the state of all caches to the corresponding remote site if the cache backups to it. The remote site will be bring back online", name="pushState") public final String pushState(@Parameter(description="The destination site name",name="SiteName") String site)
@ManagedOperation(displayName="Cancel Push State", description="Cancels the push state on all the caches to remote site.", name="CancelPushState") public final String cancelPushState(@Parameter(description="The destination site name",name="SiteName") String site)
public final Map<String,SiteStatus> globalStatus()
Copyright © 2021 JBoss by Red Hat. All rights reserved.