|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.plan.internal.core.PlanInstance
public class PlanInstance
Implementation of IPlanInstance
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.datatools.sqltools.plan.internal.IPlanInstance |
|---|
FAILED, RUNNING, SUCCESS |
| Constructor Summary | |
|---|---|
PlanInstance(PlanManager planManager,
PlanRequest planRequest)
|
|
| Method Summary | |
|---|---|
void |
finishFail(java.lang.Throwable th)
Failed because of the throwable |
void |
finishSuccess(java.lang.String rawPlan)
Successfully finished with the return plan's raw data |
java.lang.Throwable |
getFailThrowable()
Returns the fail reason throwable |
IExecutionPlanDocument[] |
getPlanDocuments()
Returns the execution plan documents of this plan. |
PlanRequest |
getPlanRequest()
Returns the plan request |
java.lang.String |
getRawPlan()
Returns the raw data of this plan |
int |
getStatus()
Returns the current status |
boolean |
isFinished()
Checks if this plan is finished or not |
void |
setPlanDocuments(IExecutionPlanDocument[] docs)
Sets the execution plan documents, they should be parsed from the raw data. |
void |
setPlanRequest(PlanRequest planRequest)
Sets the plan request of this plan |
void |
setRawPlan(java.lang.String plan)
Sets the raw data for this plan |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlanInstance(PlanManager planManager,
PlanRequest planRequest)
| Method Detail |
|---|
public void finishFail(java.lang.Throwable th)
IPlanInstance
finishFail in interface IPlanInstanceth - the throwablepublic void finishSuccess(java.lang.String rawPlan)
IPlanInstance
finishSuccess in interface IPlanInstancerawPlan - the plan's raw datapublic java.lang.Throwable getFailThrowable()
IPlanInstance
getFailThrowable in interface IPlanInstancenull if not finished yet, or not fail.public PlanRequest getPlanRequest()
IPlanInstance
getPlanRequest in interface IPlanInstancepublic java.lang.String getRawPlan()
IPlanInstance
getRawPlan in interface IPlanInstancepublic int getStatus()
IPlanInstance
getStatus in interface IPlanInstanceIPlanInstance.SUCCESS,
IPlanInstance.FAILEDpublic boolean isFinished()
IPlanInstance
isFinished in interface IPlanInstancetrue if finished (success or fail), false otherwisepublic void setPlanRequest(PlanRequest planRequest)
planRequest - the plan requestpublic void setRawPlan(java.lang.String plan)
rawPlan - the plan's raw datapublic IExecutionPlanDocument[] getPlanDocuments()
IPlanInstance
getPlanDocuments in interface IPlanInstancepublic void setPlanDocuments(IExecutionPlanDocument[] docs)
IPlanInstance
setPlanDocuments in interface IPlanInstancedocs - the execution plan documents
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||