Subversion Repositories SmartDukaan

Rev

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

Rev 3107 Rev 3125
Line 7... Line 7...
7
import in.shop2020.model.v1.catalog.Warehouse;
7
import in.shop2020.model.v1.catalog.Warehouse;
8
import in.shop2020.model.v1.order.LineItem;
8
import in.shop2020.model.v1.order.LineItem;
9
import in.shop2020.model.v1.order.Order;
9
import in.shop2020.model.v1.order.Order;
10
import in.shop2020.model.v1.order.OrderStatus;
10
import in.shop2020.model.v1.order.OrderStatus;
11
import in.shop2020.model.v1.order.TransactionServiceException;
11
import in.shop2020.model.v1.order.TransactionServiceException;
12
import in.shop2020.thrift.clients.CatalogServiceClient;
12
import in.shop2020.thrift.clients.CatalogClient;
13
import in.shop2020.thrift.clients.LogisticsServiceClient;
13
import in.shop2020.thrift.clients.LogisticsClient;
14
import in.shop2020.thrift.clients.TransactionServiceClient;
14
import in.shop2020.thrift.clients.TransactionClient;
15
 
15
 
16
import java.io.ByteArrayOutputStream;
16
import java.io.ByteArrayOutputStream;
17
import java.io.FileNotFoundException;
17
import java.io.FileNotFoundException;
18
import java.io.FileOutputStream;
18
import java.io.FileOutputStream;
19
import java.io.IOException;
19
import java.io.IOException;
Line 32... Line 32...
32
import org.slf4j.LoggerFactory;
32
import org.slf4j.LoggerFactory;
33
 
33
 
34
public class CourierDetailsGenerator {
34
public class CourierDetailsGenerator {
35
    private static Logger logger = LoggerFactory.getLogger(CourierDetailsGenerator.class);
35
    private static Logger logger = LoggerFactory.getLogger(CourierDetailsGenerator.class);
36
    
36
    
37
	private TransactionServiceClient tsc = null;
37
	private TransactionClient tsc = null;
38
	private CatalogServiceClient csc = null;
38
	private CatalogClient csc = null;
39
	private LogisticsServiceClient lsc = null;
39
	private LogisticsClient lsc = null;
40
	
40
	
41
	public CourierDetailsGenerator(){
41
	public CourierDetailsGenerator(){
42
		try {
42
		try {
43
			tsc = new TransactionServiceClient();
43
			tsc = new TransactionClient();
44
			csc = new CatalogServiceClient();
44
			csc = new CatalogClient();
45
			lsc = new LogisticsServiceClient();
45
			lsc = new LogisticsClient();
46
		} catch (Exception e) {
46
		} catch (Exception e) {
47
			logger.error("Error while initializing one of the thrift clients", e);
47
			logger.error("Error while initializing one of the thrift clients", e);
48
		}
48
		}
49
	}
49
	}
50
	
50