Subversion Repositories SmartDukaan

Rev

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

Rev 5451 Rev 5597
Line 94... Line 94...
94
        try {
94
        try {
95
            Client snapshotClient = new CatalogClient().getClient();
95
            Client snapshotClient = new CatalogClient().getClient();
96
            return snapshotClient.getAllItems(true);
96
            return snapshotClient.getAllItems(true);
97
        } catch (Exception e) {
97
        } catch (Exception e) {
98
            logger.error("Could not fetch all items. Retrying.", e);
98
            logger.error("Could not fetch all items. Retrying.", e);
-
 
99
            try {
-
 
100
                Thread.sleep(30000 * Long.parseLong(inventoryUpdate.getwarehouseId()));
-
 
101
            } catch (Exception e1) {
-
 
102
                logger.error("Could not sleep.", e1);
-
 
103
            }
-
 
104
 
99
            return fetchItems();
105
            return fetchItems();
100
        }
106
        }
101
    }
107
    }
102
 
108
 
103
	/**
109
	/**
Line 125... Line 131...
125
                            mapping.getItemKey().trim().toLowerCase());
131
                            mapping.getItemKey().trim().toLowerCase());
126
                }
132
                }
127
            }
133
            }
128
        } catch (Exception e) {
134
        } catch (Exception e) {
129
            logger.error("Could not load vendor item mappings. Trying to reload.", e);
135
            logger.error("Could not load vendor item mappings. Trying to reload.", e);
-
 
136
 
-
 
137
            try {
-
 
138
                Thread.sleep(30000 * Long.parseLong(inventoryUpdate.getwarehouseId()));
-
 
139
            } catch (Exception e1) {
-
 
140
                logger.error("Could not sleep.", e1);
-
 
141
            }
-
 
142
 
130
            loadHotspotMappings();
143
            loadHotspotMappings();
131
        }
144
        }
132
    }
145
    }
133
 
146
 
134
    /**
147
    /**