-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSample.java
25 lines (21 loc) · 943 Bytes
/
Sample.java
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
import org.ccctc.colleaguedmiclient.service.DmiCTXService;
import org.ccctc.colleaguedmiclient.service.DmiDataService;
import org.ccctc.colleaguedmiclient.service.DmiService;
public class Main {
public static void main() {
String username = "username";
String password = "passowrd";
String account = "dev_rt";
String ipAddress = "ip-address-or-host-name-of-dmi";
int port = 1234;
boolean secure = false;
String hostnameOverride = null;
String sharedSecret = "shared-secret";
int poolSize = 10;
try (DmiService dmiService = new DmiService(account, username, password, ipAddress, port, secure, hostnameOverride, sharedSecret, poolSize)) {
DmiCTXService dmiCTXService = new DmiCTXService(dmiService);
DmiDataService dmiDataService = new DmiDataService(dmiService, dmiCTXService);
// perform code here ...
}
}
}