org.apache.continuum.builder.distributed.executor
Interface DistributedBuildTaskQueueExecutor

All Known Implementing Classes:
ThreadedDistributedBuildTaskQueueExecutor

public interface DistributedBuildTaskQueueExecutor


Field Summary
static String ROLE
           
 
Method Summary
 boolean cancelTask(org.codehaus.plexus.taskqueue.Task task)
          Cancels execution of this task, if it's currently running.
 String getBuildAgentUrl()
          Returns the build agent url of task queue executor
 org.codehaus.plexus.taskqueue.Task getCurrentTask()
          Returns the currently executing task.
 org.codehaus.plexus.taskqueue.TaskQueue getQueue()
          Returns the task queue
 void setBuildAgentUrl(String buildAgentUrl)
          Sets the build agent url of this task queue executor
 

Field Detail

ROLE

static final String ROLE
Method Detail

getBuildAgentUrl

String getBuildAgentUrl()
Returns the build agent url of task queue executor

Returns:
the build agent url

setBuildAgentUrl

void setBuildAgentUrl(String buildAgentUrl)
Sets the build agent url of this task queue executor

Parameters:
buildAgentUrl -

getCurrentTask

org.codehaus.plexus.taskqueue.Task getCurrentTask()
Returns the currently executing task.

Returns:
the currently executing task.

cancelTask

boolean cancelTask(org.codehaus.plexus.taskqueue.Task task)
Cancels execution of this task, if it's currently running. Does NOT remove it from the associated queue!

Parameters:
task - The task to cancel
Returns:
true if the task was cancelled, false if the task was not executing.

getQueue

org.codehaus.plexus.taskqueue.TaskQueue getQueue()
Returns the task queue

Returns:
the TaskQueue of the task queue executor


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.