Examples of QuartzConfig


Examples of org.jwatch.listener.settings.QuartzConfig

      if (configs != null && configs.size() > 0)
      {
         log.info("Found " + configs.size() + " Quartz instances in settings file.");
         for (int i = 0; i < configs.size(); i++)
         {
            QuartzConfig config = configs.get(i);
            QuartzConnectService quartzConnectService = new QuartzConnectServiceImpl();
            QuartzInstance quartzInstance = null;
            try
            {
               quartzInstance = quartzConnectService.initInstance(config);
               config.setConnected(true);
            }
            catch (Throwable t)
            {
               log.error("Failed to connect! " + config.toString(), t);
            }

            if (quartzInstance != null)
            {
               QuartzInstanceService.putQuartzInstance(quartzInstance);
View Full Code Here

Examples of org.jwatch.listener.settings.QuartzConfig

                for (Iterator it = qMap.entrySet().iterator(); it.hasNext(); )
                {
                    Map.Entry entry = (Map.Entry) it.next();
                    String k = (String) entry.getKey();
                    QuartzInstance quartzInstance = (QuartzInstance) qMap.get(k);
                    QuartzConfig quartzConfig = new QuartzConfig(quartzInstance);
                    JSONObject jo = JSONObject.fromObject(quartzConfig);
                    jsonArray.add(jo);
                }
                jsonObject.put(GlobalConstants.JSON_DATA_ROOT_KEY, jsonArray);
                jsonObject.put(GlobalConstants.JSON_TOTAL_COUNT, qMap.size());
View Full Code Here

Examples of org.jwatch.listener.settings.QuartzConfig

            String username = StringUtils.trimToNull((String) map.get("userName"));
            String password = StringUtils.trimToNull((String) map.get("password"));

            if (StringUtils.trimToNull(host) != null)
            {
                QuartzConfig quartzConfig = new QuartzConfig(Tools.generateUUID(), host, port, username, password);
                QuartzConnectService quartzConnectService = new QuartzConnectServiceImpl();
                QuartzInstance quartzInstance = quartzConnectService.initInstance(quartzConfig);
                if (quartzInstance == null)
                {
                    log.error(GlobalConstants.MESSAGE_FAILED_CONNECT + " " + quartzConfig);
View Full Code Here

Examples of org.jwatch.listener.settings.QuartzConfig

{
   public static void main(String[] args)
   {
      try
      {
         QuartzConfig config = new QuartzConfig(Tools.generateUUID(), "localhost", 2911, null, null);
         QuartzConnectService quartzConnectService = new QuartzConnectServiceImpl();
         QuartzInstance quartzInstance = quartzConnectService.initInstance(config);
         if (quartzInstance != null)
         {
            List shList = quartzInstance.getSchedulerList();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.