Package uk.ac.bbsrc.tgac.miso.notification.util

Examples of uk.ac.bbsrc.tgac.miso.notification.util.NotificationUtils


  public static void main(String[] args) {
    log.info("Starting notification system...");
    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/notification.xml");

    ChannelResolver channelResolver = new BeanFactoryChannelResolver(context);
    NotificationUtils notificationUtils = new NotificationUtils();

    File propsPath = new File(".", "notification.properties");
    Properties props = new Properties();
    try {
      props.load(new FileReader(propsPath));

      CompositeFileListFilter statusFilter = (CompositeFileListFilter) context.getBean("statusFilter");

      Map<String, Set<File>> allDataPaths = new HashMap<String, Set<File>>();

      for (String platformType : PlatformType.getKeys()) {
        platformType = platformType.toLowerCase();

        if (props.containsKey(platformType + ".splitterBatchSize")) {
          notificationUtils.setSplitterBatchSize(Integer.parseInt(props.getProperty(platformType + ".splitterBatchSize")));
        }

        if (props.containsKey(platformType + ".dataPaths")) {
          log.debug("Resolving " + platformType + ".dataPaths ...");
          String dataPaths = props.getProperty(platformType + ".dataPaths");
View Full Code Here

TOP

Related Classes of uk.ac.bbsrc.tgac.miso.notification.util.NotificationUtils

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.