hudson.plugins.pxe
Class LinuxBootConfiguration

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.plugins.pxe.BootConfiguration
          extended by hudson.plugins.pxe.IsoBasedBootConfiguration
              extended by hudson.plugins.pxe.LinuxBootConfiguration
All Implemented Interfaces:
hudson.model.Describable<BootConfiguration>, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem
Direct Known Subclasses:
RedHatBootCoonfiguration, UbuntuBootConfiguration

public abstract class LinuxBootConfiguration
extends IsoBasedBootConfiguration


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.plugins.pxe.IsoBasedBootConfiguration
IsoBasedBootConfiguration.FileEntryData, IsoBasedBootConfiguration.IsoBasedBootConfigurationDescriptor
 
Field Summary
 
Fields inherited from class hudson.plugins.pxe.IsoBasedBootConfiguration
iso
 
Constructor Summary
protected LinuxBootConfiguration(java.io.File iso)
           
 
Method Summary
protected  hudson.util.VariableResolver<java.lang.String> createResolver()
          Creates a variable resolver that looks up properties on this class.
 java.lang.String getPxeLinuxConfigFragment()
          Directs the user to the OS specific submenu.
protected abstract  org.kohsuke.loopy.FileEntry getTftpIsoMountDir(org.kohsuke.loopy.iso9660.ISO9660FileSystem fs)
          Directory inside the ISO file that gets "mounted" to TFTP.
protected  void serveMacroExpandedResource(org.kohsuke.stapler.StaplerResponse rsp, java.lang.String resourceName)
          Serves the static text resource after expanding macro variables.
 org.jvnet.hudson.tftpd.Data tftp(java.lang.String fileName)
          Serves menu.txt by replacing variables.
 
Methods inherited from class hudson.plugins.pxe.IsoBasedBootConfiguration
doImage, doIndex, getDescriptor, getDisplayName, getRelease
 
Methods inherited from class hudson.plugins.pxe.BootConfiguration
all, getAbsoluteUrl, getId, getIdSeed, getResourceAsStream, getSearchUrl, getUrl, shutdown
 
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
 

Constructor Detail

LinuxBootConfiguration

protected LinuxBootConfiguration(java.io.File iso)
Method Detail

getPxeLinuxConfigFragment

public java.lang.String getPxeLinuxConfigFragment()
                                           throws java.io.IOException
Directs the user to the OS specific submenu.

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

tftp

public org.jvnet.hudson.tftpd.Data tftp(java.lang.String fileName)
                                 throws java.io.IOException
Serves menu.txt by replacing variables.

Overrides:
tftp in class BootConfiguration
Parameters:
fileName - Relative path within the space designated for this boot configuration. For example, if the client requests "foo/bar/zot" and the ID of this configuration is "foo", this parameter will be "bar/zot".
Returns:
null if no such file exists, as far as this plugin is concerned. The PXE plugin will continue to search other BootConfigurations to see if anyone understands it.
Throws:
java.io.IOException - If a problem occurs. The PXE plugin will abort the search and the download will fail.

getTftpIsoMountDir

protected abstract org.kohsuke.loopy.FileEntry getTftpIsoMountDir(org.kohsuke.loopy.iso9660.ISO9660FileSystem fs)
                                                           throws java.io.IOException
Directory inside the ISO file that gets "mounted" to TFTP. Used normally to serve kernel and initrd.

Returns:
null if no directory from ISO is mount to tftp.
Throws:
java.io.IOException

createResolver

protected hudson.util.VariableResolver<java.lang.String> createResolver()
Creates a variable resolver that looks up properties on this class.


serveMacroExpandedResource

protected void serveMacroExpandedResource(org.kohsuke.stapler.StaplerResponse rsp,
                                          java.lang.String resourceName)
                                   throws java.io.IOException
Serves the static text resource after expanding macro variables.

Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.