org.jenkinsci.plugins.externalscheduler
Class ExternalScheduler

java.lang.Object
  extended by hudson.Plugin
      extended by org.jenkinsci.plugins.externalscheduler.ExternalScheduler
All Implemented Interfaces:
hudson.model.Describable<ExternalScheduler>, hudson.model.Saveable

public final class ExternalScheduler
extends hudson.Plugin
implements hudson.model.Describable<ExternalScheduler>

Author:
ogondza

Nested Class Summary
static class ExternalScheduler.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.Plugin
hudson.Plugin.DummyImpl
 
Field Summary
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
ExternalScheduler()
           
 
Method Summary
 NodeAssignments currentSolution()
           
 NodeAssignments fetchSolution()
          Fetch remote solution
 ExternalScheduler.DescriptorImpl getDescriptor()
           
static Dispatcher getDispatcher()
          Register Dispatcher as a Jenkins extension
static RemoteUpdater getUpdater()
          Register RemoteUpdater as a Jenkins extension
 boolean isActive()
          Determine whether the Planner plugin intercept Jenkins queue scheduling
 void postInitialize()
           
 boolean sendQueue()
          Update Queue
 void stop()
           
 
Methods inherited from class hudson.Plugin
configure, configure, doDynamic, getConfigXml, getWrapper, load, save, setServletContext, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalScheduler

public ExternalScheduler()
Method Detail

getDispatcher

@Extension
public static Dispatcher getDispatcher()
Register Dispatcher as a Jenkins extension


getUpdater

@Extension
public static RemoteUpdater getUpdater()
Register RemoteUpdater as a Jenkins extension


postInitialize

public void postInitialize()
                    throws Exception
Overrides:
postInitialize in class hudson.Plugin
Throws:
Exception

stop

public void stop()
          throws Exception
Overrides:
stop in class hudson.Plugin
Throws:
Exception

isActive

public boolean isActive()
Determine whether the Planner plugin intercept Jenkins queue scheduling


currentSolution

public NodeAssignments currentSolution()

fetchSolution

public NodeAssignments fetchSolution()
Fetch remote solution

Returns:
New assignments

sendQueue

public boolean sendQueue()
Update Queue

Returns:
True if queue updated

getDescriptor

public ExternalScheduler.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<ExternalScheduler>


Copyright © 2004-2013. All Rights Reserved.