-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestMongo.java
More file actions
32 lines (24 loc) · 1.16 KB
/
Copy pathTestMongo.java
File metadata and controls
32 lines (24 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.sample.utility;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.cisco.dataconnect.process.Load;
import com.cisco.dataconnect.utils.SingleInstance;
import com.cisco.ibpm.kafka.Eman;
public class TestMongo {
public static void main(String[] args) {
// TODO Auto-generated method stub
/*Load load = new Load();
//load.bulk();
//System.out.println("POSTED JSON::::"+jsonString);
System.out.println("value : " + load.search( "{ $or: [ {'_id' : 'RS-10525'} ] }" )) ;*/
try {
System.out.println("Dev ::" + ((Eman) SingleInstance.getInstance("DEV", "brms-nprd1-dev6:9092,brms-nprd1-dev7:9092,brms-nprd1-dev8:9092")).ping() );
System.out.println("Stage ::" + ((Eman) SingleInstance.getInstance("STAGE", "brms-nprd1-stg1:9092,brms-nprd1-stg2:9092,brms-nprd1-stg3:9092")).ping() );
System.out.println("PROD ::" + ((Eman) SingleInstance.getInstance("PROD", "brms-prd1-23:9092,brms-prd1-23:9092,brms-prd1-25:9092,brms-prd4-23:9092,brms-prd4-23:9092,brms-prd4-25:9092")).ping() );
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}