Subversion Repositories SmartDukaan

Rev

Rev 3112 | Rev 3169 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3112 Rev 3126
Line 4... Line 4...
4
import in.shop2020.model.v1.catalog.InventoryService.Client;
4
import in.shop2020.model.v1.catalog.InventoryService.Client;
5
import in.shop2020.model.v1.catalog.InventoryServiceException;
5
import in.shop2020.model.v1.catalog.InventoryServiceException;
6
import in.shop2020.serving.utils.EhcacheWrapper;
6
import in.shop2020.serving.utils.EhcacheWrapper;
7
import in.shop2020.serving.utils.FileUtils;
7
import in.shop2020.serving.utils.FileUtils;
8
import in.shop2020.serving.utils.Utils;
8
import in.shop2020.serving.utils.Utils;
9
import in.shop2020.thrift.clients.CatalogServiceClient;
9
import in.shop2020.thrift.clients.CatalogClient;
10
import in.shop2020.utils.DataLogger;
10
import in.shop2020.utils.DataLogger;
11
 
11
 
12
import java.io.File;
12
import java.io.File;
13
import java.io.IOException;
13
import java.io.IOException;
14
import java.util.ArrayList;
14
import java.util.ArrayList;
Line 109... Line 109...
109
        
109
        
110
        int bestSellerCount = 4;
110
        int bestSellerCount = 4;
111
        int latestArrivalCount = 4;
111
        int latestArrivalCount = 4;
112
        
112
        
113
        try {
113
        try {
114
            CatalogServiceClient catalogServiceClient = new CatalogServiceClient();
114
            CatalogClient catalogServiceClient = new CatalogClient();
115
            Client client = catalogServiceClient.getClient();
115
            Client client = catalogServiceClient.getClient();
116
            
116
            
117
            //Get top 4 best deals 
117
            //Get top 4 best deals 
118
            bestDealCatalogIds = client.getBestDealsCatalogIds(0, 4, null, -1);
118
            bestDealCatalogIds = client.getBestDealsCatalogIds(0, 4, null, -1);
119
            
119