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 String
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
Constructor Summary
Constructors Constructor Description SyncServerServiceBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
boostTask(long taskId)
void
cancelTask(long taskId)
void
cancelUnscheduledTasks()
void
ejbCreate()
Initizlizes beenvoid
ejbRemove()
Collection<com.soffid.iam.ui.SeyconTask>
findUnscheduledTasks()
Collection<com.soffid.iam.api.SyncAgentTaskLog>
getAgentTasks(String url, String agentCodi)
com.soffid.iam.api.SyncAgentTaskLog
getAgentTasks(String url, String agentName, Long taskId)
protected org.springframework.beans.factory.BeanFactory
getBeanFactory()
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.SessionContext
getSessionContext()
InputStream
getSeyconServerLog(String urlServer)
Map<String,int[]>
getStats(String server, String metric, int seconds, int step)
com.soffid.iam.api.SyncServerInfo
getSyncServerInfo(String url)
Collection<com.soffid.iam.api.Server>
getSyncServerInstances()
Collection<com.soffid.iam.api.Server>
getSyncServers()
Collection<com.soffid.iam.api.SyncServerInfo>
getSyncServersStatus()
protected void
onEjbCreate()
protected void
onEjbRemove()
void
releaseAllTasks()
void
releaseTask(long taskId)
void
resetSyncServer(String url, String server)
void
setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
void
setBeanFactoryLocatorKey(String arg0)
void
setSessionContext(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:
getAgentTasks
in 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:
getSyncServerInfo
in 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:
getSeyconServerLog
in 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:
tailServerLog
in 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:
findUnscheduledTasks
in 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:
getAgentTasks
in 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:
getPendingTasksInfo
in 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:
getServerAgentStatus
in 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:
getServerAgentStatus
in 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:
getServerTasks
in 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:
getSyncServersStatus
in 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:
getSyncServerInstances
in 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:
getSyncServers
in 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:
getPendingTasksStats
in 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:
getStats
in 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:
boostTask
in 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:
cancelTask
in 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:
cancelUnscheduledTasks
in 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:
releaseAllTasks
in 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:
releaseTask
in 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:
resetSyncServer
in 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:
ejbCreate
in classorg.springframework.ejb.support.AbstractStatelessSessionBean
- Throws:
javax.ejb.CreateException
- See Also:
AbstractStatelessSessionBean.onEjbCreate()
-
onEjbCreate
protected void onEjbCreate()
- Specified by:
onEjbCreate
in 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:
setSessionContext
in interfacejavax.ejb.SessionBean
- See Also:
SessionBean.setSessionContext(javax.ejb.SessionContext)
-
getSessionContext
public final javax.ejb.SessionContext getSessionContext()
- Specified by:
getSessionContext
in 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()
-
-