Subversion Repositories SmartDukaan

Rev

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

Rev 3062 Rev 3125
Line 34... Line 34...
34
import in.shop2020.model.v1.catalog.Warehouse;
34
import in.shop2020.model.v1.catalog.Warehouse;
35
import in.shop2020.model.v1.order.LineItem;
35
import in.shop2020.model.v1.order.LineItem;
36
import in.shop2020.model.v1.order.Order;
36
import in.shop2020.model.v1.order.Order;
37
import in.shop2020.model.v1.order.OrderStatus;
37
import in.shop2020.model.v1.order.OrderStatus;
38
import in.shop2020.model.v1.order.TransactionServiceException;
38
import in.shop2020.model.v1.order.TransactionServiceException;
39
import in.shop2020.thrift.clients.CatalogServiceClient;
39
import in.shop2020.thrift.clients.CatalogClient;
40
import in.shop2020.thrift.clients.LogisticsServiceClient;
40
import in.shop2020.thrift.clients.LogisticsClient;
41
import in.shop2020.thrift.clients.TransactionServiceClient;
41
import in.shop2020.thrift.clients.TransactionClient;
42
 
42
 
43
public class ManifestGenerator {
43
public class ManifestGenerator {
44
    
44
    
45
    private static Logger logger = LoggerFactory.getLogger(ManifestGenerator.class);
45
    private static Logger logger = LoggerFactory.getLogger(ManifestGenerator.class);
46
    
46
    
47
	private TransactionServiceClient tsc = null;
47
	private TransactionClient tsc = null;
48
	private CatalogServiceClient csc = null;
48
	private CatalogClient csc = null;
49
	private LogisticsServiceClient lsc = null;
49
	private LogisticsClient lsc = null;
50
	private DecimalFormat weightFormat = new DecimalFormat("0.000");
50
	private DecimalFormat weightFormat = new DecimalFormat("0.000");
51
	public ManifestGenerator() {
51
	public ManifestGenerator() {
52
		try {
52
		try {
53
			tsc = new TransactionServiceClient();
53
			tsc = new TransactionClient();
54
			csc = new CatalogServiceClient();
54
			csc = new CatalogClient();
55
			lsc = new LogisticsServiceClient();
55
			lsc = new LogisticsClient();
56
		} catch (Exception e) {
56
		} catch (Exception e) {
57
		    logger.error("Error while initializing one of the thrift clients", e);
57
		    logger.error("Error while initializing one of the thrift clients", e);
58
		}
58
		}
59
	}
59
	}
60
 
60