Class ServerCloneStatus
java.lang.Object
org.apache.druid.server.coordinator.ServerCloneStatus
Immutable class which represents the current status of a single clone server.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum determining the status of the cloning process. -
Constructor Summary
ConstructorsConstructorDescriptionServerCloneStatus(String sourceServer, String targetServer, ServerCloneStatus.State state, long segmentLoadsRemaining, long segmentDropsRemaining, long bytesToLoad) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglonglonggetState()inthashCode()toString()static ServerCloneStatusCreate aServerCloneStatuswhere the current status is unknown as the target server is missing.
-
Constructor Details
-
ServerCloneStatus
public ServerCloneStatus(String sourceServer, String targetServer, ServerCloneStatus.State state, long segmentLoadsRemaining, long segmentDropsRemaining, long bytesToLoad)
-
-
Method Details
-
getSourceServer
-
getTargetServer
-
getSegmentLoadsRemaining
public long getSegmentLoadsRemaining() -
getSegmentDropsRemaining
public long getSegmentDropsRemaining() -
getBytesToLoad
public long getBytesToLoad() -
getState
-
unknown
Create aServerCloneStatuswhere the current status is unknown as the target server is missing. -
equals
-
hashCode
public int hashCode() -
toString
-