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

18
LINES

< > BotCompany Repo | #1007489 // Monitor AI Concepts Change Count (on live DB only)

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

Libraryless. Click here for Pure Java version (6873L/45K/152K).

1  
!7
2  
3  
p {
4  
  RemoteDB db = new RemoteDB(#1006463, true);
5  
  repeat with sleep 1 {
6  
    try {
7  
      long cc;
8  
      int n;
9  
      time {
10  
        cc = db.xchangeCount();
11  
        n = db.xcount();
12  
      }
13  
      print("Change count: " + cc + ", objects: " + n);
14  
    } on fail {
15  
      db.reconnect();
16  
    }
17  
  }
18  
}

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: #1007489
Snippet name: Monitor AI Concepts Change Count (on live DB only)
Eternal ID of this version: #1007489/5
Text MD5: c4d777c121eead1368add3615985cccf
Transpilation MD5: 73733b67108c3bcfa6494c2af3c52203
Author: stefan
Category: javax / a.i.
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-25 15:37:46
Source code size: 316 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 460 / 661
Version history: 4 change(s)
Referenced in: [show references]