use of com.emc.storageos.db.common.schema.TimeSeriesSchema in project coprhd-controller by CoprHD.
the class DbSchemaScanner method processClass.
@Override
protected void processClass(Class clazz) {
DbSchema schema = null;
if (DataObject.class.isAssignableFrom(clazz)) {
if (_scannerInterceptor != null && _scannerInterceptor.isClassIgnored(clazz.getSimpleName())) {
log.info("{} is ignored in schema due to interceptor", clazz.getSimpleName());
return;
}
schema = new DataObjectSchema(clazz, _scannerInterceptor);
if (clazz.isAnnotationPresent(DbKeyspace.class)) {
DbKeyspace anno = (DbKeyspace) clazz.getAnnotation(DbKeyspace.class);
if (DbKeyspace.Keyspaces.GLOBAL.equals(anno.value())) {
geoSchemas.add(schema);
}
}
} else if (TimeSeries.class.isAssignableFrom(clazz)) {
schema = new TimeSeriesSchema(clazz);
} else if (TimeSeriesSerializer.DataPoint.class.isAssignableFrom(clazz)) {
schema = new DataPointSchema(clazz);
} else {
return;
}
schemas.addSchema(schema);
}
Aggregations