Package es.caib.seycon.ng.servei
Interface SeyconServerService
-
public interface SeyconServerServiceService SeyconServerService
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidboostTask(long taskId)Operation boostTaskvoidcancelTask(long taskId)Operation cancelTaskvoidcancelUnscheduledTasks()Operation cancelUnscheduledTasksCollection<SeyconTask>findUnscheduledTasks()Operation findUnscheduledTasksSeyconAgentTaskLoggetAgentTask(String url, String agentName, Long taskId)Operation getAgentTaskCollection<SeyconAgentTaskLog>getAgentTasks(String url, String agentCodi)Operation getAgentTasksCollection<SeyconServerInfo>getPendingTasksInfo()Operation getPendingTasksInfoMap<String,Vector<Object[]>>getPendingTasksStats()Operation getPendingTasksStats Returns a map with a list of pairs date - long for each agent.Collection<AgentStatusInfo>getServerAgentStatus()Operation getServerAgentStatusCollection<AgentStatusInfo>getServerAgentStatus(String url)Operation getServerAgentStatusObjectgetServerService(String servicePath)Operation getServerService Gets a remote interface for any server, using the console specific authorization keyCollection<Object>getServerTasks(String url)Operation getServerTasksInputStreamgetSeyconServerLog(String urlServer)Operation getSeyconServerLogCollection<SeyconServerInfo>getSeyconServersStatus()Operation getSeyconServersStatusMap<String,int[]>getStats(String server, String metric, int seconds, int step)Operation getStatsSeyconServerInfogetSyncServerInfo(String url)Operation getSyncServerInfoCollection<Server>getSyncServerInstances()Operation getSyncServerInstancesCollection<Server>getSyncServers()Operation getSyncServersvoidreleaseAllTasks()Operation releaseAllTasksvoidreleaseTask(long taskId)Operation releaseTaskvoidresetSyncServer(String url, String server)Operation resetSyncServerString[]tailServerLog(String urlServer)Operation tailServerLogvoidupdateDispatcherConfiguration()Operation updateDispatcherConfiguration Calls synchronization servers to notify dispatcher configuration changesvoidupdatePendingTasks()Operation updatePendingTasks
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAgentTask
SeyconAgentTaskLog getAgentTask(String url, String agentName, Long taskId) throws InternalErrorException, InternalErrorException
Operation getAgentTask- Parameters:
url-agentName-taskId-- Returns:
- Throws:
InternalErrorException
-
getSyncServerInfo
SeyconServerInfo getSyncServerInfo(String url) throws InternalErrorException, InternalErrorException
Operation getSyncServerInfo- Parameters:
url-- Returns:
- Throws:
InternalErrorException
-
getSeyconServerLog
InputStream getSeyconServerLog(String urlServer) throws InternalErrorException, InternalErrorException
Operation getSeyconServerLog- Parameters:
urlServer-- Returns:
- Throws:
InternalErrorException
-
getServerService
Object getServerService(String servicePath) throws InternalErrorException
Operation getServerService Gets a remote interface for any server, using the console specific authorization key- Parameters:
servicePath-- Returns:
- Throws:
InternalErrorException
-
tailServerLog
String[] tailServerLog(String urlServer) throws InternalErrorException, InternalErrorException
Operation tailServerLog- Parameters:
urlServer-- Returns:
- Throws:
InternalErrorException
-
findUnscheduledTasks
Collection<SeyconTask> findUnscheduledTasks() throws InternalErrorException
Operation findUnscheduledTasks- Returns:
- Throws:
InternalErrorException
-
getAgentTasks
Collection<SeyconAgentTaskLog> getAgentTasks(String url, String agentCodi) throws InternalErrorException, InternalErrorException
Operation getAgentTasks- Parameters:
url-agentCodi-- Returns:
- Throws:
InternalErrorException
-
getPendingTasksInfo
Collection<SeyconServerInfo> getPendingTasksInfo() throws InternalErrorException, InternalErrorException
Operation getPendingTasksInfo- Returns:
- Throws:
InternalErrorException
-
getServerAgentStatus
Collection<AgentStatusInfo> getServerAgentStatus() throws InternalErrorException, InternalErrorException
Operation getServerAgentStatus- Returns:
- Throws:
InternalErrorException
-
getServerAgentStatus
Collection<AgentStatusInfo> getServerAgentStatus(String url) throws InternalErrorException, InternalErrorException
Operation getServerAgentStatus- Parameters:
url-- Returns:
- Throws:
InternalErrorException
-
getServerTasks
Collection<Object> getServerTasks(String url) throws InternalErrorException, InternalErrorException
Operation getServerTasks- Parameters:
url-- Returns:
- Throws:
InternalErrorException
-
getSeyconServersStatus
Collection<SeyconServerInfo> getSeyconServersStatus() throws InternalErrorException, InternalErrorException
Operation getSeyconServersStatus- Returns:
- Throws:
InternalErrorException
-
getSyncServerInstances
Collection<Server> getSyncServerInstances() throws InternalErrorException, InternalErrorException
Operation getSyncServerInstances- Returns:
- Throws:
InternalErrorException
-
getSyncServers
Collection<Server> getSyncServers() throws InternalErrorException, InternalErrorException
Operation getSyncServers- Returns:
- Throws:
InternalErrorException
-
getPendingTasksStats
Map<String,Vector<Object[]>> getPendingTasksStats() throws InternalErrorException, InternalErrorException
Operation getPendingTasksStats Returns a map with a list of pairs date - long for each agent. The key is the agent name. An special agent named 'Unscheduled' holds the not scheduled tasks- Returns:
- Throws:
InternalErrorException
-
getStats
Map<String,int[]> getStats(String server, String metric, int seconds, int step) throws InternalErrorException
Operation getStats- Parameters:
server-metric-seconds-step-- Returns:
- Throws:
InternalErrorException
-
boostTask
void boostTask(long taskId) throws InternalErrorExceptionOperation boostTask- Parameters:
taskId-- Throws:
InternalErrorException
-
cancelTask
void cancelTask(long taskId) throws InternalErrorExceptionOperation cancelTask- Parameters:
taskId-- Throws:
InternalErrorException
-
cancelUnscheduledTasks
void cancelUnscheduledTasks() throws InternalErrorExceptionOperation cancelUnscheduledTasks- Throws:
InternalErrorException
-
releaseAllTasks
void releaseAllTasks() throws InternalErrorExceptionOperation releaseAllTasks- Throws:
InternalErrorException
-
releaseTask
void releaseTask(long taskId) throws InternalErrorExceptionOperation releaseTask- Parameters:
taskId-- Throws:
InternalErrorException
-
resetSyncServer
void resetSyncServer(String url, String server) throws InternalErrorException, InternalErrorException
Operation resetSyncServer- Parameters:
url-server-- Throws:
InternalErrorException
-
updateDispatcherConfiguration
void updateDispatcherConfiguration() throws InternalErrorExceptionOperation updateDispatcherConfiguration Calls synchronization servers to notify dispatcher configuration changes- Throws:
InternalErrorException
-
updatePendingTasks
void updatePendingTasks() throws InternalErrorExceptionOperation updatePendingTasks- Throws:
InternalErrorException
-
-