BatchFileProperties Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchFileProperties
- com.
public class BatchFileProperties
Class representing the properties of a file on a Compute Node or Task in Azure Batch. The properties are extracted from the HTTP response headers received from a Batch service request.
Constructor Summary
| Constructor | Description |
|---|---|
| BatchFileProperties(HttpHeaders headers) |
Constructs a Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| long |
getContentLength()
Retrieves the length of the file. |
| String |
getOcpBatchFileMode()
Retrieves the file mode attribute in octal format. |
| String |
getOcpBatchFileUrl()
Retrieves the URL of the file. |
|
Offset |
getOcpCreationTime()
Retrieves the creation time of the file. |
| boolean |
isOcpBatchFileIsDirectory()
Determines whether the file object represents a directory. |
Methods inherited from java.lang.Object
Constructor Details
BatchFileProperties
public BatchFileProperties(HttpHeaders headers)
Constructs a BatchFileProperties object from HTTP response headers.
Parameters:
Method Details
getContentLength
public long getContentLength()
Retrieves the length of the file.
Returns:
getOcpBatchFileMode
public String getOcpBatchFileMode()
Retrieves the file mode attribute in octal format.
Returns:
getOcpBatchFileUrl
public String getOcpBatchFileUrl()
Retrieves the URL of the file.
Returns:
getOcpCreationTime
public OffsetDateTime getOcpCreationTime()
Retrieves the creation time of the file.
Returns:
isOcpBatchFileIsDirectory
public boolean isOcpBatchFileIsDirectory()
Determines whether the file object represents a directory.
Returns: