Examples of ExoProperties


Examples of org.exoplatform.commons.utils.ExoProperties

      mxbean_ = ManagementFactory.getRuntimeMXBean();

      PropertiesParam param = params.getPropertiesParam("add.system.properties");
      if (param != null)
      {
         ExoProperties props = param.getProperties();
         Iterator i = props.entrySet().iterator();
         while (i.hasNext())
         {
            Map.Entry entry = (Map.Entry)i.next();
            System.setProperty((String)entry.getKey(), (String)entry.getValue());
         }
View Full Code Here

Examples of org.exoplatform.commons.utils.ExoProperties

   private JobInfo jinfo_;

   public CronJob(InitParams params) throws Exception
   {
      ExoProperties props = params.getPropertiesParam("cronjob.info").getProperties();

      String jobName = props.getProperty("jobName");
      String jobGroup = props.getProperty("groupName");
      String jobClass = props.getProperty("job");
      Class<?> clazz = ClassLoading.forName(jobClass, this);
      jinfo_ = new JobInfo(jobName, jobGroup, clazz);

      expression_ = props.getProperty("expression");
   }
View Full Code Here

Examples of org.exoplatform.commons.utils.ExoProperties

   private JobInfo jinfo_;

   public PeriodJob(InitParams params) throws Exception
   {
      ExoProperties props = params.getPropertiesParam("job.info").getProperties();

      String jobName = props.getProperty("jobName");
      String jobGroup = props.getProperty("groupName");
      String jobClass = props.getProperty("job");
      Class<?> clazz = ClassLoading.forName(jobClass, this);
      jinfo_ = new JobInfo(jobName, jobGroup, clazz);

      Date startTime = getDate(props.getProperty("startTime"));
      Date endTime = getDate(props.getProperty("endTime"));
      int repeatCount = Integer.parseInt(props.getProperty("repeatCount"));
      long repeatInterval = Integer.parseInt(props.getProperty("period"));
      pjinfo_ = new PeriodInfo(startTime, endTime, repeatCount, repeatInterval);
   }
View Full Code Here

Examples of org.exoplatform.commons.utils.ExoProperties

  
   private JobDataMap jdatamap_;

   public CronJob(InitParams params) throws Exception
   {
      ExoProperties props = params.getPropertiesParam("cronjob.info").getProperties();

      String jobName = props.getProperty("jobName");
      String jobGroup = props.getProperty("groupName");
      String jobClass = props.getProperty("job");
      Class clazz = Class.forName(jobClass);
      jinfo_ = new JobInfo(jobName, jobGroup, clazz);

      expression_ = props.getProperty("expression");
   }
View Full Code Here

Examples of org.exoplatform.commons.utils.ExoProperties

   private JobDataMap jdatamap_;

   public PeriodJob(InitParams params) throws Exception
   {
      ExoProperties props = params.getPropertiesParam("job.info").getProperties();

      String jobName = props.getProperty("jobName");
      String jobGroup = props.getProperty("groupName");
      String jobClass = props.getProperty("job");
      Class clazz = Class.forName(jobClass);
      jinfo_ = new JobInfo(jobName, jobGroup, clazz);

      Date startTime = getDate(props.getProperty("startTime"));
      Date endTime = getDate(props.getProperty("endTime"));
      int repeatCount = Integer.parseInt(props.getProperty("repeatCount"));
      long repeatInterval = Integer.parseInt(props.getProperty("period"));
      pjinfo_ = new PeriodInfo(startTime, endTime, repeatCount, repeatInterval);
   }
View Full Code Here

Examples of org.exoplatform.commons.utils.ExoProperties

      {
         PropertiesParam param = params.getPropertiesParam("add.system.properties");

         if (param != null)
         {
            ExoProperties props = param.getProperties();
            Iterator i = props.entrySet().iterator();
            while (i.hasNext())
            {
               Map.Entry entry = (Map.Entry)i.next();
               PrivilegedSystemHelper.setProperty((String)entry.getKey(), (String)entry.getValue());
            }
View Full Code Here

Examples of org.exoplatform.commons.utils.ExoProperties

   private JobInfo jinfo_;

   public CronJob(InitParams params) throws Exception
   {
      ExoProperties props = params.getPropertiesParam("cronjob.info").getProperties();

      String jobName = props.getProperty("jobName");
      String jobGroup = props.getProperty("groupName");
      String jobClass = props.getProperty("job");
      Class clazz = Class.forName(jobClass);
      jinfo_ = new JobInfo(jobName, jobGroup, clazz);

      expression_ = props.getProperty("expression");
   }
View Full Code Here

Examples of org.exoplatform.commons.utils.ExoProperties

   private JobDataMap jdatamap_;

   public PeriodJob(InitParams params) throws Exception
   {
      ExoProperties props = params.getPropertiesParam("job.info").getProperties();

      String jobName = props.getProperty("jobName");
      String jobGroup = props.getProperty("groupName");
      String jobClass = props.getProperty("job");
      Class<?> clazz = ClassLoading.forName(jobClass, this);
      jinfo_ = new JobInfo(jobName, jobGroup, clazz);

      Date startTime = getDate(props.getProperty("startTime"));
      Date endTime = getDate(props.getProperty("endTime"));
      int repeatCount = Integer.parseInt(props.getProperty("repeatCount"));
      long repeatInterval = Integer.parseInt(props.getProperty("period"));
      pjinfo_ = new PeriodInfo(startTime, endTime, repeatCount, repeatInterval);
   }
View Full Code Here

Examples of org.exoplatform.commons.utils.ExoProperties

  
   private JobDataMap jdatamap_;

   public CronJob(InitParams params) throws Exception
   {
      ExoProperties props = params.getPropertiesParam("cronjob.info").getProperties();

      String jobName = props.getProperty("jobName");
      String jobGroup = props.getProperty("groupName");
      String jobClass = props.getProperty("job");
      Class<?> clazz = ClassLoading.forName(jobClass, this);
      jinfo_ = new JobInfo(jobName, jobGroup, clazz);

      expression_ = props.getProperty("expression");
   }
View Full Code Here

Examples of org.exoplatform.commons.utils.ExoProperties

      mxbean_ = ManagementFactory.getRuntimeMXBean();

      PropertiesParam param = params.getPropertiesParam("add.system.properties");
      if (param != null)
      {
         ExoProperties props = param.getProperties();
         Iterator i = props.entrySet().iterator();
         while (i.hasNext())
         {
            Map.Entry entry = (Map.Entry)i.next();
            PrivilegedSystemHelper.setProperty((String)entry.getKey(), (String)entry.getValue());
         }
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.