Package org.exoplatform.commons.utils

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


   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

   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

  
   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

   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

      {
         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

   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

   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

  
   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

      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

Related Classes of org.exoplatform.commons.utils.ExoProperties

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.