Package org.infinispan.xsite
Class GlobalXSiteAdminOperations
- java.lang.Object
-
- org.infinispan.xsite.GlobalXSiteAdminOperations
-
@MBean(objectName="GlobalXSiteAdminOperations", description="Exposes tooling for handling backing up data to remote sites.") public class GlobalXSiteAdminOperations extends ObjectA per-container (cache manager) cross-site admin operations.All the operations invoked in this class will be applied to all caches which remotely backups its data.
- Since:
- 8.1
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description static StringCACHE_DELIMITER
-
Constructor Summary
Constructors Constructor Description GlobalXSiteAdminOperations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>bringAllCachesOnline(String site)StringbringSiteOnline(String site)StringcancelPushState(String site)Map<String,String>cancelPushStateAllCaches(String site)Map<String,SiteStatus>globalStatus()StringpushState(String site)Map<String,String>pushStateAllCaches(String site)Map<String,String>takeAllCachesOffline(String site)StringtakeSiteOffline(String site)
-
-
-
Field Detail
-
CACHE_DELIMITER
public static final String CACHE_DELIMITER
- See Also:
- Constant Field Values
-
-
Method Detail
-
takeSiteOffline
@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)
-
bringSiteOnline
@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)
-
pushState
@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)
-
cancelPushState
@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)
-
globalStatus
public final Map<String,SiteStatus> globalStatus()
-
-