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

19
LINES

< > BotCompany Repo | #1001779 // runInAllVMs (and duplicate output to our own System.out)

JavaX fragment (include)

static void runInAllVMs(S programID) {
  print("Injecting program to all VMs...");
  
  // inject to VMs
  L<Injection> injections = injectToAll(programID);
  
  // wait until injections ended
  waitUntilInjectionsDone(injections);
  
  print("Getting output of " + l(injections) + " injection(s).");
  L<S> output = getOutputOfInjections(injections);
  for (int i = 0; i < l(injections); i++) {
    print();
    print("VM " + injections.get(i).vmPort + ":");
    print(rtrim(output.get(i)));
  }

  // release injections (TODO)
}

Author comment

Began life as a copy of #1001628

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001779
Snippet name: runInAllVMs (and duplicate output to our own System.out)
Eternal ID of this version: #1001779/1
Text MD5: 8edade200a8703258111c6cccc77eb9a
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-14 18:18:59
Source code size: 548 bytes / 19 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 549 / 768
Referenced in: [show references]