public enum ReplicationStatus extends Enum<ReplicationStatus>
Currently we have starting,doing,closing three status. After PutBucketReplication is sent, OSS start preparing the replication and at this point the status is 'starting'. And when the replication actually happens, the status is "doing". And once DeleteBucketReplication is called, the OSS will do the cleanup work for the replication and the status will be "closing".
Enum Constant and Description |
---|
Closing
Cleaning up the replication.
|
Doing
Doing the replication.
|
Starting
Preparing the replication.
|
Modifier and Type | Method and Description |
---|---|
static ReplicationStatus |
parse(String replicationStatus) |
String |
toString() |
static ReplicationStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicationStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplicationStatus Starting
public static final ReplicationStatus Doing
public static final ReplicationStatus Closing
public static ReplicationStatus[] values()
for (ReplicationStatus c : ReplicationStatus.values()) System.out.println(c);
public static ReplicationStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<ReplicationStatus>
public static ReplicationStatus parse(String replicationStatus)
Copyright © 2021. All Rights Reserved.