|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.jadort.service.implementation.OperationPersistenceManager
org.ow2.jasmine.jadort.service.implementation.ActionManager
org.ow2.jasmine.jadort.service.implementation.StepManager
org.ow2.jasmine.jadort.service.implementation.JadortServiceStatefulBean
public class JadortServiceStatefulBean
Stateful session bean that provides the JaDOrT service.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ow2.jasmine.jadort.api.IJadortService |
|---|
org.ow2.jasmine.jadort.api.IJadortService.OperationType |
| Field Summary |
|---|
| Fields inherited from class org.ow2.jasmine.jadort.service.implementation.OperationPersistenceManager |
|---|
em, operation |
| Fields inherited from interface org.ow2.jasmine.jadort.api.IJadortService |
|---|
EJB_JNDI_NAME |
| Constructor Summary | |
|---|---|
JadortServiceStatefulBean()
|
|
| Method Summary | |
|---|---|
void |
abortServer(org.ow2.jasmine.jadort.api.entities.topology.ServerBean server)
|
void |
abortWorker(org.ow2.jasmine.jadort.api.entities.topology.WorkerBean worker)
|
boolean |
checkServer(org.ow2.jasmine.jadort.api.entities.topology.ServerBean server)
|
boolean |
checkWorker(org.ow2.jasmine.jadort.api.entities.topology.WorkerBean worker)
|
void |
createNewOperation(java.lang.String newOperationName)
|
void |
deleteOperation(org.ow2.jasmine.jadort.api.entities.deployment.OperationStateBean selectedOperation)
|
org.ow2.jasmine.jadort.api.entities.deployment.OperationStateBean |
getCurrentOperation()
|
org.ow2.jasmine.jadort.api.entities.deployment.OperationStateBean.Step |
getCurrentStep()
IMPORTANT: Avoid calling this method from inside other methods of the JadortServiceStatefulBean class (it will be costly) |
java.util.List<org.ow2.jasmine.jadort.api.entities.deployment.OperationStateBean> |
getOperationsList()
|
void |
ignoreServer(org.ow2.jasmine.jadort.api.entities.topology.ServerBean server)
|
void |
ignoreWorker(org.ow2.jasmine.jadort.api.entities.topology.WorkerBean worker)
|
protected void |
initialize()
|
void |
loadTopology(java.io.File xmlTopoFile)
|
void |
next()
|
void |
previous()
|
void |
restartServer(org.ow2.jasmine.jadort.api.entities.topology.ServerBean server)
|
void |
restartWorker(org.ow2.jasmine.jadort.api.entities.topology.WorkerBean worker)
|
void |
selectApplication(java.net.URL url)
|
void |
selectGroup(org.ow2.jasmine.jadort.api.entities.topology.GroupBean selectedGroup)
|
void |
selectOperation(org.ow2.jasmine.jadort.api.entities.deployment.OperationStateBean selectedOperation)
|
void |
selectOperationType(org.ow2.jasmine.jadort.api.IJadortService.OperationType operationType)
|
void |
selectServers(java.util.List<org.ow2.jasmine.jadort.api.entities.topology.ServerBean> selectedServers)
|
void |
selectVMImage(org.ow2.jasmine.jadort.api.entities.deployment.VMImageBean selectedVMImage)
|
void |
selectVMImage(org.ow2.jasmine.jadort.api.entities.deployment.VMImageBean selectedVMImage,
org.ow2.jasmine.jadort.api.entities.topology.ServerBean server)
|
protected void |
terminate()
|
| Methods inherited from class org.ow2.jasmine.jadort.service.implementation.StepManager |
|---|
canGoToNextStep, canGoToPreviousStep, checkStep, executeNextStep, executePreviousStep |
| Methods inherited from class org.ow2.jasmine.jadort.service.implementation.ActionManager |
|---|
checkApplication, fetchGroups, fillApplications, fillVMImages, fillWorkerProgressListBasedOnServerProgressList, getServerProgress, getWorkerProgress, isSameApplication, reachAimedServerProgressState, reachAimedWorkerProgressState, refreshActiveSessions |
| Methods inherited from class org.ow2.jasmine.jadort.service.implementation.OperationPersistenceManager |
|---|
mergeOperation, refreshOperation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JadortServiceStatefulBean()
| Method Detail |
|---|
@PostConstruct protected void initialize()
@PreDestroy protected void terminate()
public org.ow2.jasmine.jadort.api.entities.deployment.OperationStateBean.Step getCurrentStep()
getCurrentStep in interface org.ow2.jasmine.jadort.api.IJadortService
public java.util.List<org.ow2.jasmine.jadort.api.entities.deployment.OperationStateBean> getOperationsList()
throws org.ow2.jasmine.jadort.api.JadortServiceException
getOperationsList in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - if the getOperationsList() method can not
be called in the current step. (this method can be called only in
the OperationStateBean.Step.SELECT_OPERATION step)
public void deleteOperation(org.ow2.jasmine.jadort.api.entities.deployment.OperationStateBean selectedOperation)
throws org.ow2.jasmine.jadort.api.JadortServiceException
deleteOperation in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - OperationStateBean.Step.SELECT_OPERATION step)
public void selectOperation(org.ow2.jasmine.jadort.api.entities.deployment.OperationStateBean selectedOperation)
throws org.ow2.jasmine.jadort.api.JadortServiceException
selectOperation in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - if the selectOperation can not be called
in the current step. (this method can be called only in the
OperationStateBean.Step.SELECT_OPERATION step)
public void createNewOperation(java.lang.String newOperationName)
throws org.ow2.jasmine.jadort.api.JadortServiceException
createNewOperation in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - OperationStateBean.Step.SELECT_OPERATION step)
public org.ow2.jasmine.jadort.api.entities.deployment.OperationStateBean getCurrentOperation()
throws org.ow2.jasmine.jadort.api.JadortServiceException
getCurrentOperation in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - If fetching fails.
public void next()
throws org.ow2.jasmine.jadort.api.JadortServiceException
next in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - if going to the next step is not allowed.
public void previous()
throws org.ow2.jasmine.jadort.api.JadortServiceException
previous in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - if going to the previous step is not
allowed.
public void loadTopology(java.io.File xmlTopoFile)
throws org.ow2.jasmine.jadort.api.JadortServiceException
loadTopology in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - OperationStateBean.Step.INITIALIZE_TOPOLOGY step)
public void selectGroup(org.ow2.jasmine.jadort.api.entities.topology.GroupBean selectedGroup)
throws org.ow2.jasmine.jadort.api.JadortServiceException
selectGroup in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - if the selectedGroup method can not be
called in the current step. (this method can be called only in
the OperationStateBean.Step.SELECT_GROUP step)
public void selectOperationType(org.ow2.jasmine.jadort.api.IJadortService.OperationType operationType)
throws org.ow2.jasmine.jadort.api.JadortServiceException
selectOperationType in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - if the selectedGroup method can not be
called in the current step. (this method can be called only in
the OperationStateBean.Step.SELECT_OPERATION_TYPE step)
public void selectApplication(java.net.URL url)
throws org.ow2.jasmine.jadort.api.JadortServiceException
selectApplication in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - OperationStateBean.Step.SELECT_APPLICATION step)
public void selectVMImage(org.ow2.jasmine.jadort.api.entities.deployment.VMImageBean selectedVMImage)
throws org.ow2.jasmine.jadort.api.JadortServiceException
selectVMImage in interface org.ow2.jasmine.jadort.api.IJadortServiceJadortServiceException
- OperationStateBean.Step.SELECT_VM_IMAGE_FOR_SERVER step)
org.ow2.jasmine.jadort.api.JadortServiceException
public void selectVMImage(org.ow2.jasmine.jadort.api.entities.deployment.VMImageBean selectedVMImage,
org.ow2.jasmine.jadort.api.entities.topology.ServerBean server)
throws org.ow2.jasmine.jadort.api.JadortServiceException
selectVMImage in interface org.ow2.jasmine.jadort.api.IJadortServiceJadortServiceException
- OperationStateBean.Step.SELECT_VM_IMAGE step)
org.ow2.jasmine.jadort.api.JadortServiceException
public void selectServers(java.util.List<org.ow2.jasmine.jadort.api.entities.topology.ServerBean> selectedServers)
throws org.ow2.jasmine.jadort.api.JadortServiceException
selectServers in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - if the selectServers method can not be
called in the current step (this method can be called only in the
OperationStateBean.Step.SELECT_SERVERS step)
public void abortServer(org.ow2.jasmine.jadort.api.entities.topology.ServerBean server)
throws org.ow2.jasmine.jadort.api.JadortServiceException
abortServer in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - If the abortServer can not be called in
the current step. (this method can be called only in the
OperationStateBean.Step.EXECUTING_MIGRATION,
OperationStateBean.Step.UNDEPLOY_ERASE_OLD_VERSION,
OperationStateBean.Step.EXECUTING_MIGRATION_OSGI, OperationStateBean.Step.ERASE_OLD_VERSIONS,
OperationStateBean.Step.EXECUTING_MAINTENANCE_CLUSTER and
OperationStateBean.Step.EXECUTING_MAINTENANCE_NO_CLUSTER steps)
public void restartServer(org.ow2.jasmine.jadort.api.entities.topology.ServerBean server)
throws org.ow2.jasmine.jadort.api.JadortServiceException
restartServer in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - OperationStateBean.Step.EXECUTING_MIGRATION,
OperationStateBean.Step.UNDEPLOY_ERASE_OLD_VERSION,
OperationStateBean.Step.EXECUTING_MIGRATION_OSGI, OperationStateBean.Step.ERASE_OLD_VERSIONS,
OperationStateBean.Step.EXECUTING_MAINTENANCE_CLUSTER and
OperationStateBean.Step.EXECUTING_MAINTENANCE_NO_CLUSTER steps)
public boolean checkServer(org.ow2.jasmine.jadort.api.entities.topology.ServerBean server)
throws org.ow2.jasmine.jadort.api.JadortServiceException
checkServer in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - if the checkServer can not be called in
the current step. (this method can be called only in the
OperationStateBean.Step.EXECUTING_MIGRATION,
OperationStateBean.Step.UNDEPLOY_ERASE_OLD_VERSION,
OperationStateBean.Step.EXECUTING_MIGRATION_OSGI, OperationStateBean.Step.ERASE_OLD_VERSIONS,
OperationStateBean.Step.EXECUTING_MAINTENANCE_CLUSTER and
OperationStateBean.Step.EXECUTING_MAINTENANCE_NO_CLUSTER steps)
public void ignoreServer(org.ow2.jasmine.jadort.api.entities.topology.ServerBean server)
throws org.ow2.jasmine.jadort.api.JadortServiceException
ignoreServer in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - OperationStateBean.Step.EXECUTING_MIGRATION,
OperationStateBean.Step.UNDEPLOY_ERASE_OLD_VERSION,
OperationStateBean.Step.EXECUTING_MIGRATION_OSGI, OperationStateBean.Step.ERASE_OLD_VERSIONS,
OperationStateBean.Step.EXECUTING_MAINTENANCE_CLUSTER and
OperationStateBean.Step.EXECUTING_MAINTENANCE_NO_CLUSTER steps)
public void abortWorker(org.ow2.jasmine.jadort.api.entities.topology.WorkerBean worker)
throws org.ow2.jasmine.jadort.api.JadortServiceException
abortWorker in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - If the abortWorker can not be called in
the current step. (this method can be called only in the
OperationStateBean.Step.EXECUTING_MAINTENANCE_CLUSTER and
OperationStateBean.Step.EXECUTING_MAINTENANCE_NO_CLUSTER steps)
public void restartWorker(org.ow2.jasmine.jadort.api.entities.topology.WorkerBean worker)
throws org.ow2.jasmine.jadort.api.JadortServiceException
restartWorker in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - OperationStateBean.Step.EXECUTING_MAINTENANCE_CLUSTER and
OperationStateBean.Step.EXECUTING_MAINTENANCE_NO_CLUSTER steps)
public boolean checkWorker(org.ow2.jasmine.jadort.api.entities.topology.WorkerBean worker)
throws org.ow2.jasmine.jadort.api.JadortServiceException
checkWorker in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - if the checkWorker can not be called in
the current step. (this method can be called only in the
OperationStateBean.Step.EXECUTING_MAINTENANCE_CLUSTER and
OperationStateBean.Step.EXECUTING_MAINTENANCE_NO_CLUSTER steps)
public void ignoreWorker(org.ow2.jasmine.jadort.api.entities.topology.WorkerBean worker)
throws org.ow2.jasmine.jadort.api.JadortServiceException
ignoreWorker in interface org.ow2.jasmine.jadort.api.IJadortServiceorg.ow2.jasmine.jadort.api.JadortServiceException - OperationStateBean.Step.EXECUTING_MAINTENANCE_CLUSTER and
OperationStateBean.Step.EXECUTING_MAINTENANCE_NO_CLUSTER steps)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||