com.bigdata.resources
Class MoveResult

java.lang.Object
  extended by com.bigdata.resources.AbstractResult
      extended by com.bigdata.resources.MoveResult

public class MoveResult
extends AbstractResult

The object returned by MoveIndexPartitionTask.

Version:
$Id: MoveResult.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
 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.
 
Fields inherited from class com.bigdata.resources.AbstractResult
indexMetadata, name
 
Constructor Summary
MoveResult(String name, IndexMetadata indexMetadata, UUID targetDataServiceUUID, int newPartitionId, PartitionLocator oldLocator, PartitionLocator newLocator)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class com.bigdata.resources.AbstractResult
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

targetDataServiceUUID

public final UUID targetDataServiceUUID

newPartitionId

public final int newPartitionId

targetIndexName

public final String targetIndexName
The name of the new index partition on the target data service.

Note: AbstractResult.name is the name of the source index partition that was moved to the target data service.


oldLocator

public final PartitionLocator oldLocator

newLocator

public final PartitionLocator newLocator

registeredInMDS

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.

Constructor Detail

MoveResult

public MoveResult(String name,
                  IndexMetadata indexMetadata,
                  UUID targetDataServiceUUID,
                  int newPartitionId,
                  PartitionLocator oldLocator,
                  PartitionLocator newLocator)
Parameters:
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.
Method Detail

toString

public String toString()
Overrides:
toString in class AbstractResult


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.