Package com.linkedin.venice.controller
Class NodeRemovableResult
- java.lang.Object
-
- com.linkedin.venice.controller.NodeRemovableResult
-
public class NodeRemovableResult extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeRemovableResult.BlockingRemoveReason
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBlockingReason()
java.lang.String
getBlockingResource()
java.lang.String
getDetails()
java.lang.String
getInstanceId()
boolean
isRemovable()
static NodeRemovableResult
nonRemovableResult(java.lang.String instanceId, java.lang.String blockingResource, NodeRemovableResult.BlockingRemoveReason blockingReason, java.lang.String details)
static NodeRemovableResult
removableResult(java.lang.String instanceId, java.lang.String details)
-
-
-
Method Detail
-
isRemovable
public boolean isRemovable()
-
getBlockingResource
public java.lang.String getBlockingResource()
-
getBlockingReason
public java.lang.String getBlockingReason()
-
getDetails
public java.lang.String getDetails()
-
removableResult
public static NodeRemovableResult removableResult(java.lang.String instanceId, java.lang.String details)
-
nonRemovableResult
public static NodeRemovableResult nonRemovableResult(java.lang.String instanceId, java.lang.String blockingResource, NodeRemovableResult.BlockingRemoveReason blockingReason, java.lang.String details)
- Returns:
- a
NodeRemovableResult
object with specified parameters.
-
getInstanceId
public java.lang.String getInstanceId()
-
-