hudson.plugins.pxe
Class PXE

java.lang.Object
  extended by hudson.model.ManagementLink
      extended by hudson.plugins.pxe.PXE
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Action, hudson.model.Describable<PXE>, hudson.model.ModelObject, hudson.model.Saveable, org.kohsuke.stapler.StaplerProxy

@Extension
public class PXE
extends hudson.model.ManagementLink
implements org.kohsuke.stapler.StaplerProxy, hudson.model.Describable<PXE>, hudson.model.Saveable

This object is bound to "/pxe" and handles all the UI work.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class PXE.DescriptorImpl
          Descriptor is only used for UI form bindings
static class PXE.NIC
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.ManagementLink
LIST
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
PXE()
           
 
Method Summary
 void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 void doProgressiveLog(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Handles incremental log output.
static PXE get()
           
 hudson.util.DescribableList<BootConfiguration,BootConfigurationDescriptor> getBootConfigurations()
           
 hudson.remoting.VirtualChannel getChannel()
           
 BootConfiguration getConfiguration(java.lang.String id)
          Looks up BootConfiguration by its id.
protected  hudson.XmlFile getConfigXml()
           
 DaemonService getDaemonService()
           
 hudson.util.FormValidation getDaemonStatus()
          Obtains the status of the daemon.
 java.lang.String getDescription()
           
 PXE.DescriptorImpl getDescriptor()
           
 java.util.Collection<BootConfigurationDescriptor> getDescriptors()
          All registered descriptors exposed for UI
 java.lang.String getDisplayName()
           
 java.lang.String getIconFileName()
           
 java.io.File getLogFile()
           
 java.util.List<PXE.NIC> getNICs()
          Because DHCP proxy doesn't know which interface the DHCP request was received, it cannot determine by itself what IP address the PXE client can use to reach us.
 hudson.util.Secret getRootPassword()
           
 java.lang.String getRootUserName()
           
 java.lang.Object getTarget()
          Access to this object requires the admin permission.
 java.lang.String getTftpAddress()
           
 java.lang.String getUrlName()
           
protected  void load()
           
 void restartPXE()
           
 void save()
           
 void setRootAccount(java.lang.String userName, hudson.util.Secret password)
           
 void setTftpAddress(java.lang.String address)
           
 
Methods inherited from class hudson.model.ManagementLink
all
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PXE

public PXE()
    throws java.io.IOException,
           java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException
Method Detail

getIconFileName

public java.lang.String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action
Specified by:
getIconFileName in class hudson.model.ManagementLink

getDescription

public java.lang.String getDescription()
Overrides:
getDescription in class hudson.model.ManagementLink

getUrlName

public java.lang.String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action
Specified by:
getUrlName in class hudson.model.ManagementLink

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getRootUserName

public java.lang.String getRootUserName()

getRootPassword

public hudson.util.Secret getRootPassword()

getBootConfigurations

public hudson.util.DescribableList<BootConfiguration,BootConfigurationDescriptor> getBootConfigurations()

setTftpAddress

public void setTftpAddress(java.lang.String address)
                    throws java.io.IOException
Throws:
java.io.IOException

getTftpAddress

public java.lang.String getTftpAddress()

getChannel

public hudson.remoting.VirtualChannel getChannel()

getDaemonService

public DaemonService getDaemonService()

getLogFile

public java.io.File getLogFile()

restartPXE

public void restartPXE()
                throws java.io.IOException,
                       java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

setRootAccount

public void setRootAccount(java.lang.String userName,
                           hudson.util.Secret password)
                    throws java.io.IOException
Throws:
java.io.IOException

getDaemonStatus

public hudson.util.FormValidation getDaemonStatus()
Obtains the status of the daemon.


getDescriptors

public java.util.Collection<BootConfigurationDescriptor> getDescriptors()
All registered descriptors exposed for UI


getConfiguration

public BootConfiguration getConfiguration(java.lang.String id)
Looks up BootConfiguration by its id. Primarily used to bind them to URL.


getTarget

public java.lang.Object getTarget()
Access to this object requires the admin permission.

Specified by:
getTarget in interface org.kohsuke.stapler.StaplerProxy

doConfigSubmit

public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
                           org.kohsuke.stapler.StaplerResponse rsp)
                    throws javax.servlet.ServletException,
                           java.io.IOException,
                           java.lang.InterruptedException
Throws:
javax.servlet.ServletException
java.io.IOException
java.lang.InterruptedException

doProgressiveLog

public void doProgressiveLog(org.kohsuke.stapler.StaplerRequest req,
                             org.kohsuke.stapler.StaplerResponse rsp)
                      throws java.io.IOException
Handles incremental log output.

Throws:
java.io.IOException

getDescriptor

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

getNICs

public java.util.List<PXE.NIC> getNICs()
                                throws java.net.SocketException
Because DHCP proxy doesn't know which interface the DHCP request was received, it cannot determine by itself what IP address the PXE client can use to reach us.

This method lists all the interfaces

Throws:
java.net.SocketException

load

protected void load()
             throws java.io.IOException
Throws:
java.io.IOException

save

public void save()
          throws java.io.IOException
Specified by:
save in interface hudson.model.Saveable
Throws:
java.io.IOException

getConfigXml

protected hudson.XmlFile getConfigXml()

get

public static PXE get()


Copyright © 2009. All Rights Reserved.