File[] fileList = file.listFiles();
log.info("find "+fileList.length+ " configs of quartz config!");
for (int i = 0; i < fileList.length; i++) {
if (!fileList[i].isDirectory() && fileList[i].getName().startsWith("quartz-config-")){
try {
QuartzConfig config = XstreamUtil.xml2Object(fileList[i].getAbsolutePath());
QuartzInstanceContainer.addQuartzConfig(config);
QuartzConnectService quartzConnectService = new QuartzConnectServiceImpl();
QuartzInstance quartzInstance = quartzConnectService.initInstance(config);
QuartzInstanceContainer.addQuartzInstance(config.getUuid(), quartzInstance);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block