public class IndexPartitionCause extends Object implements Externalizable
Modifier and Type | Class and Description |
---|---|
static class |
IndexPartitionCause.CauseEnum
Typesafe enumeration of reasons why an index partition was created.
|
Constructor and Description |
---|
IndexPartitionCause()
De-serialization ctor.
|
IndexPartitionCause(IndexPartitionCause.CauseEnum cause,
long synchronousOverflowCounter,
long lastCommitTime) |
Modifier and Type | Method and Description |
---|---|
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) |
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.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 Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.