Class Datafile
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.databasemanagement.model.Datafile
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20201101") public final class Datafile extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe details of a data file.
Note: Objects should always be created or deserialized using theDatafile.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theDatafile.Builder, which maintain a set of all explicitly set fields calledDatafile.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDatafile.Builderstatic classDatafile.LostWriteProtectThe lost write protection status of the file.static classDatafile.OnlineStatusThe online status of the file.static classDatafile.SharedType of tablespace this file belongs to.static classDatafile.StatusThe status of the file.
-
Constructor Summary
Constructors Constructor Description Datafile(String name, Datafile.Status status, Datafile.OnlineStatus onlineStatus, Boolean isAutoExtensible, Datafile.LostWriteProtect lostWriteProtect, Datafile.Shared shared, BigDecimal instanceId, BigDecimal maxSizeKB, BigDecimal allocatedSizeKB, BigDecimal userSizeKB, BigDecimal incrementBy, BigDecimal freeSpaceKB, BigDecimal usedSpaceKB, Double usedPercentAvailable, Double usedPercentAllocated)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Datafile.Builderbuilder()Create a new builder.booleanequals(Object o)BigDecimalgetAllocatedSizeKB()The allocated file size in KB.BigDecimalgetFreeSpaceKB()The free space available in the data file in KB.BigDecimalgetIncrementBy()The number of blocks used as auto-extension increment.BigDecimalgetInstanceId()Instance ID of the instance to which the temp file belongs.BooleangetIsAutoExtensible()Indicates whether the data file is auto-extensible.Datafile.LostWriteProtectgetLostWriteProtect()The lost write protection status of the file.BigDecimalgetMaxSizeKB()The maximum file size in KB.StringgetName()The filename (including the path) of the data file or temp file.Datafile.OnlineStatusgetOnlineStatus()The online status of the file.Datafile.SharedgetShared()Type of tablespace this file belongs to.Datafile.StatusgetStatus()The status of the file.DoublegetUsedPercentAllocated()The percentage of used space out of the total allocated space in the file.DoublegetUsedPercentAvailable()The percentage of used space out of the maximum available space in the file.BigDecimalgetUsedSpaceKB()The total space used in the data file in KB.BigDecimalgetUserSizeKB()The size of the file available for user data in KB.inthashCode()Datafile.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
Datafile
@Deprecated @ConstructorProperties({"name","status","onlineStatus","isAutoExtensible","lostWriteProtect","shared","instanceId","maxSizeKB","allocatedSizeKB","userSizeKB","incrementBy","freeSpaceKB","usedSpaceKB","usedPercentAvailable","usedPercentAllocated"}) public Datafile(String name, Datafile.Status status, Datafile.OnlineStatus onlineStatus, Boolean isAutoExtensible, Datafile.LostWriteProtect lostWriteProtect, Datafile.Shared shared, BigDecimal instanceId, BigDecimal maxSizeKB, BigDecimal allocatedSizeKB, BigDecimal userSizeKB, BigDecimal incrementBy, BigDecimal freeSpaceKB, BigDecimal usedSpaceKB, Double usedPercentAvailable, Double usedPercentAllocated)
Deprecated.
-
-
Method Detail
-
builder
public static Datafile.Builder builder()
Create a new builder.
-
toBuilder
public Datafile.Builder toBuilder()
-
getName
public String getName()
The filename (including the path) of the data file or temp file.- Returns:
- the value
-
getStatus
public Datafile.Status getStatus()
The status of the file.INVALID status is used when the file number is not in use, for example, a file in a tablespace that was removed.
- Returns:
- the value
-
getOnlineStatus
public Datafile.OnlineStatus getOnlineStatus()
The online status of the file.- Returns:
- the value
-
getIsAutoExtensible
public Boolean getIsAutoExtensible()
Indicates whether the data file is auto-extensible.- Returns:
- the value
-
getLostWriteProtect
public Datafile.LostWriteProtect getLostWriteProtect()
The lost write protection status of the file.- Returns:
- the value
-
getShared
public Datafile.Shared getShared()
Type of tablespace this file belongs to.If it’s for a shared tablespace, for a local temporary tablespace for RIM (read-only) instances, or for local temporary tablespace for all instance types.
- Returns:
- the value
-
getInstanceId
public BigDecimal getInstanceId()
Instance ID of the instance to which the temp file belongs.This column has a NULL value for temp files that belong to shared tablespaces.
- Returns:
- the value
-
getMaxSizeKB
public BigDecimal getMaxSizeKB()
The maximum file size in KB.- Returns:
- the value
-
getAllocatedSizeKB
public BigDecimal getAllocatedSizeKB()
The allocated file size in KB.- Returns:
- the value
-
getUserSizeKB
public BigDecimal getUserSizeKB()
The size of the file available for user data in KB.The actual size of the file minus the USER_BYTES value is used to store file-related metadata.
- Returns:
- the value
-
getIncrementBy
public BigDecimal getIncrementBy()
The number of blocks used as auto-extension increment.- Returns:
- the value
-
getFreeSpaceKB
public BigDecimal getFreeSpaceKB()
The free space available in the data file in KB.- Returns:
- the value
-
getUsedSpaceKB
public BigDecimal getUsedSpaceKB()
The total space used in the data file in KB.- Returns:
- the value
-
getUsedPercentAvailable
public Double getUsedPercentAvailable()
The percentage of used space out of the maximum available space in the file.- Returns:
- the value
-
getUsedPercentAllocated
public Double getUsedPercentAllocated()
The percentage of used space out of the total allocated space in the file.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-