Package es.caib.seycon.ng.servei
Class SeyconServerServiceBase
- java.lang.Object
-
- es.caib.seycon.ng.servei.SeyconServerServiceBase
-
- All Implemented Interfaces:
es.caib.seycon.ng.servei.SeyconServerService
public abstract class SeyconServerServiceBase extends Object implements es.caib.seycon.ng.servei.SeyconServerService
Spring Service base class for
see es.caib.seycon.ng.servei.SeyconServerServicees.caib.seycon.ng.servei.SeyconServerService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description SeyconServerServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidboostTask(long taskId)voidcancelTask(long taskId)voidcancelUnscheduledTasks()Collection<com.soffid.iam.ui.SeyconTask>findUnscheduledTasks()es.caib.seycon.ng.comu.SeyconAgentTaskLoggetAgentTask(String url, String agentName, Long taskId)Collection<es.caib.seycon.ng.comu.SeyconAgentTaskLog>getAgentTasks(String url, String agentCodi)Collection<es.caib.seycon.ng.comu.SeyconServerInfo>getPendingTasksInfo()Map<String,Vector<Object[]>>getPendingTasksStats()protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.Collection<es.caib.seycon.ng.comu.AgentStatusInfo>getServerAgentStatus()Collection<es.caib.seycon.ng.comu.AgentStatusInfo>getServerAgentStatus(String url)ObjectgetServerService(String servicePath)Collection<Object>getServerTasks(String url)InputStreamgetSeyconServerLog(String urlServer)Collection<es.caib.seycon.ng.comu.SeyconServerInfo>getSeyconServersStatus()Map<String,int[]>getStats(String server, String metric, int seconds, int step)es.caib.seycon.ng.comu.SeyconServerInfogetSyncServerInfo(String url)Collection<es.caib.seycon.ng.comu.Server>getSyncServerInstances()Collection<es.caib.seycon.ng.comu.Server>getSyncServers()com.soffid.iam.service.SyncServerServicegetSyncServerService()Gets reference tosyncServerService.protected abstract voidhandleBoostTask(long taskId)protected abstract voidhandleCancelTask(long taskId)protected abstract voidhandleCancelUnscheduledTasks()protected abstract Collection<com.soffid.iam.ui.SeyconTask>handleFindUnscheduledTasks()protected abstract es.caib.seycon.ng.comu.SeyconAgentTaskLoghandleGetAgentTask(String url, String agentName, Long taskId)protected abstract Collection<es.caib.seycon.ng.comu.SeyconAgentTaskLog>handleGetAgentTasks(String url, String agentCodi)protected abstract Collection<es.caib.seycon.ng.comu.SeyconServerInfo>handleGetPendingTasksInfo()protected abstract Map<String,Vector<Object[]>>handleGetPendingTasksStats()protected abstract Collection<es.caib.seycon.ng.comu.AgentStatusInfo>handleGetServerAgentStatus()protected abstract Collection<es.caib.seycon.ng.comu.AgentStatusInfo>handleGetServerAgentStatus(String url)protected abstract ObjecthandleGetServerService(String servicePath)protected abstract Collection<Object>handleGetServerTasks(String url)protected abstract InputStreamhandleGetSeyconServerLog(String urlServer)protected abstract Collection<es.caib.seycon.ng.comu.SeyconServerInfo>handleGetSeyconServersStatus()protected abstract Map<String,int[]>handleGetStats(String server, String metric, int seconds, int step)protected abstract es.caib.seycon.ng.comu.SeyconServerInfohandleGetSyncServerInfo(String url)protected abstract Collection<es.caib.seycon.ng.comu.Server>handleGetSyncServerInstances()protected abstract Collection<es.caib.seycon.ng.comu.Server>handleGetSyncServers()protected abstract voidhandleReleaseAllTasks()protected abstract voidhandleReleaseTask(long taskId)protected abstract voidhandleResetSyncServer(String url, String server)protected abstract String[]handleTailServerLog(String urlServer)protected abstract voidhandleUpdateDispatcherConfiguration()protected abstract voidhandleUpdatePendingTasks()voidreleaseAllTasks()voidreleaseTask(long taskId)voidresetSyncServer(String url, String server)voidsetSyncServerService(com.soffid.iam.service.SyncServerService syncServerService)Sets reference tosyncServerService.String[]tailServerLog(String urlServer)voidupdateDispatcherConfiguration()voidupdatePendingTasks()
-
-
-
Method Detail
-
setSyncServerService
public void setSyncServerService(com.soffid.iam.service.SyncServerService syncServerService)
Sets reference tosyncServerService.
-
getSyncServerService
public com.soffid.iam.service.SyncServerService getSyncServerService()
Gets reference tosyncServerService.
-
getAgentTask
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.SeyconAgentTaskLog getAgentTask(String url, String agentName, Long taskId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getAgentTaskin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetAgentTask
protected abstract es.caib.seycon.ng.comu.SeyconAgentTaskLog handleGetAgentTask(String url, String agentName, Long taskId) throws Exception
- Throws:
Exception
-
getSyncServerInfo
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.SeyconServerInfo getSyncServerInfo(String url) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getSyncServerInfoin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSyncServerInfo
protected abstract es.caib.seycon.ng.comu.SeyconServerInfo handleGetSyncServerInfo(String url) throws Exception
- Throws:
Exception
-
getSeyconServerLog
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public InputStream getSeyconServerLog(String urlServer) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getSeyconServerLogin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSeyconServerLog
protected abstract InputStream handleGetSeyconServerLog(String urlServer) throws Exception
- Throws:
Exception
-
getServerService
@Transactional(rollbackFor=java.lang.Exception.class) public Object getServerService(String servicePath) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getServerServicein interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetServerService
protected abstract Object handleGetServerService(String servicePath) throws Exception
- Throws:
Exception
-
tailServerLog
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public String[] tailServerLog(String urlServer) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
tailServerLogin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleTailServerLog
protected abstract String[] handleTailServerLog(String urlServer) throws Exception
- Throws:
Exception
-
findUnscheduledTasks
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.ui.SeyconTask> findUnscheduledTasks() throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findUnscheduledTasksin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindUnscheduledTasks
protected abstract Collection<com.soffid.iam.ui.SeyconTask> handleFindUnscheduledTasks() throws Exception
- Throws:
Exception
-
getAgentTasks
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.SeyconAgentTaskLog> getAgentTasks(String url, String agentCodi) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getAgentTasksin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetAgentTasks
protected abstract Collection<es.caib.seycon.ng.comu.SeyconAgentTaskLog> handleGetAgentTasks(String url, String agentCodi) throws Exception
- Throws:
Exception
-
getPendingTasksInfo
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.SeyconServerInfo> getPendingTasksInfo() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getPendingTasksInfoin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetPendingTasksInfo
protected abstract Collection<es.caib.seycon.ng.comu.SeyconServerInfo> handleGetPendingTasksInfo() throws Exception
- Throws:
Exception
-
getServerAgentStatus
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.AgentStatusInfo> getServerAgentStatus() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getServerAgentStatusin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetServerAgentStatus
protected abstract Collection<es.caib.seycon.ng.comu.AgentStatusInfo> handleGetServerAgentStatus() throws Exception
- Throws:
Exception
-
getServerAgentStatus
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.AgentStatusInfo> getServerAgentStatus(String url) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getServerAgentStatusin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetServerAgentStatus
protected abstract Collection<es.caib.seycon.ng.comu.AgentStatusInfo> handleGetServerAgentStatus(String url) throws Exception
- Throws:
Exception
-
getServerTasks
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<Object> getServerTasks(String url) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getServerTasksin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetServerTasks
protected abstract Collection<Object> handleGetServerTasks(String url) throws Exception
- Throws:
Exception
-
getSeyconServersStatus
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.SeyconServerInfo> getSeyconServersStatus() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getSeyconServersStatusin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSeyconServersStatus
protected abstract Collection<es.caib.seycon.ng.comu.SeyconServerInfo> handleGetSeyconServersStatus() throws Exception
- Throws:
Exception
-
getSyncServerInstances
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.Server> getSyncServerInstances() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getSyncServerInstancesin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSyncServerInstances
protected abstract Collection<es.caib.seycon.ng.comu.Server> handleGetSyncServerInstances() throws Exception
- Throws:
Exception
-
getSyncServers
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.Server> getSyncServers() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getSyncServersin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetSyncServers
protected abstract Collection<es.caib.seycon.ng.comu.Server> handleGetSyncServers() throws Exception
- Throws:
Exception
-
getPendingTasksStats
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Map<String,Vector<Object[]>> getPendingTasksStats() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getPendingTasksStatsin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetPendingTasksStats
protected abstract Map<String,Vector<Object[]>> handleGetPendingTasksStats() throws Exception
- Throws:
Exception
-
getStats
@Transactional(rollbackFor=java.lang.Exception.class) public Map<String,int[]> getStats(String server, String metric, int seconds, int step) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getStatsin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetStats
protected abstract Map<String,int[]> handleGetStats(String server, String metric, int seconds, int step) throws Exception
- Throws:
Exception
-
boostTask
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void boostTask(long taskId) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
boostTaskin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleBoostTask
protected abstract void handleBoostTask(long taskId) throws Exception- Throws:
Exception
-
cancelTask
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void cancelTask(long taskId) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
cancelTaskin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCancelTask
protected abstract void handleCancelTask(long taskId) throws Exception- Throws:
Exception
-
cancelUnscheduledTasks
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void cancelUnscheduledTasks() throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
cancelUnscheduledTasksin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCancelUnscheduledTasks
protected abstract void handleCancelUnscheduledTasks() throws Exception- Throws:
Exception
-
releaseAllTasks
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void releaseAllTasks() throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
releaseAllTasksin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleReleaseAllTasks
protected abstract void handleReleaseAllTasks() throws Exception- Throws:
Exception
-
releaseTask
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void releaseTask(long taskId) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
releaseTaskin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleReleaseTask
protected abstract void handleReleaseTask(long taskId) throws Exception- Throws:
Exception
-
resetSyncServer
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void resetSyncServer(String url, String server) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
resetSyncServerin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleResetSyncServer
protected abstract void handleResetSyncServer(String url, String server) throws Exception
- Throws:
Exception
-
updateDispatcherConfiguration
@Transactional(rollbackFor=java.lang.Exception.class) public void updateDispatcherConfiguration() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updateDispatcherConfigurationin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdateDispatcherConfiguration
protected abstract void handleUpdateDispatcherConfiguration() throws Exception- Throws:
Exception
-
updatePendingTasks
@Transactional(rollbackFor=java.lang.Exception.class) public void updatePendingTasks() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updatePendingTasksin interfacees.caib.seycon.ng.servei.SeyconServerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdatePendingTasks
protected abstract void handleUpdatePendingTasks() throws Exception- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-