org.apache.hadoop.io.Writablepublic final class BalanceJob<T extends BalanceProcedure>
extends java.lang.Object
implements org.apache.hadoop.io.Writable
| Modifier and Type | Class | Description |
|---|---|---|
static class |
BalanceJob.Builder<T extends BalanceProcedure> |
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
void |
execute() |
Run the state machine.
|
java.lang.String |
getDetailMessage() |
Get the detail description of this job.
|
java.lang.Exception |
getError() |
Return the error exception during the job execution.
|
java.lang.String |
getId() |
Get the uid of the job.
|
int |
hashCode() |
|
boolean |
isJobDone() |
Return true if the job has finished.
|
void |
readFields(java.io.DataInput in) |
|
boolean |
shouldRemoveAfterDone() |
Whether this job should be removed after it's done.
|
java.lang.String |
toString() |
|
void |
waitJobDone() |
Wait until the job is done.
|
void |
write(java.io.DataOutput out) |
public void execute()
public java.lang.String getId()
@VisibleForTesting public boolean shouldRemoveAfterDone()
public boolean isJobDone()
public void waitJobDone()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic java.lang.Exception getError()
public void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDetailMessage()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.