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

17
LINES

< > BotCompany Repo | #1001368 // hyperMove (jump between two machines)

JavaX fragment (include)

1  
static void hyperMove(S machine1, S machine2) ctex {
2  
  S botID = formatSnippetID(getProgramID());
3  
4  
  S destMachine = getComputerID().equals(machine2) ? machine1 : machine2;
5  
  print("Hyper-Move: Jumping to " + destMachine + "...");
6  
  
7  
  File zipPath = new File(getProgramDir(), botID + ".zip");
8  
  boolean hasData = zipBot(botID, zipPath);
9  
  
10  
  S title = "Data zip of " + botID + " on " + computerID() + " at " + now();
11  
  S gummipw = getProgramID() + "-hypermove";
12  
  S dataID = hasData ? uploadDataSuperHigh(gummipw, title, zipPath) : "#1001471" /* no data */;
13  
  
14  
  sendToRemoteBot("Identity Manager", format3("* is now in state * with data * to machine *", botID, "moving", dataID, destMachine));
15  
  
16  
  print("\nDone. Data ID: " + dataID);
17  
}

Author comment

Began life as a copy of #1001351

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: #1001368
Snippet name: hyperMove (jump between two machines)
Eternal ID of this version: #1001368/1
Text MD5: dbbb4350963c4c01b23ee391003b8720
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-17 14:40:35
Source code size: 755 bytes / 17 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 598 / 861
Referenced in: [show references]