Class 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
    • Constructor Detail

      • GlobalXSiteAdminOperations

        public GlobalXSiteAdminOperations()
    • 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)