hudson.model
Class AbstractCIBase

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Node
          extended by hudson.model.AbstractCIBase
All Implemented Interfaces:
ExtensionPoint, Describable<Node>, DescriptorByNameOwner, ItemGroup<TopLevelItem>, ModelObject, PersistenceRoot, ReconfigurableDescribable<Node>, Saveable, ViewGroup, SearchableModelObject, SearchItem, AccessControlled, OnMaster, org.kohsuke.stapler.StaplerFallback, org.kohsuke.stapler.StaplerProxy
Direct Known Subclasses:
Jenkins

public abstract class AbstractCIBase
extends Node
implements ItemGroup<TopLevelItem>, org.kohsuke.stapler.StaplerProxy, org.kohsuke.stapler.StaplerFallback, ViewGroup, AccessControlled, DescriptorByNameOwner


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Node
Node.InternalComputerListener, Node.Mode
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static boolean LOG_STARTUP_PERFORMANCE
           
 
Fields inherited from class hudson.model.Node
holdOffLaunchUntilSave
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
AbstractCIBase()
           
 
Method Summary
protected abstract  Map<Node,Computer> getComputerMap()
           
 String getNodeName()
          Deprecated.  
abstract  List<Node> getNodes()
          Returns all Nodes in the system, excluding Jenkins instance itself which represents the master.
abstract  Queue getQueue()
           
 String getUrl()
          Deprecated. Why are you calling a method that always returns ""?
protected  void interruptReloadThread()
           
protected  void killComputer(Computer c)
           
protected  void resetLabel(Label l)
           
protected  void setViewOwner(View v)
           
protected  void updateComputerList(boolean automaticSlaveLaunch)
          Updates Computers.
 
Methods inherited from class hudson.model.Node
canTake, canTake, checkPermission, createComputer, createLauncher, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getDescriptor, getDisplayName, getFileSystemProvisioner, getLabelCloud, getLabelString, getMode, getNodeDescription, getNodeProperties, getNodePropertyDescriptors, getNumExecutors, getRootPath, getSearchUrl, getSelfLabel, getWorkspaceFor, hasPermission, isHoldOffLaunchUntilSave, reconfigure, setLabelString, setNodeName, toComputer
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.ItemGroup
getFullDisplayName, getFullName, getItem, getItems, getRootDirFor, getUrlChildPrefix, onDeleted, onRenamed
 
Methods inherited from interface hudson.model.PersistenceRoot
getRootDir
 
Methods inherited from interface hudson.model.Saveable
save
 
Methods inherited from interface org.kohsuke.stapler.StaplerProxy
getTarget
 
Methods inherited from interface org.kohsuke.stapler.StaplerFallback
getStaplerFallback
 
Methods inherited from interface hudson.model.ViewGroup
canDelete, deleteView, getItemGroup, getPrimaryView, getView, getViewActions, getViews, getViewsTabBar, onViewRenamed
 
Methods inherited from interface hudson.security.AccessControlled
checkPermission, getACL, hasPermission
 
Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByName
 
Methods inherited from interface hudson.model.ModelObject
getDisplayName
 

Field Detail

LOG_STARTUP_PERFORMANCE

public static boolean LOG_STARTUP_PERFORMANCE
Constructor Detail

AbstractCIBase

public AbstractCIBase()
Method Detail

getNodeName

@Deprecated
public String getNodeName()
Deprecated. 

If you are calling this on Hudson something is wrong.

Specified by:
getNodeName in class Node
Returns:
"" if this is master

getUrl

public String getUrl()
Deprecated. Why are you calling a method that always returns ""?

Description copied from interface: ItemGroup
Returns the path relative to the context root, like "foo/bar/zot/". Note no leading slash but trailing slash.

Specified by:
getUrl in interface ItemGroup<TopLevelItem>
Specified by:
getUrl in interface ViewGroup

resetLabel

protected void resetLabel(Label l)

setViewOwner

protected void setViewOwner(View v)

interruptReloadThread

protected void interruptReloadThread()

killComputer

protected void killComputer(Computer c)

getNodes

public abstract List<Node> getNodes()
Returns all Nodes in the system, excluding Jenkins instance itself which represents the master.


getQueue

public abstract Queue getQueue()

getComputerMap

protected abstract Map<Node,Computer> getComputerMap()

updateComputerList

protected void updateComputerList(boolean automaticSlaveLaunch)
                           throws IOException
Updates Computers.

This method tries to reuse existing Computer objects so that we won't upset Executors running in it.

Throws:
IOException


Copyright © 2004-2013. All Rights Reserved.