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

16
LINES

< > BotCompany Repo | #1004203 // List Running Main Programs

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1668L/12K/40K).

!752

p {
  ProgramScan.verbose = true;
  ProgramScan.maxNumberOfVMs = 10; // test if this speeds things up
  
  for (DialogIO io : talkToAllVMs()) {
    try {
      S progID = io.ask("what is the main program id?");
      continue unless isSnippetID(progID);
      print("Program found: " + fsI(progID) + " - " + getSnippetTitle(progID) + " [VM " + io.getPort() + "]");
    } finally {
      io.close();
    }
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004203
Snippet name: List Running Main Programs
Eternal ID of this version: #1004203/1
Text MD5: c6486ec1f5ab958ed73af7d37b0801d2
Transpilation MD5: bc129453df603375f378a356d1442cd2
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-10 15:14:38
Source code size: 431 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 444 / 561
Referenced in: #1004204 - talkToMainProgram - talk to a main program with a certain ID loaded in a VM