-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.java
More file actions
147 lines (115 loc) · 5.85 KB
/
App.java
File metadata and controls
147 lines (115 loc) · 5.85 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
package com.envisioniot.example.sample;
import java.io.IOException;
import com.envisioniot.example.sample.connection.devicedata.ConnectionDeviceDataApp;
import com.envisioniot.example.sample.onboarding.AmcApp;
import com.envisioniot.example.sample.utility.PropertyUtil;
/**
* API 2.3.0 testing
*/
public class App {
private static String accessKey;
private static String secretKey;
private static String orgId;
private static String url;
public static void main(String[] args) {
// Preconfiguration
PropertyUtil pptfile = null;
try {
pptfile = new PropertyUtil("env.properties");
} catch (IOException e) {
e.printStackTrace();
}
accessKey = pptfile.getProperty("accessKey");
secretKey = pptfile.getProperty("secretKey");
orgId = pptfile.getProperty("orgId");
url = pptfile.getProperty("url");
/* Run GetThings */
// https://support.envisioniot.com/docs/model-api/en/2.3.0/overview.html
/*
ModelApp model = new ModelApp();
model.modelappGeneral(accessKey, secretKey, orgId, url);
*/
/* Connection Service */
// Connection Service - Product
// https://support.envisioniot.com/docs/connection-api/en/2.3.0/overview.html
/*
ConnectionProductApp product = new ConnectionProductApp();
product.connectionProductAppGeneral(accessKey, secretKey, orgId, url);
*/
// Connection Service - Device
// https://support.envisioniot.com/docs/connection-api/en/2.3.0/index_device.html
/*
ConnectionDeviceApp device = new ConnectionDeviceApp();
device.connectionDeviceAppGeneral(accessKey, secretKey, orgId, url);
*/
// Connection Service - Certificate
// https://support.envisioniot.com/docs/connection-api/en/2.3.0/index_certificate.html
/*
ConnectionCertificateApp certificate = new ConnectionCertificateApp();
certificate.connectionCertificateAppGeneral(accessKey, secretKey, orgId, url);
*/
// Connection Services - Gateway and Sub-Device
// https://support.envisioniot.com/docs/connection-api/en/2.3.0/index_gateway_subdevice.html
/*
ConnectionGatewayAndSubdeviceApp gatewayandsubdevice = new ConnectionGatewayAndSubdeviceApp();
gatewayandsubdevice.connectionGatewayAndSubdeviceAppGeneral(accessKey, secretKey, orgId, url);
*/
// Connection Services - Device Data
// https://support.envisioniot.com/docs/connection-api/en/2.3.0/index_device_data.html
// ConnectionDeviceDataApp devicedata = new ConnectionDeviceDataApp();
// devicedata.connectionDeviceDataAppGeneral(accessKey, secretKey, orgId, url);
// Connection Services - HTTP Message Integration
// https://support.envisioniot.com/docs/connection-api/en/2.3.0/index_integration.html
/*
ConnectionHttpApp http = new ConnectionHttpApp();
http.connectionHttpApp(accessKey,secretKey,orgId,url);
*/
// Connection Services - Firmware Management
// https://support.envisioniot.com/docs/connection-api/en/2.3.0/index_firmware.html
/*
ConnectionFirmwareManagementApp firmwaremanagement = new ConnectionFirmwareManagementApp();
firmwaremanagement.connectionFirmwareManagement(accessKey, secretKey, orgId, url);
*/
// Connection Services - Firmware OTA upgrade Management
// https://support.envisioniot.com/docs/connection-api/en/2.3.0/index_ota.html
/* ConnectionFirmwareOTAupgradeManagementApp firmwareotaupgrademanagement = new ConnectionFirmwareOTAupgradeManagementApp();
firmwareotaupgrademanagement.firmwareOTAupgradeManagement(accessKey, secretKey, orgId, url);*/
// Asset Service
// https://support.envisioniot.com/docs/asset-api/en/2.3.0/overview.html
/* AssetApp asset = new AssetApp();
asset.assetAppGeneral(accessKey, secretKey, orgId, url);*/
// Alert
// https://support.envisioniot.com/docs/alert-api/en/2.3.0/overview.html
/*
AlertApp alert = new AlertApp();
alert.alertAppGeneral(accessKey, secretKey, orgId, url);
*/
/* //Stream Processing Services, Get Stage State
StreamProcessingApp streamprocessingapp = new StreamProcessingApp();
streamprocessingapp.streamProcessingAppGeneral(accessKey, secretKey, orgId, url);*/
// TSDP Policy
/* TSDBPolicyApp tsdbpolicyapp = new TSDBPolicyApp();
tsdbpolicyapp.tsdbPolicyAppGeneral(accessKey, secretKey, orgId, url);*/
// TSDBDataApp tsdbdataapp = new TSDBDataApp();
// tsdbdataapp.tsdbDataAppGeneral(accessKey, secretKey, orgId, url);
// Data Federation
/* DataFederationApp datafederationapp = new DataFederationApp();
datafederationapp.dataFederationAppGeneral(accessKey, secretKey, orgId, url);*/
/* // Batch Processing
BatchProcessingApp batchprocessingapp = new BatchProcessingApp();
batchprocessingapp.batchProcessingAppGeneral(accessKey, secretKey, orgId, url);*/
/* AppPortalApp appPortalApp = new AppPortalApp();
appPortalApp.appPortalGeneral(accessKey, secretKey, orgId, url);*/
/*
BpmApp bpmApp = new BpmApp();
bpmApp.bpmAppGeneral(accessKey, secretKey, orgId, url);
*/
/* IAMApp iamApp = new IAMApp();
iamApp.IAMAppGeneral(accessKey, secretKey, orgId, url);*/
/* NotificationManagementApp notificationManagementApp = new NotificationManagementApp();
notificationManagementApp.notificationManagementApp(accessKey, secretKey, orgId, url);*/
// EnOS Onboarding Tool API Overview
AmcApp amcApp = new AmcApp();
amcApp.amcAppGeneral(accessKey, secretKey, orgId, url);
}
}