org.ow2.jasmine.probe.rest.impl
Class JTasksManager

java.lang.Object
  extended by org.ow2.jasmine.probe.rest.impl.JTasksManager
All Implemented Interfaces:
TasksManager

public class JTasksManager
extends Object
implements TasksManager


Constructor Summary
JTasksManager()
           
 
Method Summary
 String createTask(String probeId)
          Create a data task for a probe.
 Task getTask(String taskId)
          Get a task object
 List<String> getTasks()
           
 void removeTask(String taskId)
          Remove a task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTasksManager

public JTasksManager()
Method Detail

createTask

public String createTask(String probeId)
Create a data task for a probe. If already created, return its id. Used in JProbes as a treatment for POST /probe/{probeId}/data.

Specified by:
createTask in interface TasksManager
Parameters:
probeId - the probe's id
Returns:
task id

getTask

public Task getTask(String taskId)
Get a task object

Specified by:
getTask in interface TasksManager
Parameters:
taskId - the task's id
Returns:
the task object's reference or null if no task having the given id

getTasks

public List<String> getTasks()
Specified by:
getTasks in interface TasksManager
Returns:
the list of the tasks ids

removeTask

public void removeTask(String taskId)
Description copied from interface: TasksManager
Remove a task

Specified by:
removeTask in interface TasksManager
Parameters:
taskId - the task's id


Copyright © 2013 OW2 Consortium. All Rights Reserved.