hudson.plugins.selenium
Class PluginImpl

java.lang.Object
  extended by hudson.Plugin
      extended by hudson.plugins.selenium.PluginImpl
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject, hudson.model.Saveable, java.io.Serializable

@ExportedBean
public class PluginImpl
extends hudson.Plugin
implements hudson.model.Action, java.io.Serializable

Starts Selenium Grid server in another JVM.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Field Summary
 
Fields inherited from class hudson.Plugin
NONE
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
PluginImpl()
           
 
Method Summary
 void configure(net.sf.json.JSONObject formData)
           
 void doProgressiveLog(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Handles incremental log.
 hudson.model.Api getApi()
           
 java.lang.String getDisplayName()
           
 java.lang.String getIconFileName()
           
 java.io.File getLogFile()
           
 int getPort()
           
 java.util.List<SeleniumRemoteControl> getRemoteControls()
           
 java.lang.String getUrlName()
           
 void start()
           
 void stop()
           
 void waitForHubLaunch()
           
 
Methods inherited from class hudson.Plugin
doDynamic, getConfigXml, load, postInitialize, save, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginImpl

public PluginImpl()
Method Detail

start

public void start()
           throws java.lang.Exception
Overrides:
start in class hudson.Plugin
Throws:
java.lang.Exception

getLogFile

public java.io.File getLogFile()

waitForHubLaunch

public void waitForHubLaunch()
                      throws java.util.concurrent.ExecutionException,
                             java.lang.InterruptedException
Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException

getIconFileName

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

getDisplayName

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

getUrlName

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

getApi

public hudson.model.Api getApi()

getPort

@Exported
public int getPort()

stop

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

configure

public void configure(net.sf.json.JSONObject formData)
               throws java.io.IOException,
                      javax.servlet.ServletException,
                      hudson.model.Descriptor.FormException
Overrides:
configure in class hudson.Plugin
Throws:
java.io.IOException
javax.servlet.ServletException
hudson.model.Descriptor.FormException

getRemoteControls

@Exported(inline=true)
public java.util.List<SeleniumRemoteControl> getRemoteControls()
                                                        throws java.io.IOException,
                                                               java.lang.InterruptedException
Throws:
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.

Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.