Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Display Jobs in Table
Display Jobs in Table [message #1836720] Tue, 12 January 2021 20:46 Go to next message
Luis Nothvogel is currently offline Luis NothvogelFriend
Messages: 56
Registered: October 2019
Member
Hi all and Happy New Year,

I was wondering if there is a good way of displaying all running, scheduled, blocked Jobs in a Table. Right now i am doing it by saving the job in the DB when a change of state occurs and quering the Tabledata from the DB but there has to be a better a way to do this.

So is there a better way to do this?

Thank you all for answering :)
Re: Display Jobs in Table [message #1836767 is a reply to message #1836720] Wed, 13 January 2021 14:21 Go to previous messageGo to next message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 214
Registered: November 2010
Senior Member
What kind of jobs? You can implement execLoadData() however you like. It does not have to be an SQL query, you can retrieve the data from any source you like, including in-memory maps.

Regards,
Beat
Re: Display Jobs in Table [message #1836772 is a reply to message #1836767] Wed, 13 January 2021 15:35 Go to previous messageGo to next message
Luis Nothvogel is currently offline Luis NothvogelFriend
Messages: 56
Registered: October 2019
Member
Ah sorry maybe i should clarify.
I meant through the scout Jobmanager. Is there a good way to get all Running, scheduled, blocked Jobs out of the Jobmanager?

Regards,
Luis
Re: Display Jobs in Table [message #1836775 is a reply to message #1836772] Wed, 13 January 2021 16:11 Go to previous message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 214
Registered: November 2010
Senior Member
You can get a list of IFutures that represents the jobs:

Jobs.getJobManager().getFutures(Jobs.newFutureFilterBuilder()
        // <-- add your filter conditions here (.andMatch...)
        .toFilter());


Be aware that Scout itself uses jobs frequently, so without the right filter you might see get unexpected results. To just search for your own jobs, you should mark them with a custom "execution hint".

Regards,
Beat
Previous Topic:spelling corrections in the asciidoc
Next Topic:Filter Lists in Columns
Goto Forum:
  


Current Time: Tue Nov 05 06:51:59 GMT 2024

Powered by FUDForum. Page generated in 0.03781 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top