@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) @Table("eaglejpa") @ColumnFamily("f") @Prefix("jevent") @Service(Constants.MR_JOB_EVENT_SERVICE_NAME) @TimeSeries(true) @Partition({"site"}) public class JobEventAPIEntity extends JobBaseAPIEntity { @Column("a") private String eventType; public String getEventType() { return eventType; } public void setEventType(String eventType) { this.eventType = eventType; pcs.firePropertyChange("eventType", null, null); } }
/** * Check whether the entity class is time series, false by default * @param clazz * @return */ public static boolean isTimeSeries(Class<? extends TaggedLogAPIEntity> clazz){ TimeSeries ts = clazz.getAnnotation(TimeSeries.class); return ts != null && ts.value(); }
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) @Table("eaglejpa_process") @ColumnFamily("f") @Prefix("process") @Service(Constants.MR_JOB_PROCESS_TIME_STAMP_NAME) @TimeSeries(true) @Partition({"site"}) public class JobProcessTimeStampEntity extends TaggedLogAPIEntity { @Column("a") private long currentTimeStamp; public long getCurrentTimeStamp() { return currentTimeStamp; } public void setCurrentTimeStamp(long currentTimeStamp) { this.currentTimeStamp = currentTimeStamp; pcs.firePropertyChange("currentTimeStamp", null, null); } }
/** * Check whether the entity class is time series, false by default * * @param clazz * @return */ public static boolean isTimeSeries(Class<? extends TaggedLogAPIEntity> clazz) { TimeSeries ts = clazz.getAnnotation(TimeSeries.class); return ts != null && ts.value(); }
@Service(AUDIT_SERVICE_ENDPOINT) @JsonIgnoreProperties(ignoreUnknown = true) @TimeSeries(false) @Tags({AUDIT_COLUMN_SERVICE_NAME, AUDIT_COLUMN_USER_ID, AUDIT_COLUMN_OPERATION, AUDIT_COLUMN_TIMESTAMP}) public class GenericAuditEntity extends TaggedLogAPIEntity {
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) @Table("oozieResourceSensitivity") @ColumnFamily("f") @Prefix("oozieResourceSensitivity") @Service("OozieResourceSensitivityService") @TimeSeries(false) @Tags({"site", "oozieResource"}) public class OozieResourceSensitivityAPIEntity extends TaggedLogAPIEntity { private static final long serialVersionUID = 2L; /** * sensitivityType can be multi-value attribute, and values can be separated by "|". */ @Column("a") private String sensitivityType; public String getSensitivityType() { return sensitivityType; } public void setSensitivityType(String sensitivityType) { this.sensitivityType = sensitivityType; valueChanged("sensitivityType"); } }
@Prefix("jcount") @Service(Constants.MR_JOB_COUNT_SERVICE_NAME) @TimeSeries(true) @Partition({"site"}) public class JobCountEntity extends TaggedLogAPIEntity {
@Prefix("tacount") @Service(Constants.MR_TASK_ATTEMPT_COUNTER_SERVICE_NAME) @TimeSeries(true) @Partition({"site"}) public class TaskAttemptCounterAPIEntity extends JobBaseAPIEntity {
@Prefix("journalnodestatus") @Service(TopologyConstants.JN_INSTANCE_SERVICE_NAME) @TimeSeries(false) @Tags( {TopologyConstants.SITE_TAG, TopologyConstants.HOSTNAME_TAG, TopologyConstants.RACK_TAG, TopologyConstants.ROLE_TAG}) public class JournalNodeServiceAPIEntity extends TopologyBaseAPIEntity {
@Prefix("taskfailurecount") @Service(Constants.MR_TASK_FAILURE_COUNT_SERVICE_NAME) @TimeSeries(true) @Partition({"site"}) public class TaskFailureCountAPIEntity extends JobBaseAPIEntity {
@Service(MetricSchemaEntity.METRIC_SCHEMA_SERVICE) @JsonIgnoreProperties(ignoreUnknown = true) @TimeSeries(false) @Tags({"site","metricName","metricGroup"}) public class MetricSchemaEntity extends TaggedLogAPIEntity {
@Prefix("jsuggestion") @Service(MR_JOB_OPTIMIZER_SUGGESTION_SERVICE_NAME) @TimeSeries(true) @Partition({"site"}) @Indexes({
@Prefix("taexece") @Service(Constants.MR_TASK_ATTEMPT_ERROR_SERVICE_NAME) @TimeSeries(true) @Partition({"site"}) @Indexes({
@Prefix("mrservicestatus") @Service(TopologyConstants.MR_INSTANCE_SERVICE_NAME) @TimeSeries(false) @Tags( {TopologyConstants.SITE_TAG, TopologyConstants.HOSTNAME_TAG, TopologyConstants.RACK_TAG, TopologyConstants.ROLE_TAG}) public class MRServiceTopologyAPIEntity extends TopologyBaseAPIEntity {
@Prefix("jecm") @Service(Constants.MR_JOB_ERROR_MAPPING_SERVICE_NAME) @TimeSeries(true) @Partition({"site"}) @Indexes({
@Prefix("queueMap") @Service(HadoopClusterConstants.QUEUE_MAPPING_SERVICE_NAME) @TimeSeries(false) @Partition( {"site"}) @Tags({HadoopClusterConstants.TAG_SITE, HadoopClusterConstants.TAG_QUEUE, HadoopClusterConstants.TAG_PARENT_QUEUE})
@Prefix("hbaseservicestatus") @Service(TopologyConstants.HBASE_INSTANCE_SERVICE_NAME) @TimeSeries(false) @Tags( {TopologyConstants.SITE_TAG, TopologyConstants.HOSTNAME_TAG, TopologyConstants.RACK_TAG, TopologyConstants.ROLE_TAG}) public class HBaseServiceTopologyAPIEntity extends TopologyBaseAPIEntity {
@Prefix("jconf") @Service(Constants.MR_JOB_CONFIG_SERVICE_NAME) @TimeSeries(true) @Partition({"site"}) @Indexes({