mirror of https://github.com/apache/nifi.git
NIFI-10861 This closes #6705. Deprecated Azure Storage Processors using legacy Microsoft SDK
Signed-off-by: Joe Witt <joewitt@apache.org>
This commit is contained in:
parent
5aa7ba9bf9
commit
6062f16667
|
@ -25,6 +25,7 @@ import com.microsoft.azure.storage.blob.DeleteSnapshotsOption;
|
|||
import org.apache.nifi.annotation.behavior.InputRequirement;
|
||||
import org.apache.nifi.annotation.behavior.InputRequirement.Requirement;
|
||||
import org.apache.nifi.annotation.documentation.CapabilityDescription;
|
||||
import org.apache.nifi.annotation.documentation.DeprecationNotice;
|
||||
import org.apache.nifi.annotation.documentation.SeeAlso;
|
||||
import org.apache.nifi.annotation.documentation.Tags;
|
||||
import org.apache.nifi.components.AllowableValue;
|
||||
|
@ -46,6 +47,7 @@ import java.util.concurrent.TimeUnit;
|
|||
@SeeAlso({ ListAzureBlobStorage.class, FetchAzureBlobStorage.class, PutAzureBlobStorage.class})
|
||||
@CapabilityDescription("Deletes the provided blob from Azure Storage")
|
||||
@InputRequirement(Requirement.INPUT_REQUIRED)
|
||||
@DeprecationNotice(alternatives = DeleteAzureBlobStorage_v12.class, reason = "Processor depends on legacy Microsoft Azure SDK")
|
||||
public class DeleteAzureBlobStorage extends AbstractAzureBlobProcessor {
|
||||
|
||||
private static final AllowableValue DELETE_SNAPSHOTS_NONE = new AllowableValue(DeleteSnapshotsOption.NONE.name(), "None", "Delete the blob only.");
|
||||
|
|
|
@ -34,6 +34,7 @@ import org.apache.nifi.annotation.behavior.InputRequirement.Requirement;
|
|||
import org.apache.nifi.annotation.behavior.WritesAttribute;
|
||||
import org.apache.nifi.annotation.behavior.WritesAttributes;
|
||||
import org.apache.nifi.annotation.documentation.CapabilityDescription;
|
||||
import org.apache.nifi.annotation.documentation.DeprecationNotice;
|
||||
import org.apache.nifi.annotation.documentation.SeeAlso;
|
||||
import org.apache.nifi.annotation.documentation.Tags;
|
||||
import org.apache.nifi.components.PropertyDescriptor;
|
||||
|
@ -63,6 +64,7 @@ import com.microsoft.azure.storage.blob.BlobRequestOptions;
|
|||
@WritesAttributes({
|
||||
@WritesAttribute(attribute = "azure.length", description = "The length of the blob fetched")
|
||||
})
|
||||
@DeprecationNotice(alternatives = FetchAzureBlobStorage_v12.class, reason = "Processor depends on legacy Microsoft Azure SDK")
|
||||
public class FetchAzureBlobStorage extends AbstractAzureBlobProcessor {
|
||||
|
||||
public static final PropertyDescriptor RANGE_START = new PropertyDescriptor.Builder()
|
||||
|
|
|
@ -47,6 +47,7 @@ import org.apache.nifi.annotation.behavior.WritesAttribute;
|
|||
import org.apache.nifi.annotation.behavior.WritesAttributes;
|
||||
import org.apache.nifi.annotation.configuration.DefaultSchedule;
|
||||
import org.apache.nifi.annotation.documentation.CapabilityDescription;
|
||||
import org.apache.nifi.annotation.documentation.DeprecationNotice;
|
||||
import org.apache.nifi.annotation.documentation.SeeAlso;
|
||||
import org.apache.nifi.annotation.documentation.Tags;
|
||||
import org.apache.nifi.components.PropertyDescriptor;
|
||||
|
@ -90,6 +91,7 @@ import java.util.Optional;
|
|||
"stored across the cluster so that this Processor can be run on Primary Node only and if a new Primary Node is selected, the new node can pick up " +
|
||||
"where the previous node left off, without duplicating the data.")
|
||||
@DefaultSchedule(strategy = SchedulingStrategy.TIMER_DRIVEN, period = "1 min")
|
||||
@DeprecationNotice(alternatives = ListAzureBlobStorage_v12.class, reason = "Processor depends on legacy Microsoft Azure SDK")
|
||||
public class ListAzureBlobStorage extends AbstractListAzureProcessor<BlobInfo> {
|
||||
|
||||
private static final PropertyDescriptor PROP_PREFIX = new PropertyDescriptor.Builder()
|
||||
|
|
|
@ -37,6 +37,7 @@ import org.apache.nifi.annotation.behavior.InputRequirement.Requirement;
|
|||
import org.apache.nifi.annotation.behavior.WritesAttribute;
|
||||
import org.apache.nifi.annotation.behavior.WritesAttributes;
|
||||
import org.apache.nifi.annotation.documentation.CapabilityDescription;
|
||||
import org.apache.nifi.annotation.documentation.DeprecationNotice;
|
||||
import org.apache.nifi.annotation.documentation.SeeAlso;
|
||||
import org.apache.nifi.annotation.documentation.Tags;
|
||||
import org.apache.nifi.components.PropertyDescriptor;
|
||||
|
@ -69,6 +70,7 @@ import com.microsoft.azure.storage.blob.BlobRequestOptions;
|
|||
@WritesAttribute(attribute = "azure.etag", description = "Etag for the Azure blob"),
|
||||
@WritesAttribute(attribute = "azure.length", description = "Length of the blob"),
|
||||
@WritesAttribute(attribute = "azure.timestamp", description = "The timestamp in Azure for the blob")})
|
||||
@DeprecationNotice(alternatives = PutAzureBlobStorage_v12.class, reason = "Processor depends on legacy Microsoft Azure SDK")
|
||||
public class PutAzureBlobStorage extends AbstractAzureBlobProcessor {
|
||||
|
||||
public static final PropertyDescriptor BLOB_NAME = new PropertyDescriptor.Builder()
|
||||
|
|
Loading…
Reference in New Issue