org.apache.continuum.buildagent.taskqueue.manager
Class DefaultBuildAgentTaskQueueManager
java.lang.Object
org.apache.continuum.buildagent.taskqueue.manager.DefaultBuildAgentTaskQueueManager
- All Implemented Interfaces:
- BuildAgentTaskQueueManager, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
public class DefaultBuildAgentTaskQueueManager
- extends Object
- implements BuildAgentTaskQueueManager, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBuildAgentTaskQueueManager
public DefaultBuildAgentTaskQueueManager()
cancelBuild
public void cancelBuild()
throws TaskQueueManagerException
- Specified by:
cancelBuild
in interface BuildAgentTaskQueueManager
- Throws:
TaskQueueManagerException
getBuildQueue
public org.codehaus.plexus.taskqueue.TaskQueue getBuildQueue()
- Specified by:
getBuildQueue
in interface BuildAgentTaskQueueManager
getIdOfProjectCurrentlyBuilding
public int getIdOfProjectCurrentlyBuilding()
throws TaskQueueManagerException
- Specified by:
getIdOfProjectCurrentlyBuilding
in interface BuildAgentTaskQueueManager
- Throws:
TaskQueueManagerException
getPrepareBuildQueue
public org.codehaus.plexus.taskqueue.TaskQueue getPrepareBuildQueue()
- Specified by:
getPrepareBuildQueue
in interface BuildAgentTaskQueueManager
getBuildTaskQueueExecutor
public org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor getBuildTaskQueueExecutor()
throws TaskQueueManagerException
- Throws:
TaskQueueManagerException
getPrepareBuildTaskQueueExecutor
public org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor getPrepareBuildTaskQueueExecutor()
throws TaskQueueManagerException
- Throws:
TaskQueueManagerException
hasBuildTaskInQueue
public boolean hasBuildTaskInQueue()
throws TaskQueueManagerException
- Specified by:
hasBuildTaskInQueue
in interface BuildAgentTaskQueueManager
- Throws:
TaskQueueManagerException
isProjectInBuildQueue
public boolean isProjectInBuildQueue(int projectId)
throws TaskQueueManagerException
- Specified by:
isProjectInBuildQueue
in interface BuildAgentTaskQueueManager
- Throws:
TaskQueueManagerException
isInPrepareBuildQueue
public boolean isInPrepareBuildQueue(int projectGroupId,
BuildTrigger buildTrigger,
String scmRootAddress)
throws TaskQueueManagerException
- Specified by:
isInPrepareBuildQueue
in interface BuildAgentTaskQueueManager
- Throws:
TaskQueueManagerException
getProjectsInPrepareBuildQueue
public List<PrepareBuildProjectsTask> getProjectsInPrepareBuildQueue()
throws TaskQueueManagerException
- Specified by:
getProjectsInPrepareBuildQueue
in interface BuildAgentTaskQueueManager
- Throws:
TaskQueueManagerException
getProjectsInBuildQueue
public List<BuildProjectTask> getProjectsInBuildQueue()
throws TaskQueueManagerException
- Specified by:
getProjectsInBuildQueue
in interface BuildAgentTaskQueueManager
- Throws:
TaskQueueManagerException
getCurrentProjectInPrepareBuild
public PrepareBuildProjectsTask getCurrentProjectInPrepareBuild()
throws TaskQueueManagerException
- Specified by:
getCurrentProjectInPrepareBuild
in interface BuildAgentTaskQueueManager
- Throws:
TaskQueueManagerException
getCurrentProjectInBuilding
public BuildProjectTask getCurrentProjectInBuilding()
throws TaskQueueManagerException
- Specified by:
getCurrentProjectInBuilding
in interface BuildAgentTaskQueueManager
- Throws:
TaskQueueManagerException
removeFromPrepareBuildQueue
public boolean removeFromPrepareBuildQueue(int projectGroupId,
int scmRootId)
throws TaskQueueManagerException
- Specified by:
removeFromPrepareBuildQueue
in interface BuildAgentTaskQueueManager
- Throws:
TaskQueueManagerException
removeFromPrepareBuildQueue
public void removeFromPrepareBuildQueue(int[] hashCodes)
throws TaskQueueManagerException
- Specified by:
removeFromPrepareBuildQueue
in interface BuildAgentTaskQueueManager
- Throws:
TaskQueueManagerException
removeFromBuildQueue
public boolean removeFromBuildQueue(int projectId,
int buildDefinitionId)
throws TaskQueueManagerException
- Specified by:
removeFromBuildQueue
in interface BuildAgentTaskQueueManager
- Throws:
TaskQueueManagerException
removeFromBuildQueue
public void removeFromBuildQueue(int[] hashCodes)
throws TaskQueueManagerException
- Specified by:
removeFromBuildQueue
in interface BuildAgentTaskQueueManager
- Throws:
TaskQueueManagerException
contextualize
public void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
- Specified by:
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Throws:
org.codehaus.plexus.context.ContextException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.