提交 d83a2565 编写于 作者: K kohsuke

simplified

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9395 71c3de6d-444a-0410-be80-ed276b4c234a
上级 9c546d6d
package hudson.slaves;
import hudson.model.Slave;
import hudson.model.Descriptor;
import hudson.model.Slave;
import hudson.util.StreamTaskListener;
import org.kohsuke.stapler.StaplerRequest;
import net.sf.json.JSONObject;
import org.kohsuke.stapler.DataBoundConstructor;
/**
* {@link SlaveStartMethod} via JNLP.
......@@ -13,6 +12,9 @@ import net.sf.json.JSONObject;
* @author Kohsuke Kawaguchi
*/
public class JNLPStartMethod extends SlaveStartMethod {
@DataBoundConstructor
public JNLPStartMethod() {
}
@Override
public boolean isLaunchSupported() {
......@@ -23,10 +25,6 @@ public class JNLPStartMethod extends SlaveStartMethod {
// do nothing as we cannot self start
}
//@DataBoundConstructor
public JNLPStartMethod() {
}
public Descriptor<SlaveStartMethod> getDescriptor() {
return DESCRIPTOR;
}
......@@ -35,9 +33,5 @@ public class JNLPStartMethod extends SlaveStartMethod {
public String getDisplayName() {
return "Launch slave agents via JNLP";
}
public SlaveStartMethod newInstance(StaplerRequest req, JSONObject formData) throws FormException {
return new JNLPStartMethod();
}
};
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册