Package com.oracle.bmc.mysql.model
Class ChannelStatusResult
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.mysql.model.ChannelStatusResult
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20190415") public final class ChannelStatusResult extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelStatus information for the channel attached to the DB System.
Note: Objects should always be created or deserialized using theChannelStatusResult.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 theChannelStatusResult.Builder, which maintain a set of all explicitly set fields calledChannelStatusResult.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 classChannelStatusResult.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChannelStatusResult.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetChannelId()The OCID of the Channel for which the status is gathered.List<String>getErrors()Channel errors identified, if there are any.BooleangetIsHealthy()Specifies if the channel is healthy or not.BooleangetIsReceivedGtidSetApplied()Specifies if all transactions received by this channel are executed and their GTIDs are part of gtid_executed set.StringgetLagDuration()The channel lag, with respect to the immediate source of the channel.inthashCode()ChannelStatusResult.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
ChannelStatusResult
@Deprecated @ConstructorProperties({"channelId","isHealthy","isReceivedGtidSetApplied","errors","lagDuration"}) public ChannelStatusResult(String channelId, Boolean isHealthy, Boolean isReceivedGtidSetApplied, List<String> errors, String lagDuration)
Deprecated.
-
-
Method Detail
-
builder
public static ChannelStatusResult.Builder builder()
Create a new builder.
-
toBuilder
public ChannelStatusResult.Builder toBuilder()
-
getChannelId
public String getChannelId()
The OCID of the Channel for which the status is gathered.- Returns:
- the value
-
getIsHealthy
public Boolean getIsHealthy()
Specifies if the channel is healthy or not.If healthy, replication target DB System is connected to the source and no replication errors are seen.
- Returns:
- the value
-
getIsReceivedGtidSetApplied
public Boolean getIsReceivedGtidSetApplied()
Specifies if all transactions received by this channel are executed and their GTIDs are part of gtid_executed set.- Returns:
- the value
-
getErrors
public List<String> getErrors()
Channel errors identified, if there are any.- Returns:
- the value
-
getLagDuration
public String getLagDuration()
The channel lag, with respect to the immediate source of the channel.If the channel is configured with replication delay, the channel lag includes the replication delay.
- 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
-
-