@ SuppressWarnings ( "deprecation" ) @ Deprecated @ Nullable public ReplicaSetStatus getReplicaSetStatus ( ) { ClusterDescription clusterDescription = getClusterDescription ( ) ; return clusterDescription . getType ( ) == REPLICA_SET && clusterDescription . getConnectionMode ( ) == MULTIPLE ? new ReplicaSetStatus ( delegate . getCluster ( ) ) : null ; // this is intended behavior in 2.x }
Get the status of the replica set cluster .