Class DataRepositoryTask
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<DataRepositoryTask.Builder,
DataRepositoryTask>
A description of the data repository task.
-
You use import and export data repository tasks to perform bulk transfer operations between an Amazon FSx for Lustre file system and a linked data repository.
-
You use release data repository tasks to release files that have been exported to a linked S3 bucket from your Amazon FSx for Lustre file system.
-
An Amazon File Cache resource uses a task to automatically release files from the cache.
To learn more about data repository tasks, see Data Repository Tasks.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DataRepositoryTask.Builder
builder()
final Long
Specifies the amount of data to release, in GiB, by an Amazon File Cache AUTO_RELEASE_DATA task that automatically releases files from the cache.final Instant
Returns the value of the CreationTime property for this object.final Instant
endTime()
The time the system completed processing the task, populated after the task is complete.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.Failure message describing why the task failed, it is populated only whenLifecycle
is set toFAILED
.final String
The system-generated, unique ID of the cache.final String
The globally unique ID of the file system.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
hasPaths()
For responses, this returns true if the service returned a value for the Paths property.final boolean
hasTags()
For responses, this returns true if the service returned a value for the Tags property.The lifecycle status of the data repository task, as follows:final String
The lifecycle status of the data repository task, as follows:paths()
An array of paths that specify the data for the data repository task to process.final ReleaseConfiguration
The configuration that specifies the last accessed time criteria for files that will be released from an Amazon FSx for Lustre file system.final CompletionReport
report()
Returns the value of the Report property for this object.final String
Returns the value of the ResourceARN property for this object.static Class
<? extends DataRepositoryTask.Builder> final Instant
The time the system began processing the task.final DataRepositoryTaskStatus
status()
Provides the status of the number of files that the task has processed successfully and failed to process.tags()
Returns the value of the Tags property for this object.final String
taskId()
The system-generated, unique 17-digit ID of the data repository task.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final DataRepositoryTaskType
type()
The type of data repository task.final String
The type of data repository task.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
taskId
The system-generated, unique 17-digit ID of the data repository task.
- Returns:
- The system-generated, unique 17-digit ID of the data repository task.
-
lifecycle
The lifecycle status of the data repository task, as follows:
-
PENDING
- The task has not started. -
EXECUTING
- The task is in process. -
FAILED
- The task was not able to be completed. For example, there may be files the task failed to process. The DataRepositoryTaskFailureDetails property provides more information about task failures. -
SUCCEEDED
- The task has completed successfully. -
CANCELED
- The task was canceled and it did not complete. -
CANCELING
- The task is in process of being canceled.
You cannot delete an FSx for Lustre file system if there are data repository tasks for the file system in the
PENDING
orEXECUTING
states. Please retry when the data repository task is finished (with a status ofCANCELED
,SUCCEEDED
, orFAILED
). You can use the DescribeDataRepositoryTask action to monitor the task status. Contact the FSx team if you need to delete your file system immediately.If the service returns an enum value that is not available in the current SDK version,
lifecycle
will returnDataRepositoryTaskLifecycle.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlifecycleAsString()
.- Returns:
- The lifecycle status of the data repository task, as follows:
-
PENDING
- The task has not started. -
EXECUTING
- The task is in process. -
FAILED
- The task was not able to be completed. For example, there may be files the task failed to process. The DataRepositoryTaskFailureDetails property provides more information about task failures. -
SUCCEEDED
- The task has completed successfully. -
CANCELED
- The task was canceled and it did not complete. -
CANCELING
- The task is in process of being canceled.
You cannot delete an FSx for Lustre file system if there are data repository tasks for the file system in the
PENDING
orEXECUTING
states. Please retry when the data repository task is finished (with a status ofCANCELED
,SUCCEEDED
, orFAILED
). You can use the DescribeDataRepositoryTask action to monitor the task status. Contact the FSx team if you need to delete your file system immediately. -
- See Also:
-
-
lifecycleAsString
The lifecycle status of the data repository task, as follows:
-
PENDING
- The task has not started. -
EXECUTING
- The task is in process. -
FAILED
- The task was not able to be completed. For example, there may be files the task failed to process. The DataRepositoryTaskFailureDetails property provides more information about task failures. -
SUCCEEDED
- The task has completed successfully. -
CANCELED
- The task was canceled and it did not complete. -
CANCELING
- The task is in process of being canceled.
You cannot delete an FSx for Lustre file system if there are data repository tasks for the file system in the
PENDING
orEXECUTING
states. Please retry when the data repository task is finished (with a status ofCANCELED
,SUCCEEDED
, orFAILED
). You can use the DescribeDataRepositoryTask action to monitor the task status. Contact the FSx team if you need to delete your file system immediately.If the service returns an enum value that is not available in the current SDK version,
lifecycle
will returnDataRepositoryTaskLifecycle.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlifecycleAsString()
.- Returns:
- The lifecycle status of the data repository task, as follows:
-
PENDING
- The task has not started. -
EXECUTING
- The task is in process. -
FAILED
- The task was not able to be completed. For example, there may be files the task failed to process. The DataRepositoryTaskFailureDetails property provides more information about task failures. -
SUCCEEDED
- The task has completed successfully. -
CANCELED
- The task was canceled and it did not complete. -
CANCELING
- The task is in process of being canceled.
You cannot delete an FSx for Lustre file system if there are data repository tasks for the file system in the
PENDING
orEXECUTING
states. Please retry when the data repository task is finished (with a status ofCANCELED
,SUCCEEDED
, orFAILED
). You can use the DescribeDataRepositoryTask action to monitor the task status. Contact the FSx team if you need to delete your file system immediately. -
- See Also:
-
-
type
The type of data repository task.
-
EXPORT_TO_REPOSITORY
tasks export from your Amazon FSx for Lustre file system to a linked data repository. -
IMPORT_METADATA_FROM_REPOSITORY
tasks import metadata changes from a linked S3 bucket to your Amazon FSx for Lustre file system. -
RELEASE_DATA_FROM_FILESYSTEM
tasks release files in your Amazon FSx for Lustre file system that have been exported to a linked S3 bucket and that meet your specified release criteria. -
AUTO_RELEASE_DATA
tasks automatically release files from an Amazon File Cache resource.
If the service returns an enum value that is not available in the current SDK version,
type
will returnDataRepositoryTaskType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of data repository task.
-
EXPORT_TO_REPOSITORY
tasks export from your Amazon FSx for Lustre file system to a linked data repository. -
IMPORT_METADATA_FROM_REPOSITORY
tasks import metadata changes from a linked S3 bucket to your Amazon FSx for Lustre file system. -
RELEASE_DATA_FROM_FILESYSTEM
tasks release files in your Amazon FSx for Lustre file system that have been exported to a linked S3 bucket and that meet your specified release criteria. -
AUTO_RELEASE_DATA
tasks automatically release files from an Amazon File Cache resource.
-
- See Also:
-
-
typeAsString
The type of data repository task.
-
EXPORT_TO_REPOSITORY
tasks export from your Amazon FSx for Lustre file system to a linked data repository. -
IMPORT_METADATA_FROM_REPOSITORY
tasks import metadata changes from a linked S3 bucket to your Amazon FSx for Lustre file system. -
RELEASE_DATA_FROM_FILESYSTEM
tasks release files in your Amazon FSx for Lustre file system that have been exported to a linked S3 bucket and that meet your specified release criteria. -
AUTO_RELEASE_DATA
tasks automatically release files from an Amazon File Cache resource.
If the service returns an enum value that is not available in the current SDK version,
type
will returnDataRepositoryTaskType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of data repository task.
-
EXPORT_TO_REPOSITORY
tasks export from your Amazon FSx for Lustre file system to a linked data repository. -
IMPORT_METADATA_FROM_REPOSITORY
tasks import metadata changes from a linked S3 bucket to your Amazon FSx for Lustre file system. -
RELEASE_DATA_FROM_FILESYSTEM
tasks release files in your Amazon FSx for Lustre file system that have been exported to a linked S3 bucket and that meet your specified release criteria. -
AUTO_RELEASE_DATA
tasks automatically release files from an Amazon File Cache resource.
-
- See Also:
-
-
creationTime
Returns the value of the CreationTime property for this object.- Returns:
- The value of the CreationTime property for this object.
-
startTime
The time the system began processing the task.
- Returns:
- The time the system began processing the task.
-
endTime
The time the system completed processing the task, populated after the task is complete.
- Returns:
- The time the system completed processing the task, populated after the task is complete.
-
resourceARN
Returns the value of the ResourceARN property for this object.- Returns:
- The value of the ResourceARN property for this object.
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
tags
Returns the value of the Tags property for this object.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()
method.- Returns:
- The value of the Tags property for this object.
-
fileSystemId
The globally unique ID of the file system.
- Returns:
- The globally unique ID of the file system.
-
hasPaths
public final boolean hasPaths()For responses, this returns true if the service returned a value for the Paths property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
paths
An array of paths that specify the data for the data repository task to process. For example, in an EXPORT_TO_REPOSITORY task, the paths specify which data to export to the linked data repository.
(Default) If
Paths
is not specified, Amazon FSx uses the file system root directory.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPaths()
method.- Returns:
- An array of paths that specify the data for the data repository task to process. For example, in an
EXPORT_TO_REPOSITORY task, the paths specify which data to export to the linked data repository.
(Default) If
Paths
is not specified, Amazon FSx uses the file system root directory.
-
failureDetails
Failure message describing why the task failed, it is populated only when
Lifecycle
is set toFAILED
.- Returns:
- Failure message describing why the task failed, it is populated only when
Lifecycle
is set toFAILED
.
-
status
Provides the status of the number of files that the task has processed successfully and failed to process.
- Returns:
- Provides the status of the number of files that the task has processed successfully and failed to process.
-
report
Returns the value of the Report property for this object.- Returns:
- The value of the Report property for this object.
-
capacityToRelease
Specifies the amount of data to release, in GiB, by an Amazon File Cache AUTO_RELEASE_DATA task that automatically releases files from the cache.
- Returns:
- Specifies the amount of data to release, in GiB, by an Amazon File Cache AUTO_RELEASE_DATA task that automatically releases files from the cache.
-
fileCacheId
The system-generated, unique ID of the cache.
- Returns:
- The system-generated, unique ID of the cache.
-
releaseConfiguration
The configuration that specifies the last accessed time criteria for files that will be released from an Amazon FSx for Lustre file system.
- Returns:
- The configuration that specifies the last accessed time criteria for files that will be released from an Amazon FSx for Lustre file system.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<DataRepositoryTask.Builder,
DataRepositoryTask> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-