All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.emc.mongoose.api.model.io.task.IoTaskBuilder Maven / Gradle / Ivy

There is a newer version: 4.0.0-alpha5
Show newest version
package com.emc.mongoose.api.model.io.task;

import com.emc.mongoose.api.common.supply.BatchSupplier;
import com.emc.mongoose.api.model.item.Item;
import com.emc.mongoose.api.model.io.IoType;

import java.io.Closeable;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 Created by kurila on 14.07.16.
 */
public interface IoTaskBuilder>
extends Closeable {
	
	int getOriginCode();
	
	IoType getIoType();

	IoTaskBuilder setIoType(final IoType ioType);

	String getInputPath();

	IoTaskBuilder setInputPath(final String inputPath);
	
	IoTaskBuilder setOutputPathSupplier(final BatchSupplier ops);
	
	IoTaskBuilder setUidSupplier(final BatchSupplier uidSupplier);
	
	IoTaskBuilder setSecretSupplier(final BatchSupplier secretSupplier);
	
	IoTaskBuilder setCredentialsMap(final Map credentials);

	O getInstance(final I item)
	throws IOException, IllegalArgumentException;

	void getInstances(final List items, final List buff)
	throws IOException, IllegalArgumentException;
}