public StatePushTask(String siteName, Address origin, XSiteStateTransferConfiguration configuration, int minTopologyId) {
this.minTopologyId = minTopologyId;
this.chunkSize = configuration.chunkSize();
this.waitTime = configuration.waitTime();
this.retryPolicy = new MaxRetriesPolicy(configuration.maxRetries());
this.origin = origin;
this.xSiteBackup = new XSiteBackup(siteName, true, configuration.timeout());
this.canceled = false;
this.finished = false;
this.error = false;