hudson.plugins.pxe
Class ChainBootConfiguration

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.plugins.pxe.BootConfiguration
          extended by hudson.plugins.pxe.ChainBootConfiguration
All Implemented Interfaces:
hudson.model.Describable<BootConfiguration>, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem

public class ChainBootConfiguration
extends BootConfiguration

Chain boot from another TFTP server.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class ChainBootConfiguration.DescriptorImpl
           
 
Field Summary
 java.lang.String bootFile
           
 java.lang.String hostName
           
 
Constructor Summary
ChainBootConfiguration(java.lang.String hostName, java.lang.String bootFile)
           
 
Method Summary
 java.lang.String getDisplayName()
           
protected  java.lang.String getIdSeed()
          Returns the string that becomes the seed of the BootConfiguration.getId().
 java.lang.String getPxeLinuxConfigFragment()
          Returns the fragment to be merged into pxelinux.cfg/default.
 
Methods inherited from class hudson.plugins.pxe.BootConfiguration
all, getAbsoluteUrl, getDescriptor, getId, getResourceAsStream, getSearchUrl, getUrl, shutdown, tftp
 
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
 

Field Detail

hostName

public final java.lang.String hostName

bootFile

public final java.lang.String bootFile
Constructor Detail

ChainBootConfiguration

@DataBoundConstructor
public ChainBootConfiguration(java.lang.String hostName,
                                                   java.lang.String bootFile)
Method Detail

getIdSeed

protected java.lang.String getIdSeed()
Description copied from class: BootConfiguration
Returns the string that becomes the seed of the BootConfiguration.getId(). The ID is in turn used for HTTP URLs and TFTP file names, so this method should return something stable and not entirely illegible. But avoid unsafe characters like spaces, '/', etc. A good example would be "OpenSolaris2008.11" or "Ubuntu8.10".

Several BootConfigurations can return the same ID seed, and BootConfiguration.getId() handles those situations correctly.

Specified by:
getIdSeed in class BootConfiguration

getPxeLinuxConfigFragment

public java.lang.String getPxeLinuxConfigFragment()
                                           throws java.io.IOException
Description copied from class: BootConfiguration
Returns the fragment to be merged into pxelinux.cfg/default.

Specified by:
getPxeLinuxConfigFragment in class BootConfiguration
Throws:
java.io.IOException

getDisplayName

public java.lang.String getDisplayName()


Copyright © 2010. All Rights Reserved.