Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1001990 // allInjectionsPrettyList

JavaX fragment (include)

1  
static L<Map> allInjectionsPrettyList() {
2  
  new L<Map> l;
3  
  for (DialogIO vm : talkToAllVMs()) {
4  
    pcall {
5  
      int vmPort = vm.getPort();
6  
      S x = vm.ask("get injections");
7  
      L injections = cast safeUnstructure(x);
8  
9  
      for (O inj : injections) {
10  
        S progID = formatSnippetID((S) get(inj, "progID"));
11  
        l.add(litmap(
12  
          "VM", vmPort,
13  
          "Injection ID", get(inj, "injectionID"),
14  
          "Program ID", progID,
15  
          "Program name", getSnippetTitle(progID),
16  
          "More info", (boolean) get(inj, "mainDone") ? "main done" : "main running"));
17  
      }
18  
    }
19  
    vm.close();
20  
  }
21  
  ret l;
22  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001990
Snippet name: allInjectionsPrettyList
Eternal ID of this version: #1001990/1
Text MD5: d37b2a0d06b3a1ec9cebc4916e794c49
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-11 01:18:40
Source code size: 653 bytes / 22 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 607 / 828
Referenced in: [show references]