| Line 89... |
Line 89... |
| 89 |
rowhead.createCell((short) 2).setCellValue("EXCEPTIONAL-PRICE");
|
89 |
rowhead.createCell((short) 2).setCellValue("EXCEPTIONAL-PRICE");
|
| 90 |
rowhead.createCell((short) 3).setCellValue("SNAPDEAL-LISTED");
|
90 |
rowhead.createCell((short) 3).setCellValue("SNAPDEAL-LISTED");
|
| 91 |
CatalogClient catalogServiceClient = null;
|
91 |
CatalogClient catalogServiceClient = null;
|
| 92 |
List<SnapdealItem> snapdealItems = null;
|
92 |
List<SnapdealItem> snapdealItems = null;
|
| 93 |
try {
|
93 |
try {
|
| 94 |
catalogServiceClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port");
|
94 |
//catalogServiceClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port");
|
| - |
|
95 |
catalogServiceClient = new CatalogClient();
|
| 95 |
in.shop2020.model.v1.catalog.CatalogService.Client catalogClient= catalogServiceClient.getClient();
|
96 |
in.shop2020.model.v1.catalog.CatalogService.Client catalogClient= catalogServiceClient.getClient();
|
| 96 |
snapdealItems = catalogClient.getAllSnapdealItems();
|
97 |
snapdealItems = catalogClient.getAllSnapdealItems();
|
| 97 |
} catch (Exception e) {
|
98 |
} catch (Exception e) {
|
| 98 |
// TODO Auto-generated catch block
|
99 |
// TODO Auto-generated catch block
|
| 99 |
e.printStackTrace();
|
100 |
e.printStackTrace();
|
| Line 171... |
Line 172... |
| 171 |
HSSFWorkbook workbook = new HSSFWorkbook(iFile);
|
172 |
HSSFWorkbook workbook = new HSSFWorkbook(iFile);
|
| 172 |
HSSFSheet sheet = workbook.getSheetAt(0);
|
173 |
HSSFSheet sheet = workbook.getSheetAt(0);
|
| 173 |
Client catalogClient=null;
|
174 |
Client catalogClient=null;
|
| 174 |
StringBuilder sb = new StringBuilder();
|
175 |
StringBuilder sb = new StringBuilder();
|
| 175 |
try {
|
176 |
try {
|
| 176 |
catalogClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient();
|
177 |
//catalogClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient();
|
| - |
|
178 |
catalogClient = new CatalogClient().getClient();
|
| 177 |
} catch (TTransportException e) {
|
179 |
} catch (TTransportException e) {
|
| 178 |
// TODO Auto-generated catch block
|
180 |
// TODO Auto-generated catch block
|
| 179 |
e.printStackTrace();
|
181 |
e.printStackTrace();
|
| 180 |
}
|
182 |
}
|
| 181 |
for (int iterator=(sheet.getFirstRowNum()+1);iterator<=sheet.getLastRowNum();iterator++){
|
183 |
for (int iterator=(sheet.getFirstRowNum()+1);iterator<=sheet.getLastRowNum();iterator++){
|