Package com.soffid.iam.service.ejb
Class SyncServerServiceBean
- java.lang.Object
-
- org.springframework.ejb.support.AbstractStatelessSessionBean
-
- com.soffid.iam.service.ejb.SyncServerServiceBean
-
- All Implemented Interfaces:
com.soffid.iam.service.ejb.SyncServerService,Serializable,javax.ejb.EnterpriseBean,javax.ejb.SessionBean,org.springframework.ejb.support.SmartSessionBean
public class SyncServerServiceBean extends org.springframework.ejb.support.AbstractStatelessSessionBean implements com.soffid.iam.service.ejb.SyncServerService- See Also:
com.soffid.iam.service.SyncServerService,,es.caib.seycon.ng.servei.SeyconServerService,, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringBEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
Constructor Summary
Constructors Constructor Description SyncServerServiceBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidboostTask(long taskId)voidcancelTask(long taskId)voidcancelUnscheduledTasks()voidejbCreate()Initizlizes beenvoidejbRemove()Collection<com.soffid.iam.ui.SeyconTask>findUnscheduledTasks()Collection<com.soffid.iam.api.SyncAgentTaskLog>getAgentTasks(String url, String agentCodi)com.soffid.iam.api.SyncAgentTaskLoggetAgentTasks(String url, String agentName, Long taskId)protected org.springframework.beans.factory.BeanFactorygetBeanFactory()Collection<com.soffid.iam.api.SyncServerInfo>getPendingTasksInfo()Map<String,Vector<Object[]>>getPendingTasksStats()Collection<com.soffid.iam.api.AgentStatusInfo>getServerAgentStatus()Collection<com.soffid.iam.api.AgentStatusInfo>getServerAgentStatus(String url)Collection<Object>getServerTasks(String url)javax.ejb.SessionContextgetSessionContext()InputStreamgetSeyconServerLog(String urlServer)Map<String,int[]>getStats(String server, String metric, int seconds, int step)com.soffid.iam.api.SyncServerInfogetSyncServerInfo(String url)Collection<com.soffid.iam.api.Server>getSyncServerInstances()Collection<com.soffid.iam.api.Server>getSyncServers()Collection<com.soffid.iam.api.SyncServerInfo>getSyncServersStatus()protected voidonEjbCreate()protected voidonEjbRemove()voidreleaseAllTasks()voidreleaseTask(long taskId)voidresetSyncServer(String url, String server)voidsetBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)voidsetBeanFactoryLocatorKey(String arg0)voidsetSessionContext(javax.ejb.SessionContext sessionContext)Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.String[]tailServerLog(String urlServer)-
Methods inherited from class org.springframework.ejb.support.AbstractStatelessSessionBean
ejbActivate, ejbPassivate
-
-
-
-
Field Detail
-
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
public static final String BEAN_FACTORY_PATH_ENVIRONMENT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAgentTasks
@PermitAll public com.soffid.iam.api.SyncAgentTaskLog getAgentTasks(String url, String agentName, Long taskId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getAgentTasksin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getSyncServerInfo
@PermitAll public com.soffid.iam.api.SyncServerInfo getSyncServerInfo(String url) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getSyncServerInfoin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getSeyconServerLog
@PermitAll public InputStream getSeyconServerLog(String urlServer) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getSeyconServerLogin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
tailServerLog
@PermitAll public String[] tailServerLog(String urlServer) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
tailServerLogin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findUnscheduledTasks
@PermitAll public Collection<com.soffid.iam.ui.SeyconTask> findUnscheduledTasks() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findUnscheduledTasksin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getAgentTasks
@PermitAll public Collection<com.soffid.iam.api.SyncAgentTaskLog> getAgentTasks(String url, String agentCodi) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getAgentTasksin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getPendingTasksInfo
@PermitAll public Collection<com.soffid.iam.api.SyncServerInfo> getPendingTasksInfo() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getPendingTasksInfoin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getServerAgentStatus
@PermitAll public Collection<com.soffid.iam.api.AgentStatusInfo> getServerAgentStatus() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getServerAgentStatusin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getServerAgentStatus
@PermitAll public Collection<com.soffid.iam.api.AgentStatusInfo> getServerAgentStatus(String url) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getServerAgentStatusin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getServerTasks
@PermitAll public Collection<Object> getServerTasks(String url) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getServerTasksin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getSyncServersStatus
@PermitAll public Collection<com.soffid.iam.api.SyncServerInfo> getSyncServersStatus() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getSyncServersStatusin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getSyncServerInstances
@PermitAll public Collection<com.soffid.iam.api.Server> getSyncServerInstances() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getSyncServerInstancesin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getSyncServers
@PermitAll public Collection<com.soffid.iam.api.Server> getSyncServers() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getSyncServersin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getPendingTasksStats
@PermitAll public Map<String,Vector<Object[]>> getPendingTasksStats() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getPendingTasksStatsin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getStats
@PermitAll public Map<String,int[]> getStats(String server, String metric, int seconds, int step) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getStatsin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
boostTask
@PermitAll public void boostTask(long taskId) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
boostTaskin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
cancelTask
@PermitAll public void cancelTask(long taskId) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
cancelTaskin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
cancelUnscheduledTasks
@PermitAll public void cancelUnscheduledTasks() throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
cancelUnscheduledTasksin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
releaseAllTasks
@PermitAll public void releaseAllTasks() throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
releaseAllTasksin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
releaseTask
@PermitAll public void releaseTask(long taskId) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
releaseTaskin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
resetSyncServer
@PermitAll public void resetSyncServer(String url, String server) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
resetSyncServerin interfacecom.soffid.iam.service.ejb.SyncServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
ejbCreate
@PostConstruct public void ejbCreate() throws javax.ejb.CreateException
Initizlizes been- Overrides:
ejbCreatein classorg.springframework.ejb.support.AbstractStatelessSessionBean- Throws:
javax.ejb.CreateException- See Also:
AbstractStatelessSessionBean.onEjbCreate()
-
onEjbCreate
protected void onEjbCreate()
- Specified by:
onEjbCreatein classorg.springframework.ejb.support.AbstractStatelessSessionBean
-
setSessionContext
public void setSessionContext(javax.ejb.SessionContext sessionContext)
Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.- Specified by:
setSessionContextin interfacejavax.ejb.SessionBean- See Also:
SessionBean.setSessionContext(javax.ejb.SessionContext)
-
getSessionContext
public final javax.ejb.SessionContext getSessionContext()
- Specified by:
getSessionContextin interfaceorg.springframework.ejb.support.SmartSessionBean
-
setBeanFactoryLocator
public void setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
-
setBeanFactoryLocatorKey
public void setBeanFactoryLocatorKey(String arg0)
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
-
ejbRemove
public void ejbRemove()
-
onEjbRemove
protected void onEjbRemove()
-
-