Skip to content

Commit

Permalink
Add getters needed for jelly to work =/
Browse files Browse the repository at this point in the history
  • Loading branch information
timja committed May 25, 2019
1 parent 3108eec commit b3984ae
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/main/java/com/sonyericsson/jenkins/plugins/bfa/PluginImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
import jenkins.model.Jenkins;
import net.sf.json.JSONObject;
import org.jenkinsci.Symbol;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.DataBoundSetter;
import org.kohsuke.stapler.StaplerRequest;
Expand Down Expand Up @@ -233,6 +235,46 @@ public ScanOnDemandVariables getSodVariables() {
return sodVariables;
}

/**
* Used by jelly for loading the view, it can't seem to handle retrieving from the nested field.
*/
@Restricted(NoExternalUse.class)
public int getMinimumSodWorkerThreads() {
return sodVariables.getMinimumSodWorkerThreads();
}

/**
* Used by jelly for loading the view, it can't seem to handle retrieving from the nested field.
*/
@Restricted(NoExternalUse.class)
public int getMaximumSodWorkerThreads() {
return sodVariables.getMaximumSodWorkerThreads();
}

/**
* Used by jelly for loading the view, it can't seem to handle retrieving from the nested field.
*/
@Restricted(NoExternalUse.class)
public int getSodThreadKeepAliveTime() {
return sodVariables.getSodThreadKeepAliveTime();
}

/**
* Used by jelly for loading the view, it can't seem to handle retrieving from the nested field.
*/
@Restricted(NoExternalUse.class)
public int getSodWaitForJobShutdownTimeout() {
return sodVariables.getSodWaitForJobShutdownTimeout();
}

/**
* Used by jelly for loading the view, it can't seem to handle retrieving from the nested field.
*/
@Restricted(NoExternalUse.class)
public int getSodCorePoolNumberOfThreads() {
return sodVariables.getSodCorePoolNumberOfThreads();
}

/**
* Returns the base relative URI for static images packaged in webapp.
*
Expand Down

0 comments on commit b3984ae

Please sign in to comment.