|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.mdi.IndexPartitionCause
public class IndexPartitionCause
Encapsulate the reason why an index partition was created and the synchronous overflow counter of the data service on which the index partition was created as of that action. This information may be used to support heuristics which refuse to move an index partition which was recently moved or to join an index partition which was recently split, etc.
| Nested Class Summary | |
|---|---|
static class |
IndexPartitionCause.CauseEnum
Typesafe enumeration of reasons why an index partition was created. |
| Constructor Summary | |
|---|---|
IndexPartitionCause()
De-serialization ctor. |
|
IndexPartitionCause(IndexPartitionCause.CauseEnum cause,
long synchronousOverflowCounter,
long lastCommitTime)
|
|
| Method Summary | |
|---|---|
IndexPartitionCause.CauseEnum |
getCause()
The underlying cause. |
long |
getLastCommitTime()
The lastCommitTime for the live journal. |
long |
getSynchronousOverflowCounter()
The value of the synchronous overflow counter at the time that the index partition was created. |
static IndexPartitionCause |
join(ResourceManager resourceManager)
Factory for IndexPartitionCause.CauseEnum.Join. |
static IndexPartitionCause |
move(ResourceManager resourceManager)
Factory for IndexPartitionCause.CauseEnum.Move. |
void |
readExternal(ObjectInput in)
|
static IndexPartitionCause |
register(ResourceManager resourceManager)
Factory for IndexPartitionCause.CauseEnum.Register. |
static IndexPartitionCause |
split(ResourceManager resourceManager)
Factory for IndexPartitionCause.CauseEnum.Split. |
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IndexPartitionCause()
public IndexPartitionCause(IndexPartitionCause.CauseEnum cause,
long synchronousOverflowCounter,
long lastCommitTime)
cause - The reason why the index partition was created.synchronousOverflowCounter - The value of the counter at the time that the index partition
was created.lastCommitTime - The lastCommitTime for the live journal. Note that this will
be 0L if no commits have been performed on the journal. This
makes the "time" less robust than the overflow counter.| Method Detail |
|---|
public IndexPartitionCause.CauseEnum getCause()
public long getSynchronousOverflowCounter()
public long getLastCommitTime()
public static IndexPartitionCause register(ResourceManager resourceManager)
IndexPartitionCause.CauseEnum.Register.
public static IndexPartitionCause split(ResourceManager resourceManager)
IndexPartitionCause.CauseEnum.Split.
public static IndexPartitionCause join(ResourceManager resourceManager)
IndexPartitionCause.CauseEnum.Join.
public static IndexPartitionCause move(ResourceManager resourceManager)
IndexPartitionCause.CauseEnum.Move.
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||