public static final class View.AsynchPeople extends ProgressiveRendering
View.AsynchPeople.People
which can be displayed progressively, since it may be slow.Modifier and Type | Class and Description |
---|---|
class |
View.AsynchPeople.People
JENKINS-16397 workaround
|
Modifier and Type | Field and Description |
---|---|
ModelObject |
parent |
Constructor and Description |
---|
AsynchPeople(Jenkins parent) |
AsynchPeople(View parent) |
Modifier and Type | Method and Description |
---|---|
protected void |
compute()
Actually do the work.
|
protected net.sf.json.JSON |
data()
Provide current data to the web page for display.
|
Api |
getApi() |
canceled, executorService, news, progress, start, timeout
public final ModelObject parent
public AsynchPeople(Jenkins parent)
Jenkins.getAsynchPeople()
public AsynchPeople(View parent)
View.getAsynchPeople()
protected void compute() throws Exception
ProgressiveRendering
The security context will be that in effect when the web request was made.
Stapler.getCurrentRequest()
will also be similar to that in effect when the web request was made;
at least, Ancestor
s and basic request properties (URI, locale, and so on) will be available.
compute
in class ProgressiveRendering
Exception
- whenever you like; the progress bar will indicate that an error occurred but details go to the log onlyprotected net.sf.json.JSON data()
ProgressiveRendering
While this could be an aggregate of everything that has been computed so far,
more likely you want to supply only that data that is new since the last call
(maybe just {}
or []
),
so that the page can incrementally update bits of HTML rather than refreshing everything.
You may want to make your implementation synchronized
, so that it
can track what was sent on a previous call, in which case any code running in
ProgressiveRendering.compute()
which modifies these fields should also temporarily be synchronized
on the same monitor such as this
.
data
in class ProgressiveRendering
public Api getApi()
Copyright © 2004–2021. All rights reserved.