@Extension @ThreadSafe public class DiagnosticsAction extends Object implements hudson.model.RootAction
Modifier and Type | Field and Description |
---|---|
static String |
SESSION_ID |
Constructor and Description |
---|
DiagnosticsAction() |
Modifier and Type | Method and Description |
---|---|
org.kohsuke.stapler.HttpResponse |
doCancel(String sessionId)
Cancels an executing session
|
org.kohsuke.stapler.HttpResponse |
doConfigure(org.kohsuke.stapler.StaplerRequest req)
Main action method responsible for creating new sessions
|
org.kohsuke.stapler.HttpResponse |
doDelete(String sessionId)
Deletes a session.
|
org.kohsuke.stapler.HttpResponse |
doDownload(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
String |
getActionBlurb() |
static List<DiagnosticDescriptor<?>> |
getDiagnosticDescriptors()
Returns the
DiagnosticDescriptor available instances. |
Map<DiagnosticDescriptor<?>,Diagnostic> |
getDiagnosticInstance()
Creates a new instance for each
Diagnostic that has to be selected by default on the form and sets the
default values from the DiagnosticDescriptor |
String |
getDisplayName() |
String |
getIconFileName() |
static DiagnosticsAction |
getInstance() |
DiagnosticsSession |
getSession(String sessionId)
Gets a
DiagnosticsSession by it id |
List<DiagnosticsSession> |
getSessions()
Gets the
DiagnosticsSession list |
String |
getUrlName() |
boolean |
isSessionRunning() |
public static final String SESSION_ID
public static DiagnosticsAction getInstance()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public org.kohsuke.stapler.HttpResponse doConfigure(@Nonnull org.kohsuke.stapler.StaplerRequest req) throws IOException, javax.servlet.ServletException, hudson.model.Descriptor.FormException
req
- Stappler requestIOException
- if something went wrongjavax.servlet.ServletException
- if something went wronghudson.model.Descriptor.FormException
- if something went wrong@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public org.kohsuke.stapler.HttpResponse doCancel(@QueryParameter(required=true) String sessionId) throws javax.servlet.ServletException, IOException
sessionId
- the session idjavax.servlet.ServletException
- if something when wrongIOException
- if something when wrong@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public org.kohsuke.stapler.HttpResponse doDelete(@QueryParameter(required=true) String sessionId) throws javax.servlet.ServletException, IOException
sessionId
- the session idjavax.servlet.ServletException
- if something when wrongIOException
- if something when wrong@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public org.kohsuke.stapler.HttpResponse doDownload(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getActionBlurb()
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getUrlName()
getUrlName
in interface hudson.model.Action
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isSessionRunning()
DiagnosticsSession
running@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public List<DiagnosticsSession> getSessions()
DiagnosticsSession
listDiagnosticsSession
list@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public DiagnosticsSession getSession(@CheckForNull String sessionId)
DiagnosticsSession
by it idsessionId
- the session idDiagnosticsSession
or null
if not found@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public static List<DiagnosticDescriptor<?>> getDiagnosticDescriptors()
DiagnosticDescriptor
available instances.DiagnosticDescriptor
instances@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public Map<DiagnosticDescriptor<?>,Diagnostic> getDiagnosticInstance() throws InstantiationException, IllegalAccessException, InvocationTargetException
Diagnostic
that has to be selected by default on the form and sets the
default values from the DiagnosticDescriptor
Diagnostic
instances MapInstantiationException
- if something goes wrongIllegalAccessException
- if something goes wrongInvocationTargetException
- if something goes wrongCopyright © 2016–2017. All rights reserved.