Package es.caib.seycon.ng.servei
Class SeyconServerServiceBaseProxy
- java.lang.Object
-
- es.caib.seycon.ng.servei.SeyconServerServiceBaseProxy
-
- All Implemented Interfaces:
es.caib.seycon.ng.servei.SeyconServerService
public class SeyconServerServiceBaseProxy 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 SeyconServerServiceBaseProxy()
-
Method Summary
All Methods Instance 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
.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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-