org.jenkinsci.plugins.externalscheduler
Class AbstractCiStateProvider

java.lang.Object
  extended by org.jenkinsci.plugins.externalscheduler.AbstractCiStateProvider
All Implemented Interfaces:
StateProvider

public class AbstractCiStateProvider
extends Object
implements StateProvider

Encapsulate Jenkins state

Author:
ogondza

Method Summary
 List<hudson.model.Node> getNodes()
          Get nodes ready to execute builds
 List<hudson.model.Queue.BuildableItem> getQueue()
          Get buildable items to schedule
 void updateQueue()
          Notify CIBase about the changes in the queue assignments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNodes

public List<hudson.model.Node> getNodes()
Get nodes ready to execute builds

Specified by:
getNodes in interface StateProvider
Returns:
List of online Nodes. Never null

getQueue

public List<hudson.model.Queue.BuildableItem> getQueue()
Get buildable items to schedule

Specified by:
getQueue in interface StateProvider
Returns:
List of queued item to be scheduled. Never null

updateQueue

public void updateQueue()
Notify CIBase about the changes in the queue assignments

Specified by:
updateQueue in interface StateProvider


Copyright © 2004-2013. All Rights Reserved.