public class MoveResult extends AbstractResult
MoveIndexPartitionTask
.Modifier and Type | Field and Description |
---|---|
PartitionLocator |
newLocator |
int |
newPartitionId |
PartitionLocator |
oldLocator |
protected AtomicBoolean |
registeredInMDS
false until the target index partition is registered in
the MDS. |
UUID |
targetDataServiceUUID |
String |
targetIndexName
The name of the new index partition on the target data service.
|
indexMetadata, name
Constructor and Description |
---|
MoveResult(String name,
IndexMetadata indexMetadata,
UUID targetDataServiceUUID,
int newPartitionId,
PartitionLocator oldLocator,
PartitionLocator newLocator) |
public final UUID targetDataServiceUUID
public final int newPartitionId
public final String targetIndexName
Note: AbstractResult.name
is the name of the source index
partition that was moved to the target data service.
public final PartitionLocator oldLocator
public final PartitionLocator newLocator
protected final AtomicBoolean registeredInMDS
false
until the target index partition is registered in
the MDS. This is used to decide whether or not we need to rollback a
change in the MDS if the atomic update task fails during the commit.public MoveResult(String name, IndexMetadata indexMetadata, UUID targetDataServiceUUID, int newPartitionId, PartitionLocator oldLocator, PartitionLocator newLocator)
name
- The name of the source index partition.indexMetadata
- The index metadata object for the source index partition.targetDataServiceUUID
- The data service UUID
for the target data service.newPartitionId
- The partition identifier assigned to the target index
partition.oldLocator
- The locator for the source index partition.newLocator
- The locator for the new index partition.public String toString()
toString
in class AbstractResult
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.