src/main/java/com/redislabs/quartz/RedisJobStore.java
/**
	 * Stores job in redis.
	 *
	 * @param newJob the new job
	 * @param replaceExisting the replace existing
	 * @param jedis thread-safe redis connection
	 * @throws ObjectAlreadyExistsException
	 */
Stores job in redis.
@param newJob the new job
@param replaceExisting the replace existing
@param jedis thread-safe redis connection
@throws ObjectAlreadyExistsException
Stores job in redis . @param newJob the new job @param replaceExisting the replace existing @param jedis thread - safe redis connection @throws ObjectAlreadyExistsException
private void storeJob(JobDetail newJob, boolean replaceExisting, Jedis jedis)
			throws ObjectAlreadyExistsException {
		String jobHashKey = createJobHashKey(newJob.getKey().getGroup(), newJob.getKey().getName());
		String jobDataMapHashKey = createJobDataMapHashKey(newJob.getKey().getGroup(), newJob.getKey().getName());
		String jobGroupSetKey = createJobGroupSetKey(newJob.getKey().getGroup());
		if (jedis.exists(jobHashKey) && !replaceExisting)
			throw new ObjectAlreadyExistsException(newJob);
      Map<String, String> jobDetails = new HashMap<>();
		jobDetails.put(DESCRIPTION, newJob.getDescription() != null ? newJob.getDescription() : "");
		jobDetails.put(JOB_CLASS, newJob.getJobClass().getName());
		jobDetails.put(IS_DURABLE, Boolean.toString(newJob.isDurable()));
		jobDetails.put(BLOCKED_BY, "");
		jobDetails.put(BLOCK_TIME, "");
		jedis.hmset(jobHashKey, jobDetails);
		if (newJob.getJobDataMap() != null && !newJob.getJobDataMap().isEmpty())
			jedis.hmset(jobDataMapHashKey, getStringDataMap(newJob.getJobDataMap()));			
		jedis.sadd(JOBS_SET, jobHashKey);
		jedis.sadd(JOB_GROUPS_SET, jobGroupSetKey);
		jedis.sadd(jobGroupSetKey, jobHashKey);
	}
private void storeJob ( JobDetail newJob , boolean replaceExisting , Jedis jedis ) throws ObjectAlreadyExistsException { String jobHashKey = createJobHashKey ( newJob . getKey ( ) . getGroup ( ) , newJob . getKey ( ) . getName ( ) ) ; String jobDataMapHashKey = createJobDataMapHashKey ( newJob . getKey ( ) . getGroup ( ) , newJob . getKey ( ) . getName ( ) ) ; String jobGroupSetKey = createJobGroupSetKey ( newJob . getKey ( ) . getGroup ( ) ) ; if ( jedis . exists ( jobHashKey ) && ! replaceExisting ) throw new ObjectAlreadyExistsException ( newJob ) ; Map < String , String > jobDetails = new HashMap < > ( ) ; jobDetails . put ( DESCRIPTION , newJob . getDescription ( ) != null ? newJob . getDescription ( ) : "" ) ; jobDetails . put ( JOB_CLASS , newJob . getJobClass ( ) . getName ( ) ) ; jobDetails . put ( IS_DURABLE , Boolean . toString ( newJob . isDurable ( ) ) ) ; jobDetails . put ( BLOCKED_BY , "" ) ; jobDetails . put ( BLOCK_TIME , "" ) ; jedis . hmset ( jobHashKey , jobDetails ) ; if ( newJob . getJobDataMap ( ) != null && ! newJob . getJobDataMap ( ) . isEmpty ( ) ) jedis . hmset ( jobDataMapHashKey , getStringDataMap ( newJob . getJobDataMap ( ) ) ) ; jedis . sadd ( JOBS_SET , jobHashKey ) ; jedis . sadd ( JOB_GROUPS_SET , jobGroupSetKey ) ; jedis . sadd ( jobGroupSetKey , jobHashKey ) ; }
Stores job in redis.
Stores job in redis .