Class AdminCommandExecution
java.lang.Object
com.linkedin.venice.controllerapi.AdminCommandExecution
The execution object is a kind of context for a admin command including essential information used to track the
status of this command.
-
Constructor Summary
ConstructorDescriptionCTOR used by JSON serializer.AdminCommandExecution
(long executionId, String operation, String clusterName, Collection<String> fabrics) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAndUpdateStatusForRemoteFabric
(String fabric, ControllerClient controllerClient) long
boolean
void
setClusterName
(String clusterName) void
setExecutionId
(long executionId) void
setFabricToExecutionStatusMap
(ConcurrentMap<String, AdminCommandExecutionStatus> fabricToExecutionStatusMap) void
setOperation
(String operation) void
setStartTime
(String startTime) toString()
void
updateCommandStatusForFabric
(String fabric, AdminCommandExecutionStatus status)
-
Constructor Details
-
AdminCommandExecution
public AdminCommandExecution()CTOR used by JSON serializer. -
AdminCommandExecution
public AdminCommandExecution(long executionId, String operation, String clusterName, Collection<String> fabrics)
-
-
Method Details
-
isSucceedInAllFabric
public boolean isSucceedInAllFabric() -
checkAndUpdateStatusForRemoteFabric
-
updateCommandStatusForFabric
-
getExecutionId
public long getExecutionId() -
setExecutionId
public void setExecutionId(long executionId) -
getOperation
-
setOperation
-
getClusterName
-
setClusterName
-
getStartTime
-
setStartTime
-
getFabricToExecutionStatusMap
-
setFabricToExecutionStatusMap
public void setFabricToExecutionStatusMap(ConcurrentMap<String, AdminCommandExecutionStatus> fabricToExecutionStatusMap) -
toString
-