org.infinispan.upgrade.RollingUpgradeManager Maven / Gradle / Ivy
package org.infinispan.upgrade;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import org.infinispan.Cache;
import org.infinispan.commons.util.ServiceFinder;
import org.infinispan.commons.util.Util;
import org.infinispan.configuration.global.GlobalConfiguration;
import org.infinispan.factories.annotations.Inject;
import org.infinispan.factories.annotations.SurvivesRestarts;
import org.infinispan.factories.scopes.Scope;
import org.infinispan.factories.scopes.Scopes;
import org.infinispan.jmx.annotations.MBean;
import org.infinispan.jmx.annotations.ManagedOperation;
import org.infinispan.jmx.annotations.Parameter;
import org.infinispan.commons.time.TimeService;
import org.infinispan.util.logging.Log;
import org.infinispan.util.logging.LogFactory;
/**
* This component handles the control hooks to handle migrating from one version of Infinispan to
* another.
*
* @author Manik Surtani
* @author Tristan Tarrant
* @since 5.2
*/
@MBean(objectName = "RollingUpgradeManager", description = "This component handles the control hooks to handle migrating data from one version of Infinispan to another")
@Scope(value = Scopes.NAMED_CACHE)
@SurvivesRestarts
public class RollingUpgradeManager {
private static final Log log = LogFactory.getLog(RollingUpgradeManager.class);
private final Set sourceMigrators = new HashSet<>(2);
@Inject private Cache
© 2015 - 2025 Weber Informatics LLC | Privacy Policy