|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.jadort.api.entities.deployment.OperationStateBean
public class OperationStateBean
Bean that represents an operation
| Nested Class Summary | |
|---|---|
static class |
OperationStateBean.ActionState
Different states for a progress action. |
static class |
OperationStateBean.Step
Different steps of an operation. |
| Constructor Summary | |
|---|---|
OperationStateBean()
Default OperationStateBean constructor |
|
| Method Summary | |
|---|---|
void |
addAllServerProgressList(java.util.Collection<ServerProgressBean> serverProgressListToAdd)
|
void |
addAllServerProgressList(ServerProgressBean serverProgressToAdd)
|
void |
addAllWorkerProgressList(java.util.Collection<WorkerProgressBean> workerProgressListToAdd)
|
void |
addAllWorkerProgressList(WorkerProgressBean workerProgressToAdd)
|
boolean |
equals(java.lang.Object obj)
|
int |
getAimedProgressPercent()
Get the progress percent to reach, when the operation is in the OperationStateBean.Step.EXECUTING_MIGRATION, OperationStateBean.Step.UNDEPLOY_ERASE_OLD_VERSION
, OperationStateBean.Step.EXECUTING_MAINTENANCE_CLUSTER or
OperationStateBean.Step.EXECUTING_MAINTENANCE_NO_CLUSTER steps. |
ServerProgressState |
getAimedServerProgressState()
Get the serverProgress step to reach |
WorkerProgressState |
getAimedWorkerProgressState()
|
java.util.Set<ServerProgressBean> |
getAllServerProgressList()
|
java.util.Set<WorkerProgressBean> |
getAllWorkerProgressList()
|
ApplicationBean |
getApplication()
Get the application to deploy |
boolean |
getCanGoToNextStep()
|
boolean |
getCanGoToPreviousStep()
|
OperationStateBean.Step |
getCurrentStep()
Get the current operation step |
java.util.Date |
getDate()
Get the operation creation date |
java.lang.Integer |
getId()
Get the operation id |
boolean |
getIsDeletable()
|
java.lang.String |
getName()
Get the operation name |
GroupBean |
getSelectedGroup()
Get the selected group |
java.util.List<ServerProgressBean> |
getServerProgressList()
Get the list of ServerProgressBean that compose the operation |
TopologyBean |
getTopology()
Get the topology |
IJadortService.OperationType |
getType()
|
VMImageBean |
getVmImage()
Get the VM Image to deploy |
java.util.List<WorkerProgressBean> |
getWorkerProgressList()
Get the list of WorkerProgressBean that compose the operation |
void |
setAimedProgressPercent(int aimedProgressPercent)
Set the progress percent to reach, when the operation is in the OperationStateBean.Step.EXECUTING_MIGRATION, OperationStateBean.Step.UNDEPLOY_ERASE_OLD_VERSION
, OperationStateBean.Step.EXECUTING_MAINTENANCE_CLUSTER or
OperationStateBean.Step.EXECUTING_MAINTENANCE_NO_CLUSTER steps. |
void |
setAimedServerProgressState(ServerProgressState globalServerProgressState)
Set the serverProgress step to reach |
void |
setAimedWorkerProgressState(WorkerProgressState aimedWorkerProgressState)
|
void |
setAllServerProgressList(java.util.Set<ServerProgressBean> allServerProgressList)
|
void |
setAllWorkerProgressList(java.util.Set<WorkerProgressBean> allWorkerProgressList)
|
void |
setApplication(ApplicationBean application)
Set the application to deploy |
void |
setCanGoToNextStep(boolean canGoToNextStep)
|
void |
setCanGoToPreviousStep(boolean canGoToPreviousStep)
|
void |
setCurrentStep(OperationStateBean.Step step)
Set the current operation step |
void |
setDate(java.util.Date date)
Set the operation creation date |
void |
setId(java.lang.Integer id)
Set the operation id |
void |
setName(java.lang.String name)
Set the operation name |
void |
setSelectedGroup(GroupBean selectedGroup)
Set the selected group |
void |
setServerProgressList(java.util.List<ServerProgressBean> serverProgressList)
Set the list of ServerProgressBean that compose the operation |
void |
setTopology(TopologyBean topology)
Set the topology |
void |
setType(IJadortService.OperationType type)
|
void |
setVmImage(VMImageBean vmImage)
Set the VM Image to deploy |
void |
setWorkerProgressList(java.util.List<WorkerProgressBean> workerProgressList)
Set the list of WorkerProgressBean that compose the operation |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OperationStateBean()
| Method Detail |
|---|
public java.lang.Integer getId()
public void setId(java.lang.Integer id)
public ServerProgressState getAimedServerProgressState()
public void setAimedServerProgressState(ServerProgressState globalServerProgressState)
globalServerProgressState - the new serverProgress step to reachpublic int getAimedProgressPercent()
OperationStateBean.Step.EXECUTING_MIGRATION, OperationStateBean.Step.UNDEPLOY_ERASE_OLD_VERSION
, OperationStateBean.Step.EXECUTING_MAINTENANCE_CLUSTER or
OperationStateBean.Step.EXECUTING_MAINTENANCE_NO_CLUSTER steps.
public void setAimedProgressPercent(int aimedProgressPercent)
OperationStateBean.Step.EXECUTING_MIGRATION, OperationStateBean.Step.UNDEPLOY_ERASE_OLD_VERSION
, OperationStateBean.Step.EXECUTING_MAINTENANCE_CLUSTER or
OperationStateBean.Step.EXECUTING_MAINTENANCE_NO_CLUSTER steps.
aimedProgressPercent - The progress percent to reach.public OperationStateBean.Step getCurrentStep()
public void setCurrentStep(OperationStateBean.Step step)
throws java.lang.IllegalArgumentException
step - the current operation step
java.lang.IllegalArgumentException - If step is OperationStateBean.Step.SELECT_OPERATIONpublic boolean getCanGoToNextStep()
public void setCanGoToNextStep(boolean canGoToNextStep)
canGoToNextStep - Whether we can go to the next steppublic boolean getCanGoToPreviousStep()
public void setCanGoToPreviousStep(boolean canGoToPreviousStep)
canGoToNextStep - Whether we can go to the previous steppublic GroupBean getSelectedGroup()
public void setSelectedGroup(GroupBean selectedGroup)
selectedGroup - The group to selectpublic TopologyBean getTopology()
public void setTopology(TopologyBean topology)
topology - The topology to setpublic java.util.List<ServerProgressBean> getServerProgressList()
public void setServerProgressList(java.util.List<ServerProgressBean> serverProgressList)
serverProgressList - the new list of ServerProgressBean that compose
the operationpublic IJadortService.OperationType getType()
public void setType(IJadortService.OperationType type)
type - operation type (migrateApplication or maintain)public java.util.List<WorkerProgressBean> getWorkerProgressList()
public void setWorkerProgressList(java.util.List<WorkerProgressBean> workerProgressList)
serverProgressList - the new list of WorkerProgressBean that compose
the operationpublic WorkerProgressState getAimedWorkerProgressState()
public void setAimedWorkerProgressState(WorkerProgressState aimedWorkerProgressState)
aimedWorkerProgressState - aimed worker progress statepublic java.util.Set<ServerProgressBean> getAllServerProgressList()
public void setAllServerProgressList(java.util.Set<ServerProgressBean> allServerProgressList)
allServerProgressList - All (currently active + past)
ServerProgressBean objects of the operationpublic void addAllServerProgressList(java.util.Collection<ServerProgressBean> serverProgressListToAdd)
serverProgressListToAdd - The ServerProgressBean objects to addpublic void addAllServerProgressList(ServerProgressBean serverProgressToAdd)
serverProgressToAdd - The ServerProgressBean to addpublic java.util.Set<WorkerProgressBean> getAllWorkerProgressList()
public void setAllWorkerProgressList(java.util.Set<WorkerProgressBean> allWorkerProgressList)
allWorkerProgressList - All (currently active + past)
WorkerProgressBean objects of the operationpublic void addAllWorkerProgressList(java.util.Collection<WorkerProgressBean> workerProgressListToAdd)
workerProgressListToAdd - The WorkerProgressBean objects to addpublic void addAllWorkerProgressList(WorkerProgressBean workerProgressToAdd)
workerProgressToAdd - The WorkerProgressBean to addpublic ApplicationBean getApplication()
public void setApplication(ApplicationBean application)
application - the application to deploypublic VMImageBean getVmImage()
public void setVmImage(VMImageBean vmImage)
VMImage - the VM Image to deploypublic java.util.Date getDate()
public void setDate(java.util.Date date)
date - the operation creation datepublic java.lang.String getName()
public void setName(java.lang.String name)
name - the operation namepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj is an OperationStateBean and the
getId() is the same for both objects,
false otherwise.public boolean getIsDeletable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||