public abstract class AbstractDependencyGraphAction extends Object implements hudson.model.Action
Constructor and Description |
---|
AbstractDependencyGraphAction() |
Modifier and Type | Method and Description |
---|---|
jenkins.model.ModelObjectWithContextMenu.ContextMenu |
doContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
This method is called via AJAX to obtain the context menu for this model object, but we don't have one...
|
void |
doDynamic(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
graph.{png,gv,...} is mapped to the corresponding output
|
void |
doEdge(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
String |
getDisplayName() |
String |
getIconFileName() |
abstract hudson.model.AbstractModelObject |
getParentObject() |
String |
getProjectNameStripRegex() |
int |
getProjectNameStripRegexGroup() |
protected abstract Collection<? extends hudson.model.Job<?,?>> |
getProjectsForDepgraph() |
abstract String |
getTitle() |
String |
getUrlName() |
boolean |
isEditFunctionInJSViewEnabled() |
boolean |
isGraphvizEnabled() |
protected void |
runDot(OutputStream output,
InputStream input,
String type)
Execute the dot command with given input and output stream
|
public jenkins.model.ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
request
- StaplerRequestresponse
- StaplerResponsepublic void doEdge(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException, InterruptedException
IOException
javax.servlet.ServletException
InterruptedException
public void doDynamic(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
req
- StaplerRequestrsp
- StaplerResponseIOException
- if dot failsjavax.servlet.ServletException
- for other errorsprotected void runDot(OutputStream output, InputStream input, String type) throws IOException
type
- the parameter for the -T option of the graphviz toolsinput
- the input stream to connect to dot executionoutput
- the output stream to connect to dot executionIOException
- in case of dot execution errorspublic boolean isGraphvizEnabled()
public boolean isEditFunctionInJSViewEnabled()
public String getProjectNameStripRegex()
public int getProjectNameStripRegexGroup()
protected abstract Collection<? extends hudson.model.Job<?,?>> getProjectsForDepgraph()
public abstract String getTitle()
public abstract hudson.model.AbstractModelObject getParentObject()
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getUrlName()
getUrlName
in interface hudson.model.Action
Copyright © 2016–2020. All rights reserved.