@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.
|
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
|
Integer |
getCountOfModelInstancesToStart()
Returns number of model instances to be restarted
|
void |
modelInstanceStartFailed(long modelInstance,
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()
ApplicationRestartService
getApplicationRestartInfo
in interface ApplicationRestartService
@RightsAllowed(value="AppRestart:Read") public ApplicationRestartStatus getApplicationRestartStatus()
ApplicationRestartService
getApplicationRestartStatus
in interface ApplicationRestartService
@RightsAllowed(value="AppRestart:Clear") public void clearApplicationRestartData()
ApplicationRestartService
clearApplicationRestartData
in interface ApplicationRestartService
public void watchStarting(long modelInstance)
ApplicationRestartServiceLocal
watchStarting
in interface ApplicationRestartServiceLocal
public void modelInstanceStartSucceeded(long modelInstance)
ApplicationRestartServiceLocal
modelInstanceStartSucceeded
in interface ApplicationRestartServiceLocal
public void modelInstanceStartFailed(long modelInstance, Exception error)
ApplicationRestartServiceLocal
modelInstanceStartFailed
in interface ApplicationRestartServiceLocal
public void explicitFinishing(long modelInstance)
ApplicationRestartServiceLocal
explicitFinishing
in interface ApplicationRestartServiceLocal
public void setCountOfModelInstancesToStart(int count)
ApplicationRestartServiceLocal
setCountOfModelInstancesToStart
in interface ApplicationRestartServiceLocal
@RightsAllowed(value="AppRestart:Read") public Integer getCountOfModelInstancesToStart()
ApplicationRestartService
getCountOfModelInstancesToStart
in interface ApplicationRestartService
@RightsAllowed(value="AppRestart:Read") public String exportInfoToHtml()
ApplicationRestartService
exportInfoToHtml
in interface ApplicationRestartService
public ModelInstanceRestartInfo getApplicationRestartInfo(long modelInstanceId)
getApplicationRestartInfo
in interface ApplicationRestartServiceLocal
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.