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 Object
A 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 Details

  • Constructor Details

    • GlobalXSiteAdminOperations

      public GlobalXSiteAdminOperations()
  • Method Details

    • takeAllCachesOffline

      public Map<String,String> takeAllCachesOffline(String site)
    • bringAllCachesOnline

      public Map<String,String> bringAllCachesOnline(String site)
    • pushStateAllCaches

      public Map<String,String> pushStateAllCaches(String site)
    • cancelPushStateAllCaches

      public Map<String,String> cancelPushStateAllCaches(String site)
    • 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()
    • onSitesUp

      public void onSitesUp(Collection<String> sitesUp)
      Invoked when a remote site is connected.

      This method is used to trigger the cross-site replication state transfer if it is enabled. It checks all the caches.

      Parameters:
      sitesUp - The Collection of remote sites online.