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 void
boostTask(long taskId)
void
cancelTask(long taskId)
void
cancelUnscheduledTasks()
Collection<com.soffid.iam.ui.SeyconTask>
findUnscheduledTasks()
es.caib.seycon.ng.comu.SeyconAgentTaskLog
getAgentTask(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 Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.Collection<es.caib.seycon.ng.comu.AgentStatusInfo>
getServerAgentStatus()
Collection<es.caib.seycon.ng.comu.AgentStatusInfo>
getServerAgentStatus(String url)
Object
getServerService(String servicePath)
Collection<Object>
getServerTasks(String url)
InputStream
getSeyconServerLog(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.SeyconServerInfo
getSyncServerInfo(String url)
Collection<es.caib.seycon.ng.comu.Server>
getSyncServerInstances()
Collection<es.caib.seycon.ng.comu.Server>
getSyncServers()
com.soffid.iam.service.SyncServerService
getSyncServerService()
Gets reference tosyncServerService
.protected abstract void
handleBoostTask(long taskId)
protected abstract void
handleCancelTask(long taskId)
protected abstract void
handleCancelUnscheduledTasks()
protected abstract Collection<com.soffid.iam.ui.SeyconTask>
handleFindUnscheduledTasks()
protected abstract es.caib.seycon.ng.comu.SeyconAgentTaskLog
handleGetAgentTask(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 Object
handleGetServerService(String servicePath)
protected abstract Collection<Object>
handleGetServerTasks(String url)
protected abstract InputStream
handleGetSeyconServerLog(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.SeyconServerInfo
handleGetSyncServerInfo(String url)
protected abstract Collection<es.caib.seycon.ng.comu.Server>
handleGetSyncServerInstances()
protected abstract Collection<es.caib.seycon.ng.comu.Server>
handleGetSyncServers()
protected abstract void
handleReleaseAllTasks()
protected abstract void
handleReleaseTask(long taskId)
protected abstract void
handleResetSyncServer(String url, String server)
protected abstract String[]
handleTailServerLog(String urlServer)
protected abstract void
handleUpdateDispatcherConfiguration()
protected abstract void
handleUpdatePendingTasks()
void
releaseAllTasks()
void
releaseTask(long taskId)
void
resetSyncServer(String url, String server)
void
setSyncServerService(com.soffid.iam.service.SyncServerService syncServerService)
Sets reference tosyncServerService
.String[]
tailServerLog(String urlServer)
void
updateDispatcherConfiguration()
void
updatePendingTasks()
-
-
-
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:
getAgentTask
in 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:
getSyncServerInfo
in 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:
getSeyconServerLog
in 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:
getServerService
in 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:
tailServerLog
in 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:
findUnscheduledTasks
in 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:
getAgentTasks
in 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:
getPendingTasksInfo
in 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:
getServerAgentStatus
in 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:
getServerAgentStatus
in 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:
getServerTasks
in 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:
getSeyconServersStatus
in 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:
getSyncServerInstances
in 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:
getSyncServers
in 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:
getPendingTasksStats
in 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:
getStats
in 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:
boostTask
in 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:
cancelTask
in 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:
cancelUnscheduledTasks
in 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:
releaseAllTasks
in 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:
releaseTask
in 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:
resetSyncServer
in 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:
updateDispatcherConfiguration
in 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:
updatePendingTasks
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-