Class 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
    • Constructor Detail

      • SyncServerServiceBean

        public SyncServerServiceBean()
    • 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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 class org.springframework.ejb.support.AbstractStatelessSessionBean
        Throws:
        javax.ejb.CreateException
        See Also:
        AbstractStatelessSessionBean.onEjbCreate()
      • onEjbCreate

        protected void onEjbCreate()
        Specified by:
        onEjbCreate in class org.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 interface javax.ejb.SessionBean
        See Also:
        SessionBean.setSessionContext(javax.ejb.SessionContext)
      • getSessionContext

        public final javax.ejb.SessionContext getSessionContext()
        Specified by:
        getSessionContext in interface org.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()