Package com.google.gson

Examples of com.google.gson.Gson


    XstreamUtil.object2XML(quartzConfig);
   
    Result result = new Result();
    result.setNavTabId("main");
    result.setMessage("添加成功");
    JsonUtil.toJson(new Gson().toJson(result));
    return null;
  }
View Full Code Here


   
    XstreamUtil.object2XML(quartzConfig);
   
    Result result = new Result();
    result.setMessage("修改成功");
    JsonUtil.toJson(new Gson().toJson(result));
    return null;
  }
View Full Code Here

    log.info("delete a quartz info!");
    XstreamUtil.removeXml(uuid);
   
    Result result = new Result();
    result.setMessage("删除成功");
    JsonUtil.toJson(new Gson().toJson(result));
    return null;
  }
View Full Code Here

   
    Result result = new Result();
    result.setMessage("添加成功");
    result.setNavTabId("triggerList");
    result.setCallbackType("");
    JsonUtil.toJson(new Gson().toJson(result));
   
   
    return null;
  }
View Full Code Here

    log.info("delete job["+trigger.getJobName()+"]'s trigger!");
    Result result = new Result();
    result.setMessage("删除成功");
    result.setNavTabId("triggerList");
    result.setCallbackType("");
    JsonUtil.toJson(new Gson().toJson(result));
    return null;
  }
View Full Code Here

   
   
    Result result = new Result();
    result.setMessage("设置成功");
    result.setCallbackType("");
    JsonUtil.toJson(new Gson().toJson(result));
    return null;
  }
View Full Code Here

    if(instance == null){
     
      Result result = new Result();
      result.setMessage("请先配置Quartz");
      result.setCallbackType("");
      JsonUtil.toJson(new Gson().toJson(result));
      return null;
    }
    List<Scheduler> schedulers = instance.getSchedulerList();
    log.info(" schedulers list size:"+schedulers.size());
     if (schedulers != null && schedulers.size() > 0)
View Full Code Here

   
    Result result = new Result();
    result.setStatusCode("200");
    result.setMessage("执行成功");
    result.setCallbackType("");
    JsonUtil.toJson(new Gson().toJson(result));
    return null;
  }
View Full Code Here

    JobContainer.removeJobById(uuid);
    log.info("delete a quartz job!");
    instance.getJmxAdapter().deleteJob(instance, instance.getSchedulerByName(job.getSchedulerName()), job);
    Result result = new Result();
    result.setMessage("删除成功");
    JsonUtil.toJson(new Gson().toJson(result));
    return null;
  }
View Full Code Here

    log.info("pause a quartz job!");
    instance.getJmxAdapter().pauseJob(instance, instance.getSchedulerByName(job.getSchedulerName()), job);
    Result result = new Result();
    result.setMessage("Job已暂停");
    result.setCallbackType("");
    JsonUtil.toJson(new Gson().toJson(result));
    return null;
  }
View Full Code Here

TOP

Related Classes of com.google.gson.Gson

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.