@ThreadSafe public class DiagnosticsSession extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
DiagnosticsSession.State
Indicates the status of the session
|
Modifier and Type | Field and Description |
---|---|
protected DiagnosticsContainer |
container
The
DiagnosticsContainer to generate the session report |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDescription()
Gets the session user description
|
Set<Diagnostic> |
getDiagnosticList()
Gets the selected
Diagnostic s for this session |
DiagnosticRunner |
getDiagnosticRunner(Diagnostic diagnostic)
Returns the
DiagnosticRunner associated to the given Diagnostic |
Date |
getEndDate()
Gets the session end date
|
String |
getFullUserName()
Gets the full username that ran the session
|
String |
getId()
Gets the unique session id
|
String |
getName()
Gets the generated session name
|
String |
getRunTime()
Gets a formated string with the session runtime
|
Date |
getStartDate()
Gets the session start date
|
DiagnosticsSession.State |
getStatus() |
String |
getUserName()
Gets username that ran the session
|
int |
hashCode() |
boolean |
isDownloadReady()
Checks if the download result is ready
|
boolean |
isRunning()
Checks if the session is still running
|
void |
notifyDiagnosticFinished(DiagnosticRunner dr)
Called when a full diagnostic execution is finished
|
void |
notifyDiagnosticRunFinished(DiagnosticRunner dr)
Called when a diagnostic run is finished
|
protected Object |
readResolve() |
String |
toString() |
protected DiagnosticsContainer container
DiagnosticsContainer
to generate the session report@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Set<Diagnostic> getDiagnosticList()
Diagnostic
s for this sessionDiagnostic
s for this session@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getName()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public DiagnosticsSession.State getStatus()
DiagnosticsSession.State
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isDownloadReady()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isRunning()
@CheckForNull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Date getStartDate()
@CheckForNull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Date getEndDate()
@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getUserName()
@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getFullUserName()
@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getRunTime()
@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getId()
@CheckForNull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public DiagnosticRunner getDiagnosticRunner(@Nonnull Diagnostic diagnostic)
DiagnosticRunner
associated to the given Diagnostic
diagnostic
- the Diagnostic
to find the DiagnosticRunner
forDiagnosticRunner
public String getDescription()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public void notifyDiagnosticFinished(DiagnosticRunner dr)
dr
- the DiagnosticRunner
that sent the notification@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public void notifyDiagnosticRunFinished(DiagnosticRunner dr)
dr
- the DiagnosticRunner
that sent the notificationprotected Object readResolve()
Copyright © 2016–2017. All rights reserved.