Package com.soffid.iam.sync.service
Interface TaskGenerator
-
public interface TaskGenerator
Service TaskGenerator Generador de tareas. Recupera las tareas a realizar de la tabla SC_TASQUE y las encola en TaskQueue. Adicionalmente coordina tareas de sincronización entre los dispatchers y otros threads relacionados con el SSO tales como el acceso a base de datos
Consulta las siguientes propiedades del sistema:
- server.getlogs: true permite la lectura de logs
- server.debuglevel: nivel de información de debug 0 = mínimo 10 = máximo
- server.dispatcher.enabled: true si el dispatcher debe recuperar las tareas de la tabla SC_TASQUE.
- server.dispatcher.delay: pausa (en ms.) que realizará el task dispatcher tras procesar la cola de tareas pendientes antes de volver a comenzar
- server.dispatcher.timeout: pausa (en ms.) que realizará el task dispatcher cuando se produzca en error de comunicaciones
- server.privatekey: archivo donde se encuentra la clave privada DSA que se utilizará para contactar con los agentes
- server.query.connections: Número maximo de conexiones a abrir contra la base de datos (por defecto 5)
- Version:
- $Revision: 1.1 $
- Author:
- $Author: u07286 $
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canGetLog(DispatcherHandler td)
Operation canGetLogvoid
finishGetLog(DispatcherHandler td)
Operation finishGetLogvoid
finishVirtualSourceTransaction(String virtualTransactionId)
Operation finishVirtualSourceTransactionSet<Long>
getActiveTenants()
Operation getActiveTenantsCollection<DispatcherHandler>
getAllTenantsDispatchers()
Operation getAllTenantsDispatchersDispatcherHandler
getDispatcher(String id)
Operation getDispatcherCollection<DispatcherHandler>
getDispatchers()
Operation getDispatchersString
getStatus()
Operation getStatusboolean
isEnabled()
Operation isEnabledboolean
isMainServer()
Operation isMainServervoid
loadTasks()
Operation loadTasksvoid
purgeServerInstances()
Operation purgeServerInstancesvoid
setEnabled(boolean enabled)
Operation setEnabledvoid
shutDown()
Operation shutDownString
startVirtualSourceTransaction()
Operation startVirtualSourceTransactionString
startVirtualSourceTransaction(boolean readonly)
Operation startVirtualSourceTransactionvoid
updateAgents()
Operation updateAgentsvoid
updateClusterStatus()
Operation updateClusterStatus
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
canGetLog
boolean canGetLog(DispatcherHandler td) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation canGetLog- Parameters:
td
-- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
isEnabled
boolean isEnabled() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation isEnabled- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
isMainServer
boolean isMainServer() throws es.caib.seycon.ng.exception.InternalErrorException
Operation isMainServer- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getDispatcher
DispatcherHandler getDispatcher(String id) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation getDispatcher- Parameters:
id
-- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getStatus
String getStatus() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation getStatus- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
startVirtualSourceTransaction
String startVirtualSourceTransaction() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation startVirtualSourceTransaction- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
startVirtualSourceTransaction
String startVirtualSourceTransaction(boolean readonly) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation startVirtualSourceTransaction- Parameters:
readonly
-- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getAllTenantsDispatchers
Collection<DispatcherHandler> getAllTenantsDispatchers() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation getAllTenantsDispatchers- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getDispatchers
Collection<DispatcherHandler> getDispatchers() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation getDispatchers- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getActiveTenants
Set<Long> getActiveTenants() throws es.caib.seycon.ng.exception.InternalErrorException
Operation getActiveTenants- Returns:
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
finishGetLog
void finishGetLog(DispatcherHandler td) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation finishGetLog- Parameters:
td
-- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
finishVirtualSourceTransaction
void finishVirtualSourceTransaction(String virtualTransactionId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation finishVirtualSourceTransaction- Parameters:
virtualTransactionId
-- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
loadTasks
void loadTasks() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation loadTasks- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
purgeServerInstances
void purgeServerInstances() throws es.caib.seycon.ng.exception.InternalErrorException
Operation purgeServerInstances- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
setEnabled
void setEnabled(boolean enabled) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation setEnabled- Parameters:
enabled
-- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
shutDown
void shutDown() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation shutDown- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
updateAgents
void updateAgents() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Operation updateAgents- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
updateClusterStatus
void updateClusterStatus() throws es.caib.seycon.ng.exception.InternalErrorException
Operation updateClusterStatus- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
-