@PermitAll public class ApplicationRestartServiceBean extends com.whitestein.lsps.common.SecureAndLoggingService implements ApplicationRestartServiceLocal, ApplicationRetartServiceRemote
| Constructor and Description |
|---|
ApplicationRestartServiceBean()
Creates new instance.
|
ApplicationRestartServiceBean(javax.persistence.EntityManager em)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearApplicationRestartData()
Clears the information about previous application restart.
|
void |
explicitFinishing(long modelInstance)
Specifies that the current model instance starting is finished explicitly, by calling the modelInstanceStartSucceeded() function.
|
java.lang.String |
exportInfoToHtml()
Exports restart info to html table
|
ApplicationRestartInfoList |
getApplicationRestartInfo()
Returns list of all active restarts
|
ModelInstanceRestartInfo |
getApplicationRestartInfo(long modelInstanceId) |
ApplicationRestartStatus |
getApplicationRestartStatus()
Returns application restart status
|
java.lang.Integer |
getCountOfModelInstancesToStart()
Returns number of model instances to be restarted
|
void |
modelInstanceStartFailed(long modelInstance,
java.lang.Exception error)
The FAILED status is written to the LSPS_APPL_RESTART_INFO if an exception occurred.
|
void |
modelInstanceStartSucceeded(long modelInstance)
The FINISHED status is written to the LSPS_APPL_RESTART_INFO table on successful commit of
the current GO-BOMN transaction unless an exception occurred.
|
void |
setCountOfModelInstancesToStart(int count)
Sets the number of model instances to be restarted.
|
void |
watchStarting(long modelInstance)
Adds the model instance to a list of started model instances.
|
public ApplicationRestartServiceBean()
public ApplicationRestartServiceBean(javax.persistence.EntityManager em)
em - @RightsAllowed(value="AppRestart:Read") public ApplicationRestartInfoList getApplicationRestartInfo()
ApplicationRestartServicegetApplicationRestartInfo in interface ApplicationRestartService@RightsAllowed(value="AppRestart:Read") public ApplicationRestartStatus getApplicationRestartStatus()
ApplicationRestartServicegetApplicationRestartStatus in interface ApplicationRestartService@RightsAllowed(value="AppRestart:Clear") public void clearApplicationRestartData()
ApplicationRestartServiceclearApplicationRestartData in interface ApplicationRestartServicepublic void watchStarting(long modelInstance)
ApplicationRestartServiceLocalwatchStarting in interface ApplicationRestartServiceLocalpublic void modelInstanceStartSucceeded(long modelInstance)
ApplicationRestartServiceLocalmodelInstanceStartSucceeded in interface ApplicationRestartServiceLocalpublic void modelInstanceStartFailed(long modelInstance,
java.lang.Exception error)
ApplicationRestartServiceLocalmodelInstanceStartFailed in interface ApplicationRestartServiceLocalpublic void explicitFinishing(long modelInstance)
ApplicationRestartServiceLocalexplicitFinishing in interface ApplicationRestartServiceLocalpublic void setCountOfModelInstancesToStart(int count)
ApplicationRestartServiceLocalsetCountOfModelInstancesToStart in interface ApplicationRestartServiceLocal@RightsAllowed(value="AppRestart:Read") public java.lang.Integer getCountOfModelInstancesToStart()
ApplicationRestartServicegetCountOfModelInstancesToStart in interface ApplicationRestartService@RightsAllowed(value="AppRestart:Read") public java.lang.String exportInfoToHtml()
ApplicationRestartServiceexportInfoToHtml in interface ApplicationRestartServicepublic ModelInstanceRestartInfo getApplicationRestartInfo(long modelInstanceId)
getApplicationRestartInfo in interface ApplicationRestartServiceLocalCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.