/** * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.integration.timeseries.snapshot; import java.util.Arrays; import java.util.LinkedHashMap; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.joda.beans.Bean; import org.joda.beans.BeanBuilder; import org.joda.beans.BeanDefinition; import org.joda.beans.JodaBeanUtils; import org.joda.beans.MetaProperty; import org.joda.beans.Property; import org.joda.beans.PropertyDefinition; import org.joda.beans.impl.direct.DirectBeanBuilder; import org.joda.beans.impl.direct.DirectMetaProperty; import org.joda.beans.impl.direct.DirectMetaPropertyMap; import org.quartz.Scheduler; import org.quartz.Trigger; import org.springframework.scheduling.quartz.CronTriggerBean; import com.google.common.collect.Maps; import com.opengamma.component.ComponentInfo; import com.opengamma.component.ComponentRepository; import com.opengamma.component.factory.AbstractComponentFactory; import com.opengamma.master.historicaltimeseries.HistoricalTimeSeriesMaster; import com.opengamma.util.redis.RedisConnector; /** * Component factory to setup quartz cron trigger. */ @BeanDefinition public class CronTriggerComponentFactory extends AbstractComponentFactory { /** * The classifier that the factory should publish under. */ @PropertyDefinition(validate = "notNull") private String _classifier; @PropertyDefinition(validate = "notNull") private String _jobName; @PropertyDefinition private String _jobGroup; @PropertyDefinition(validate = "notNull") private String _name; @PropertyDefinition(validate = "notNull") private String _cronExpression; @PropertyDefinition private String _schemeBlackList; @PropertyDefinition private String _dataFieldBlackList; @PropertyDefinition private String _dataSource; @PropertyDefinition private String _normalizationRuleSetId; @PropertyDefinition(validate = "notNull") private String _observationTime; @PropertyDefinition private String _globalPrefix; @PropertyDefinition private HistoricalTimeSeriesMaster _htsMaster; @PropertyDefinition private RedisConnector _redisConnector; @PropertyDefinition private String _baseDir; @PropertyDefinition(validate = "notNull") private Scheduler _scheduler; @Override public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) throws Exception { ComponentInfo info = new ComponentInfo(Trigger.class, getClassifier()); final Map<String, Object> jobDataAsMap = Maps.newHashMap(); jobDataAsMap.put("observationTime", getObservationTime()); if (getDataSource() != null) { jobDataAsMap.put("dataSource", getDataSource()); } if (getNormalizationRuleSetId() != null) { jobDataAsMap.put("normalizationRuleSetId", getNormalizationRuleSetId()); } if (getDataFieldBlackList() != null) { jobDataAsMap.put("dataFieldBlackList", createBlackList(getDataFieldBlackList(), "RedisDataFieldBlackList")); } if (getSchemeBlackList() != null) { jobDataAsMap.put("schemeBlackList", createBlackList(getSchemeBlackList(), "RedisSchemeBlackList")); } if (getGlobalPrefix() != null) { jobDataAsMap.put("globalPrefix", getGlobalPrefix()); } if (getHtsMaster() != null) { jobDataAsMap.put("htsMaster", getHtsMaster()); } if (getRedisConnector() != null) { jobDataAsMap.put("redisConnector", getRedisConnector()); } if (getBaseDir() != null) { jobDataAsMap.put("baseDir", getBaseDir()); } CronTriggerBean cronTriggerBean = new CronTriggerBean(); cronTriggerBean.setBeanName(getName()); cronTriggerBean.setCronExpression(getCronExpression()); cronTriggerBean.setJobDataAsMap(jobDataAsMap); cronTriggerBean.setJobName(getJobName()); if (getJobGroup() != null) { cronTriggerBean.setJobGroup(getJobGroup()); } cronTriggerBean.afterPropertiesSet(); repo.registerComponent(info, cronTriggerBean); Scheduler scheduler = getScheduler(); scheduler.scheduleJob(cronTriggerBean); } private BlackList createBlackList(String blackList, String name) { DefaultBlackList result = new DefaultBlackList(); result.setName(name); result.setBlackList(Arrays.asList(StringUtils.split(blackList.toUpperCase()))); return result; } //------------------------- AUTOGENERATED START ------------------------- ///CLOVER:OFF /** * The meta-bean for {@code CronTriggerComponentFactory}. * @return the meta-bean, not null */ public static CronTriggerComponentFactory.Meta meta() { return CronTriggerComponentFactory.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(CronTriggerComponentFactory.Meta.INSTANCE); } @Override public CronTriggerComponentFactory.Meta metaBean() { return CronTriggerComponentFactory.Meta.INSTANCE; } //----------------------------------------------------------------------- /** * Gets the classifier that the factory should publish under. * @return the value of the property, not null */ public String getClassifier() { return _classifier; } /** * Sets the classifier that the factory should publish under. * @param classifier the new value of the property, not null */ public void setClassifier(String classifier) { JodaBeanUtils.notNull(classifier, "classifier"); this._classifier = classifier; } /** * Gets the the {@code classifier} property. * @return the property, not null */ public final Property<String> classifier() { return metaBean().classifier().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the jobName. * @return the value of the property, not null */ public String getJobName() { return _jobName; } /** * Sets the jobName. * @param jobName the new value of the property, not null */ public void setJobName(String jobName) { JodaBeanUtils.notNull(jobName, "jobName"); this._jobName = jobName; } /** * Gets the the {@code jobName} property. * @return the property, not null */ public final Property<String> jobName() { return metaBean().jobName().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the jobGroup. * @return the value of the property */ public String getJobGroup() { return _jobGroup; } /** * Sets the jobGroup. * @param jobGroup the new value of the property */ public void setJobGroup(String jobGroup) { this._jobGroup = jobGroup; } /** * Gets the the {@code jobGroup} property. * @return the property, not null */ public final Property<String> jobGroup() { return metaBean().jobGroup().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the name. * @return the value of the property, not null */ public String getName() { return _name; } /** * Sets the name. * @param name the new value of the property, not null */ public void setName(String name) { JodaBeanUtils.notNull(name, "name"); this._name = name; } /** * Gets the the {@code name} property. * @return the property, not null */ public final Property<String> name() { return metaBean().name().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the cronExpression. * @return the value of the property, not null */ public String getCronExpression() { return _cronExpression; } /** * Sets the cronExpression. * @param cronExpression the new value of the property, not null */ public void setCronExpression(String cronExpression) { JodaBeanUtils.notNull(cronExpression, "cronExpression"); this._cronExpression = cronExpression; } /** * Gets the the {@code cronExpression} property. * @return the property, not null */ public final Property<String> cronExpression() { return metaBean().cronExpression().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the schemeBlackList. * @return the value of the property */ public String getSchemeBlackList() { return _schemeBlackList; } /** * Sets the schemeBlackList. * @param schemeBlackList the new value of the property */ public void setSchemeBlackList(String schemeBlackList) { this._schemeBlackList = schemeBlackList; } /** * Gets the the {@code schemeBlackList} property. * @return the property, not null */ public final Property<String> schemeBlackList() { return metaBean().schemeBlackList().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the dataFieldBlackList. * @return the value of the property */ public String getDataFieldBlackList() { return _dataFieldBlackList; } /** * Sets the dataFieldBlackList. * @param dataFieldBlackList the new value of the property */ public void setDataFieldBlackList(String dataFieldBlackList) { this._dataFieldBlackList = dataFieldBlackList; } /** * Gets the the {@code dataFieldBlackList} property. * @return the property, not null */ public final Property<String> dataFieldBlackList() { return metaBean().dataFieldBlackList().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the dataSource. * @return the value of the property */ public String getDataSource() { return _dataSource; } /** * Sets the dataSource. * @param dataSource the new value of the property */ public void setDataSource(String dataSource) { this._dataSource = dataSource; } /** * Gets the the {@code dataSource} property. * @return the property, not null */ public final Property<String> dataSource() { return metaBean().dataSource().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the normalizationRuleSetId. * @return the value of the property */ public String getNormalizationRuleSetId() { return _normalizationRuleSetId; } /** * Sets the normalizationRuleSetId. * @param normalizationRuleSetId the new value of the property */ public void setNormalizationRuleSetId(String normalizationRuleSetId) { this._normalizationRuleSetId = normalizationRuleSetId; } /** * Gets the the {@code normalizationRuleSetId} property. * @return the property, not null */ public final Property<String> normalizationRuleSetId() { return metaBean().normalizationRuleSetId().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the observationTime. * @return the value of the property, not null */ public String getObservationTime() { return _observationTime; } /** * Sets the observationTime. * @param observationTime the new value of the property, not null */ public void setObservationTime(String observationTime) { JodaBeanUtils.notNull(observationTime, "observationTime"); this._observationTime = observationTime; } /** * Gets the the {@code observationTime} property. * @return the property, not null */ public final Property<String> observationTime() { return metaBean().observationTime().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the globalPrefix. * @return the value of the property */ public String getGlobalPrefix() { return _globalPrefix; } /** * Sets the globalPrefix. * @param globalPrefix the new value of the property */ public void setGlobalPrefix(String globalPrefix) { this._globalPrefix = globalPrefix; } /** * Gets the the {@code globalPrefix} property. * @return the property, not null */ public final Property<String> globalPrefix() { return metaBean().globalPrefix().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the htsMaster. * @return the value of the property */ public HistoricalTimeSeriesMaster getHtsMaster() { return _htsMaster; } /** * Sets the htsMaster. * @param htsMaster the new value of the property */ public void setHtsMaster(HistoricalTimeSeriesMaster htsMaster) { this._htsMaster = htsMaster; } /** * Gets the the {@code htsMaster} property. * @return the property, not null */ public final Property<HistoricalTimeSeriesMaster> htsMaster() { return metaBean().htsMaster().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the redisConnector. * @return the value of the property */ public RedisConnector getRedisConnector() { return _redisConnector; } /** * Sets the redisConnector. * @param redisConnector the new value of the property */ public void setRedisConnector(RedisConnector redisConnector) { this._redisConnector = redisConnector; } /** * Gets the the {@code redisConnector} property. * @return the property, not null */ public final Property<RedisConnector> redisConnector() { return metaBean().redisConnector().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the baseDir. * @return the value of the property */ public String getBaseDir() { return _baseDir; } /** * Sets the baseDir. * @param baseDir the new value of the property */ public void setBaseDir(String baseDir) { this._baseDir = baseDir; } /** * Gets the the {@code baseDir} property. * @return the property, not null */ public final Property<String> baseDir() { return metaBean().baseDir().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the scheduler. * @return the value of the property, not null */ public Scheduler getScheduler() { return _scheduler; } /** * Sets the scheduler. * @param scheduler the new value of the property, not null */ public void setScheduler(Scheduler scheduler) { JodaBeanUtils.notNull(scheduler, "scheduler"); this._scheduler = scheduler; } /** * Gets the the {@code scheduler} property. * @return the property, not null */ public final Property<Scheduler> scheduler() { return metaBean().scheduler().createProperty(this); } //----------------------------------------------------------------------- @Override public CronTriggerComponentFactory clone() { return JodaBeanUtils.cloneAlways(this); } @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj != null && obj.getClass() == this.getClass()) { CronTriggerComponentFactory other = (CronTriggerComponentFactory) obj; return JodaBeanUtils.equal(getClassifier(), other.getClassifier()) && JodaBeanUtils.equal(getJobName(), other.getJobName()) && JodaBeanUtils.equal(getJobGroup(), other.getJobGroup()) && JodaBeanUtils.equal(getName(), other.getName()) && JodaBeanUtils.equal(getCronExpression(), other.getCronExpression()) && JodaBeanUtils.equal(getSchemeBlackList(), other.getSchemeBlackList()) && JodaBeanUtils.equal(getDataFieldBlackList(), other.getDataFieldBlackList()) && JodaBeanUtils.equal(getDataSource(), other.getDataSource()) && JodaBeanUtils.equal(getNormalizationRuleSetId(), other.getNormalizationRuleSetId()) && JodaBeanUtils.equal(getObservationTime(), other.getObservationTime()) && JodaBeanUtils.equal(getGlobalPrefix(), other.getGlobalPrefix()) && JodaBeanUtils.equal(getHtsMaster(), other.getHtsMaster()) && JodaBeanUtils.equal(getRedisConnector(), other.getRedisConnector()) && JodaBeanUtils.equal(getBaseDir(), other.getBaseDir()) && JodaBeanUtils.equal(getScheduler(), other.getScheduler()) && super.equals(obj); } return false; } @Override public int hashCode() { int hash = 7; hash = hash * 31 + JodaBeanUtils.hashCode(getClassifier()); hash = hash * 31 + JodaBeanUtils.hashCode(getJobName()); hash = hash * 31 + JodaBeanUtils.hashCode(getJobGroup()); hash = hash * 31 + JodaBeanUtils.hashCode(getName()); hash = hash * 31 + JodaBeanUtils.hashCode(getCronExpression()); hash = hash * 31 + JodaBeanUtils.hashCode(getSchemeBlackList()); hash = hash * 31 + JodaBeanUtils.hashCode(getDataFieldBlackList()); hash = hash * 31 + JodaBeanUtils.hashCode(getDataSource()); hash = hash * 31 + JodaBeanUtils.hashCode(getNormalizationRuleSetId()); hash = hash * 31 + JodaBeanUtils.hashCode(getObservationTime()); hash = hash * 31 + JodaBeanUtils.hashCode(getGlobalPrefix()); hash = hash * 31 + JodaBeanUtils.hashCode(getHtsMaster()); hash = hash * 31 + JodaBeanUtils.hashCode(getRedisConnector()); hash = hash * 31 + JodaBeanUtils.hashCode(getBaseDir()); hash = hash * 31 + JodaBeanUtils.hashCode(getScheduler()); return hash ^ super.hashCode(); } @Override public String toString() { StringBuilder buf = new StringBuilder(512); buf.append("CronTriggerComponentFactory{"); int len = buf.length(); toString(buf); if (buf.length() > len) { buf.setLength(buf.length() - 2); } buf.append('}'); return buf.toString(); } @Override protected void toString(StringBuilder buf) { super.toString(buf); buf.append("classifier").append('=').append(JodaBeanUtils.toString(getClassifier())).append(',').append(' '); buf.append("jobName").append('=').append(JodaBeanUtils.toString(getJobName())).append(',').append(' '); buf.append("jobGroup").append('=').append(JodaBeanUtils.toString(getJobGroup())).append(',').append(' '); buf.append("name").append('=').append(JodaBeanUtils.toString(getName())).append(',').append(' '); buf.append("cronExpression").append('=').append(JodaBeanUtils.toString(getCronExpression())).append(',').append(' '); buf.append("schemeBlackList").append('=').append(JodaBeanUtils.toString(getSchemeBlackList())).append(',').append(' '); buf.append("dataFieldBlackList").append('=').append(JodaBeanUtils.toString(getDataFieldBlackList())).append(',').append(' '); buf.append("dataSource").append('=').append(JodaBeanUtils.toString(getDataSource())).append(',').append(' '); buf.append("normalizationRuleSetId").append('=').append(JodaBeanUtils.toString(getNormalizationRuleSetId())).append(',').append(' '); buf.append("observationTime").append('=').append(JodaBeanUtils.toString(getObservationTime())).append(',').append(' '); buf.append("globalPrefix").append('=').append(JodaBeanUtils.toString(getGlobalPrefix())).append(',').append(' '); buf.append("htsMaster").append('=').append(JodaBeanUtils.toString(getHtsMaster())).append(',').append(' '); buf.append("redisConnector").append('=').append(JodaBeanUtils.toString(getRedisConnector())).append(',').append(' '); buf.append("baseDir").append('=').append(JodaBeanUtils.toString(getBaseDir())).append(',').append(' '); buf.append("scheduler").append('=').append(JodaBeanUtils.toString(getScheduler())).append(',').append(' '); } //----------------------------------------------------------------------- /** * The meta-bean for {@code CronTriggerComponentFactory}. */ public static class Meta extends AbstractComponentFactory.Meta { /** * The singleton instance of the meta-bean. */ static final Meta INSTANCE = new Meta(); /** * The meta-property for the {@code classifier} property. */ private final MetaProperty<String> _classifier = DirectMetaProperty.ofReadWrite( this, "classifier", CronTriggerComponentFactory.class, String.class); /** * The meta-property for the {@code jobName} property. */ private final MetaProperty<String> _jobName = DirectMetaProperty.ofReadWrite( this, "jobName", CronTriggerComponentFactory.class, String.class); /** * The meta-property for the {@code jobGroup} property. */ private final MetaProperty<String> _jobGroup = DirectMetaProperty.ofReadWrite( this, "jobGroup", CronTriggerComponentFactory.class, String.class); /** * The meta-property for the {@code name} property. */ private final MetaProperty<String> _name = DirectMetaProperty.ofReadWrite( this, "name", CronTriggerComponentFactory.class, String.class); /** * The meta-property for the {@code cronExpression} property. */ private final MetaProperty<String> _cronExpression = DirectMetaProperty.ofReadWrite( this, "cronExpression", CronTriggerComponentFactory.class, String.class); /** * The meta-property for the {@code schemeBlackList} property. */ private final MetaProperty<String> _schemeBlackList = DirectMetaProperty.ofReadWrite( this, "schemeBlackList", CronTriggerComponentFactory.class, String.class); /** * The meta-property for the {@code dataFieldBlackList} property. */ private final MetaProperty<String> _dataFieldBlackList = DirectMetaProperty.ofReadWrite( this, "dataFieldBlackList", CronTriggerComponentFactory.class, String.class); /** * The meta-property for the {@code dataSource} property. */ private final MetaProperty<String> _dataSource = DirectMetaProperty.ofReadWrite( this, "dataSource", CronTriggerComponentFactory.class, String.class); /** * The meta-property for the {@code normalizationRuleSetId} property. */ private final MetaProperty<String> _normalizationRuleSetId = DirectMetaProperty.ofReadWrite( this, "normalizationRuleSetId", CronTriggerComponentFactory.class, String.class); /** * The meta-property for the {@code observationTime} property. */ private final MetaProperty<String> _observationTime = DirectMetaProperty.ofReadWrite( this, "observationTime", CronTriggerComponentFactory.class, String.class); /** * The meta-property for the {@code globalPrefix} property. */ private final MetaProperty<String> _globalPrefix = DirectMetaProperty.ofReadWrite( this, "globalPrefix", CronTriggerComponentFactory.class, String.class); /** * The meta-property for the {@code htsMaster} property. */ private final MetaProperty<HistoricalTimeSeriesMaster> _htsMaster = DirectMetaProperty.ofReadWrite( this, "htsMaster", CronTriggerComponentFactory.class, HistoricalTimeSeriesMaster.class); /** * The meta-property for the {@code redisConnector} property. */ private final MetaProperty<RedisConnector> _redisConnector = DirectMetaProperty.ofReadWrite( this, "redisConnector", CronTriggerComponentFactory.class, RedisConnector.class); /** * The meta-property for the {@code baseDir} property. */ private final MetaProperty<String> _baseDir = DirectMetaProperty.ofReadWrite( this, "baseDir", CronTriggerComponentFactory.class, String.class); /** * The meta-property for the {@code scheduler} property. */ private final MetaProperty<Scheduler> _scheduler = DirectMetaProperty.ofReadWrite( this, "scheduler", CronTriggerComponentFactory.class, Scheduler.class); /** * The meta-properties. */ private final Map<String, MetaProperty<?>> _metaPropertyMap$ = new DirectMetaPropertyMap( this, (DirectMetaPropertyMap) super.metaPropertyMap(), "classifier", "jobName", "jobGroup", "name", "cronExpression", "schemeBlackList", "dataFieldBlackList", "dataSource", "normalizationRuleSetId", "observationTime", "globalPrefix", "htsMaster", "redisConnector", "baseDir", "scheduler"); /** * Restricted constructor. */ protected Meta() { } @Override protected MetaProperty<?> metaPropertyGet(String propertyName) { switch (propertyName.hashCode()) { case -281470431: // classifier return _classifier; case -1438096408: // jobName return _jobName; case -1637271358: // jobGroup return _jobGroup; case 3373707: // name return _name; case -348729402: // cronExpression return _cronExpression; case 836243736: // schemeBlackList return _schemeBlackList; case 1058119597: // dataFieldBlackList return _dataFieldBlackList; case 1272470629: // dataSource return _dataSource; case 650692196: // normalizationRuleSetId return _normalizationRuleSetId; case 951232793: // observationTime return _observationTime; case -747889643: // globalPrefix return _globalPrefix; case -1707859415: // htsMaster return _htsMaster; case -745461486: // redisConnector return _redisConnector; case -332642308: // baseDir return _baseDir; case -160710469: // scheduler return _scheduler; } return super.metaPropertyGet(propertyName); } @Override public BeanBuilder<? extends CronTriggerComponentFactory> builder() { return new DirectBeanBuilder<CronTriggerComponentFactory>(new CronTriggerComponentFactory()); } @Override public Class<? extends CronTriggerComponentFactory> beanType() { return CronTriggerComponentFactory.class; } @Override public Map<String, MetaProperty<?>> metaPropertyMap() { return _metaPropertyMap$; } //----------------------------------------------------------------------- /** * The meta-property for the {@code classifier} property. * @return the meta-property, not null */ public final MetaProperty<String> classifier() { return _classifier; } /** * The meta-property for the {@code jobName} property. * @return the meta-property, not null */ public final MetaProperty<String> jobName() { return _jobName; } /** * The meta-property for the {@code jobGroup} property. * @return the meta-property, not null */ public final MetaProperty<String> jobGroup() { return _jobGroup; } /** * The meta-property for the {@code name} property. * @return the meta-property, not null */ public final MetaProperty<String> name() { return _name; } /** * The meta-property for the {@code cronExpression} property. * @return the meta-property, not null */ public final MetaProperty<String> cronExpression() { return _cronExpression; } /** * The meta-property for the {@code schemeBlackList} property. * @return the meta-property, not null */ public final MetaProperty<String> schemeBlackList() { return _schemeBlackList; } /** * The meta-property for the {@code dataFieldBlackList} property. * @return the meta-property, not null */ public final MetaProperty<String> dataFieldBlackList() { return _dataFieldBlackList; } /** * The meta-property for the {@code dataSource} property. * @return the meta-property, not null */ public final MetaProperty<String> dataSource() { return _dataSource; } /** * The meta-property for the {@code normalizationRuleSetId} property. * @return the meta-property, not null */ public final MetaProperty<String> normalizationRuleSetId() { return _normalizationRuleSetId; } /** * The meta-property for the {@code observationTime} property. * @return the meta-property, not null */ public final MetaProperty<String> observationTime() { return _observationTime; } /** * The meta-property for the {@code globalPrefix} property. * @return the meta-property, not null */ public final MetaProperty<String> globalPrefix() { return _globalPrefix; } /** * The meta-property for the {@code htsMaster} property. * @return the meta-property, not null */ public final MetaProperty<HistoricalTimeSeriesMaster> htsMaster() { return _htsMaster; } /** * The meta-property for the {@code redisConnector} property. * @return the meta-property, not null */ public final MetaProperty<RedisConnector> redisConnector() { return _redisConnector; } /** * The meta-property for the {@code baseDir} property. * @return the meta-property, not null */ public final MetaProperty<String> baseDir() { return _baseDir; } /** * The meta-property for the {@code scheduler} property. * @return the meta-property, not null */ public final MetaProperty<Scheduler> scheduler() { return _scheduler; } //----------------------------------------------------------------------- @Override protected Object propertyGet(Bean bean, String propertyName, boolean quiet) { switch (propertyName.hashCode()) { case -281470431: // classifier return ((CronTriggerComponentFactory) bean).getClassifier(); case -1438096408: // jobName return ((CronTriggerComponentFactory) bean).getJobName(); case -1637271358: // jobGroup return ((CronTriggerComponentFactory) bean).getJobGroup(); case 3373707: // name return ((CronTriggerComponentFactory) bean).getName(); case -348729402: // cronExpression return ((CronTriggerComponentFactory) bean).getCronExpression(); case 836243736: // schemeBlackList return ((CronTriggerComponentFactory) bean).getSchemeBlackList(); case 1058119597: // dataFieldBlackList return ((CronTriggerComponentFactory) bean).getDataFieldBlackList(); case 1272470629: // dataSource return ((CronTriggerComponentFactory) bean).getDataSource(); case 650692196: // normalizationRuleSetId return ((CronTriggerComponentFactory) bean).getNormalizationRuleSetId(); case 951232793: // observationTime return ((CronTriggerComponentFactory) bean).getObservationTime(); case -747889643: // globalPrefix return ((CronTriggerComponentFactory) bean).getGlobalPrefix(); case -1707859415: // htsMaster return ((CronTriggerComponentFactory) bean).getHtsMaster(); case -745461486: // redisConnector return ((CronTriggerComponentFactory) bean).getRedisConnector(); case -332642308: // baseDir return ((CronTriggerComponentFactory) bean).getBaseDir(); case -160710469: // scheduler return ((CronTriggerComponentFactory) bean).getScheduler(); } return super.propertyGet(bean, propertyName, quiet); } @Override protected void propertySet(Bean bean, String propertyName, Object newValue, boolean quiet) { switch (propertyName.hashCode()) { case -281470431: // classifier ((CronTriggerComponentFactory) bean).setClassifier((String) newValue); return; case -1438096408: // jobName ((CronTriggerComponentFactory) bean).setJobName((String) newValue); return; case -1637271358: // jobGroup ((CronTriggerComponentFactory) bean).setJobGroup((String) newValue); return; case 3373707: // name ((CronTriggerComponentFactory) bean).setName((String) newValue); return; case -348729402: // cronExpression ((CronTriggerComponentFactory) bean).setCronExpression((String) newValue); return; case 836243736: // schemeBlackList ((CronTriggerComponentFactory) bean).setSchemeBlackList((String) newValue); return; case 1058119597: // dataFieldBlackList ((CronTriggerComponentFactory) bean).setDataFieldBlackList((String) newValue); return; case 1272470629: // dataSource ((CronTriggerComponentFactory) bean).setDataSource((String) newValue); return; case 650692196: // normalizationRuleSetId ((CronTriggerComponentFactory) bean).setNormalizationRuleSetId((String) newValue); return; case 951232793: // observationTime ((CronTriggerComponentFactory) bean).setObservationTime((String) newValue); return; case -747889643: // globalPrefix ((CronTriggerComponentFactory) bean).setGlobalPrefix((String) newValue); return; case -1707859415: // htsMaster ((CronTriggerComponentFactory) bean).setHtsMaster((HistoricalTimeSeriesMaster) newValue); return; case -745461486: // redisConnector ((CronTriggerComponentFactory) bean).setRedisConnector((RedisConnector) newValue); return; case -332642308: // baseDir ((CronTriggerComponentFactory) bean).setBaseDir((String) newValue); return; case -160710469: // scheduler ((CronTriggerComponentFactory) bean).setScheduler((Scheduler) newValue); return; } super.propertySet(bean, propertyName, newValue, quiet); } @Override protected void validate(Bean bean) { JodaBeanUtils.notNull(((CronTriggerComponentFactory) bean)._classifier, "classifier"); JodaBeanUtils.notNull(((CronTriggerComponentFactory) bean)._jobName, "jobName"); JodaBeanUtils.notNull(((CronTriggerComponentFactory) bean)._name, "name"); JodaBeanUtils.notNull(((CronTriggerComponentFactory) bean)._cronExpression, "cronExpression"); JodaBeanUtils.notNull(((CronTriggerComponentFactory) bean)._observationTime, "observationTime"); JodaBeanUtils.notNull(((CronTriggerComponentFactory) bean)._scheduler, "scheduler"); super.validate(bean); } } ///CLOVER:ON //-------------------------- AUTOGENERATED END -------------------------- }